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;