Skip to content

Commit 9469130

Browse files
committed
Most recent PR is missing from Copilot on my behalf section
Fixes #7916
1 parent 65b3316 commit 9469130

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)