Skip to content

Commit 2157a82

Browse files
authored
Move coding agent create event later (#8023)
1 parent 50bf101 commit 2157a82

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
@@ -857,7 +857,6 @@ export class CopilotRemoteAgentManager extends Disposable {
857857
const webviewUri = await toOpenPullRequestWebviewUri({ owner, repo, pullRequestNumber: number });
858858
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.`;
859859

860-
this._onDidCreatePullRequest.fire(number);
861860
return {
862861
state: 'success',
863862
number,
@@ -1184,6 +1183,7 @@ export class CopilotRemoteAgentManager extends Disposable {
11841183
return async (stream: vscode.ChatResponseStream, token: vscode.CancellationToken) => {
11851184
// Use the shared streaming logic
11861185
await this.waitForQueuedToInProgress(sessionId, stream, token);
1186+
this._onDidCreatePullRequest.fire(pullRequest.number);
11871187
return this.streamSessionLogs(stream, pullRequest, sessionId, token);
11881188
};
11891189
}

0 commit comments

Comments
 (0)