Skip to content

Commit 351f57a

Browse files
authored
coding agent: UX tweaks (#7208)
* remove follow up for command * auto-open PR
1 parent c45e36d commit 351f57a

File tree

1 file changed

+2
-19
lines changed

1 file changed

+2
-19
lines changed

src/github/copilotRemoteAgent.ts

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ export class CopilotRemoteAgentManager extends Disposable {
265265
return;
266266
}
267267

268-
const { userPrompt, summary, source, followup } = args;
268+
const { userPrompt, summary, source } = args;
269269
if (!userPrompt || userPrompt.trim().length === 0) {
270270
return;
271271
}
@@ -276,14 +276,6 @@ export class CopilotRemoteAgentManager extends Disposable {
276276
}
277277
const { repository, owner, repo } = repoInfo;
278278

279-
// If this is a followup, parse out the necessary data
280-
// Group 2 is this, url-encoded:
281-
// {"owner":"monalisa","repo":"app","pullRequestNumber":18}
282-
let followUpPR: number | undefined = this.parseFollowup(followup, repoInfo);
283-
if (followUpPR) {
284-
return this.addFollowUpToExistingPR(followUpPR, userPrompt, summary);
285-
}
286-
287279
const repoName = `${owner}/${repo}`;
288280
const hasChanges = repository.state.workingTreeChanges.length > 0 || repository.state.indexChanges.length > 0;
289281
const learnMoreCb = async () => {
@@ -347,16 +339,7 @@ export class CopilotRemoteAgentManager extends Disposable {
347339
}
348340

349341
const { webviewUri, link, number } = result;
350-
351-
if (source === 'prompt') {
352-
const VIEW = vscode.l10n.t('View');
353-
const finished = vscode.l10n.t('Coding agent has begun work on your prompt in #{0}', number);
354-
vscode.window.showInformationMessage(finished, VIEW).then((value) => {
355-
if (value === VIEW) {
356-
vscode.commands.executeCommand('vscode.open', webviewUri);
357-
}
358-
});
359-
}
342+
vscode.commands.executeCommand('vscode.open', webviewUri);
360343

361344
// allow-any-unicode-next-line
362345
return vscode.l10n.t('🚀 Coding agent will continue work in [#{0}]({1}). Track progress [here]({2}).', number, link, webviewUri.toString());

0 commit comments

Comments
 (0)