Skip to content

Commit d4475b7

Browse files
authored
Coding Agent: Add detail in modal (#7209)
* add detail in modal * change again
1 parent 351f57a commit d4475b7

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/github/copilotRemoteAgent.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,13 +283,15 @@ export class CopilotRemoteAgentManager extends Disposable {
283283
};
284284

285285
let autoPushAndCommit = false;
286-
const message = vscode.l10n.t('Copilot coding agent will continue your work in \'{0}\'', repoName);
286+
const message = vscode.l10n.t('Copilot coding agent will continue your work in \'{0}\'.', repoName);
287+
const detail = vscode.l10n.t('Your current chat session will end, and its context will be used to continue your work in a new pull request.');
287288
if (source !== 'prompt' && hasChanges && this.autoCommitAndPushEnabled()) {
289+
// Pending changes modal
288290
const modalResult = await vscode.window.showInformationMessage(
289291
message,
290292
{
291293
modal: true,
292-
detail: vscode.l10n.t('Local changes detected'),
294+
detail,
293295
},
294296
PUSH_CHANGES,
295297
CONTINUE_WITHOUT_PUSHING,
@@ -309,10 +311,12 @@ export class CopilotRemoteAgentManager extends Disposable {
309311
autoPushAndCommit = true;
310312
}
311313
} else {
314+
// No pending changes modal
312315
const modalResult = await vscode.window.showInformationMessage(
313-
(source !== 'prompt' ? message : vscode.l10n.t('Copilot coding agent will implement the specification outlined in this prompt file')),
316+
source !== 'prompt' ? message : vscode.l10n.t('Copilot coding agent will implement the specification outlined in this prompt file'),
314317
{
315318
modal: true,
319+
detail: source !== 'prompt' ? detail : undefined
316320
},
317321
CONTINUE,
318322
LEARN_MORE,

0 commit comments

Comments
 (0)