Skip to content

Commit 484eaaa

Browse files
committed
Most recent PR is missing from Copilot on my behalf section
Fixes #7916
1 parent fd5f8d8 commit 484eaaa

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
@@ -785,11 +785,11 @@ export class CopilotRemoteAgentManager extends Disposable {
785785

786786
try {
787787
const { pull_request, session_id } = await capiClient.postRemoteAgentJob(owner, repo, payload, isTruncated);
788-
this._onDidCreatePullRequest.fire(pull_request.number);
789788
const webviewUri = await toOpenPullRequestWebviewUri({ owner, repo, pullRequestNumber: pull_request.number });
790789
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.`;
791790

792791
await this.waitForQueuedToInProgress(session_id, token);
792+
this._onDidCreatePullRequest.fire(pull_request.number);
793793
return {
794794
state: 'success',
795795
number: pull_request.number,

0 commit comments

Comments
 (0)