mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-28 08:04:00 +01:00
Update background agent messages (#2414)
This commit is contained in:
+2
-2
@@ -954,7 +954,7 @@ export class CopilotCLIChatSessionParticipant extends Disposable {
|
||||
});
|
||||
}
|
||||
|
||||
stream.markdown(vscode.l10n.t('{0} agent has begun working on your request. Follow its progress in the Agents View.', 'Background Agent'));
|
||||
stream.markdown(vscode.l10n.t('{0} has begun working on your request. Follow its progress in the Agents View.', 'Background Agent'));
|
||||
|
||||
return {};
|
||||
}
|
||||
@@ -981,7 +981,7 @@ export class CopilotCLIChatSessionParticipant extends Disposable {
|
||||
session.addUserMessage(userPrompt);
|
||||
|
||||
// Add assistant message event with embedded PR metadata
|
||||
const assistantMessage = `GitHub Copilot cloud agent has begun working on your request. Follow its progress in the associated chat and pull request.\n<pr_metadata uri="${prInfo.uri.toString()}" title="${escapeXml(prInfo.title)}" description="${escapeXml(prInfo.description)}" author="${escapeXml(prInfo.author)}" linkTag="${escapeXml(prInfo.linkTag)}"/>`;
|
||||
const assistantMessage = `Cloud Agent has begun working on your request. Follow its progress in the associated chat and pull request.\n<pr_metadata uri="${prInfo.uri.toString()}" title="${escapeXml(prInfo.title)}" description="${escapeXml(prInfo.description)}" author="${escapeXml(prInfo.author)}" linkTag="${escapeXml(prInfo.linkTag)}"/>`;
|
||||
session.addUserAssistantMessage(assistantMessage);
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -820,7 +820,7 @@ export class CopilotCloudSessionsProvider extends Disposable implements vscode.C
|
||||
} else {
|
||||
// Delegated flow
|
||||
// NOTE: VS Code will now close the parent/source chat in most cases.
|
||||
stream.markdown(vscode.l10n.t('GitHub Copilot cloud agent has begun working on your request. Follow its progress in the Agents View and associated pull request.'));
|
||||
stream.markdown(vscode.l10n.t('Cloud Agent has begun working on your request. Follow its progress in the Agents View and associated pull request.'));
|
||||
}
|
||||
|
||||
// Return this for external callers, eg: CLI
|
||||
|
||||
Reference in New Issue
Block a user