You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this.logService.debug(`[CopilotCLIChatSessionItemProvider] Skipping PR detection on session open for ${sessionId}: version=${worktreeProperties?.version}, prState=${worktreeProperties?.version===2 ? worktreeProperties.pullRequestState : 'n/a'}, branch=${!!worktreeProperties?.branchName}, repoPath=${!!worktreeProperties?.repositoryPath}`);
370
371
return;
371
372
}
372
373
374
+
this.logService.debug(`[CopilotCLIChatSessionItemProvider] Detecting PR on session open for ${sessionId}, branch=${worktreeProperties.branchName}, existingPrUrl=${worktreeProperties.pullRequestUrl??'none'}`);
this.logService.debug(`[CopilotCLIChatSessionItemProvider] PR metadata unchanged for ${sessionId}, skipping update`);
392
398
}
399
+
}else{
400
+
this.logService.debug(`[CopilotCLIChatSessionItemProvider] No PR found via GitHub API for ${sessionId}`);
393
401
}
394
402
}catch(error){
395
403
this.logService.trace(`[CopilotCLIChatSessionItemProvider] Failed to detect pull request on session open for ${sessionId}: ${errorinstanceofError ? error.message : String(error)}`);
@@ -1533,6 +1541,8 @@ export class CopilotCLIChatSessionParticipant extends Disposable {
1533
1541
letprUrl=session.createdPullRequestUrl;
1534
1542
letprState='open';
1535
1543
1544
+
this.logService.debug(`[CopilotCLIChatSessionParticipant] handlePullRequestCreated for ${sessionId}: createdPullRequestUrl=${prUrl??'none'}`);
this.logService.debug(`[CopilotCLIChatSessionParticipant] No PR URL from session, attempting retry detection for ${sessionId}, branch=${worktreeProperties.branchName}`);
this.logService.debug(`[CopilotCLIChatSessionParticipant] PR detected on attempt ${attempt+1} for ${sessionId}: url=${prResult.url}, state=${prResult.state}`);
1587
1603
returnprResult;
1588
1604
}
1589
1605
}
1590
1606
1607
+
this.logService.debug(`[CopilotCLIChatSessionParticipant] PR detection exhausted all ${maxRetries} retries for ${sessionId}`);
1591
1608
returnundefined;
1592
1609
}
1593
1610
@@ -1600,6 +1617,7 @@ export class CopilotCLIChatSessionParticipant extends Disposable {
this.logService.debug(`[CopilotCLIChatSessionParticipant] detectPullRequestForSession: missing worktree info for ${sessionId}, branch=${worktreeProperties?.branchName??'none'}, repoPath=${!!worktreeProperties?.repositoryPath}`);
1603
1621
returnundefined;
1604
1622
}
1605
1623
@@ -2646,14 +2664,18 @@ async function detectPullRequestFromGitHubAPI(
0 commit comments