Update background agent messages (#2414)

This commit is contained in:
Don Jayamanne
2025-12-04 23:53:14 +00:00
committed by GitHub
parent 5bd3a011bf
commit 2d1ca8e0c3
2 changed files with 3 additions and 3 deletions
@@ -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);
}
}
@@ -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