diff --git a/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.ts b/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.ts index 4d426fcaa17be8..4f53329ca1b79f 100644 --- a/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.ts +++ b/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.ts @@ -172,6 +172,10 @@ const extensionPoint = ExtensionsRegistry.registerExtensionPoint = { supportsSymbolAttachments: true, supportsTerminalAttachments: true, supportsPromptAttachments: true, + supportsHandOffs: true, }; const DISCLAIMER = localize('chatDisclaimer', "AI responses may be inaccurate"); @@ -1154,8 +1155,8 @@ export class ChatWidget extends Disposable implements IChatWidget { return; } - // Skip rendering in coding agent sessions - if (this.isLockedToCodingAgent) { + // Skip rendering in coding agent sessions unless the agent supports hand-offs + if (this.isLockedToCodingAgent && !this._attachmentCapabilities.supportsHandOffs) { this.chatSuggestNextWidget.hide(); return; } diff --git a/src/vs/workbench/contrib/chat/common/participants/chatAgents.ts b/src/vs/workbench/contrib/chat/common/participants/chatAgents.ts index a5dbf7f25c50e2..8a92fdb502f07b 100644 --- a/src/vs/workbench/contrib/chat/common/participants/chatAgents.ts +++ b/src/vs/workbench/contrib/chat/common/participants/chatAgents.ts @@ -47,6 +47,7 @@ export interface IChatAgentAttachmentCapabilities { supportsSymbolAttachments?: boolean; supportsTerminalAttachments?: boolean; supportsPromptAttachments?: boolean; + supportsHandOffs?: boolean; } export interface IChatAgentData {