From b64025b1348abb03f47e4d6e42cc357aae4781e3 Mon Sep 17 00:00:00 2001 From: Shirone Date: Wed, 14 Jan 2026 00:57:30 +0100 Subject: [PATCH] fix: adress pr comments --- apps/server/src/routes/worktree/routes/list.ts | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/apps/server/src/routes/worktree/routes/list.ts b/apps/server/src/routes/worktree/routes/list.ts index a512c308..a7c12f98 100644 --- a/apps/server/src/routes/worktree/routes/list.ts +++ b/apps/server/src/routes/worktree/routes/list.ts @@ -137,8 +137,8 @@ async function fetchGitHubPRs(projectPath: string): Promise(); + for (const worktree of worktrees) { const metadata = allMetadata.get(worktree.branch); if (metadata?.pr) { // Use stored metadata (more complete info) worktree.pr = metadata.pr; - } else { - // Fall back to GitHub PR detection + } else if (includeDetails) { + // Fall back to GitHub PR detection only when includeDetails is requested const githubPR = githubPRs.get(worktree.branch); if (githubPR) { worktree.pr = githubPR;