Skip to content

Commit fca6497

Browse files
authored
Most recent PR is missing from Copilot on my behalf section (#7948)
Fixes #7916
1 parent 6e87002 commit fca6497

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/github/copilotRemoteAgent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,11 +749,11 @@ export class CopilotRemoteAgentManager extends Disposable {
749749

750750
try {
751751
const { pull_request, session_id } = await capiClient.postRemoteAgentJob(owner, repo, payload, isTruncated);
752-
this._onDidCreatePullRequest.fire(pull_request.number);
753752
const webviewUri = await toOpenPullRequestWebviewUri({ owner, repo, pullRequestNumber: pull_request.number });
754753
const prLlmString = `The remote agent has begun work and has created a pull request. Details about the pull request are being shown to the user. If the user wants to track progress or iterate on the agent's work, they should use the pull request.`;
755754

756755
await this.waitForQueuedToInProgress(session_id, token);
756+
this._onDidCreatePullRequest.fire(pull_request.number);
757757
return {
758758
state: 'success',
759759
number: pull_request.number,

0 commit comments

Comments
 (0)