Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ const extensionPoint = ExtensionsRegistry.registerExtensionPoint<IChatSessionsEx
supportsPromptAttachments: {
description: localize('chatSessionsExtPoint.supportsPromptAttachments', 'Whether this chat session supports attaching prompts.'),
type: 'boolean'
},
supportsHandOffs: {
description: localize('chatSessionsExtPoint.supportsHandOffs', 'Whether this chat session supports hand-off prompts.'),
type: 'boolean'
}
}
},
Expand Down
5 changes: 3 additions & 2 deletions src/vs/workbench/contrib/chat/browser/widget/chatWidget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ const supportsAllAttachments: Required<IChatAgentAttachmentCapabilities> = {
supportsSymbolAttachments: true,
supportsTerminalAttachments: true,
supportsPromptAttachments: true,
supportsHandOffs: true,
};

const DISCLAIMER = localize('chatDisclaimer', "AI responses may be inaccurate");
Expand Down Expand Up @@ -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;
Comment thread
DonJayamanne marked this conversation as resolved.
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export interface IChatAgentAttachmentCapabilities {
supportsSymbolAttachments?: boolean;
supportsTerminalAttachments?: boolean;
supportsPromptAttachments?: boolean;
supportsHandOffs?: boolean;
}

export interface IChatAgentData {
Expand Down
Loading