diff --git a/src/vs/workbench/contrib/chat/browser/chatContentParts/media/chatConfirmationWidget.css b/src/vs/workbench/contrib/chat/browser/chatContentParts/media/chatConfirmationWidget.css index a750756fa09..b0e92c406ed 100644 --- a/src/vs/workbench/contrib/chat/browser/chatContentParts/media/chatConfirmationWidget.css +++ b/src/vs/workbench/contrib/chat/browser/chatContentParts/media/chatConfirmationWidget.css @@ -18,8 +18,8 @@ .chat-confirmation-widget + .chat-tool-approval-message { margin: -12px 6px 16px; - opacity: 0.8; - font-size: 12px; + color: var(--vscode-descriptionForeground); + font-size: var(--vscode-chat-font-size-body-s); } .chat-confirmation-widget .chat-confirmation-widget-title { diff --git a/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatToolInvocationPart.ts b/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatToolInvocationPart.ts index f81cb2c3a80..240900902cc 100644 --- a/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatToolInvocationPart.ts +++ b/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatToolInvocationPart.ts @@ -83,15 +83,18 @@ export class ChatToolInvocationPart extends Disposable implements IChatContentPa this._onDidChangeHeight.fire(); })); - const approval = this.createApprovalMessage(); - if (approval) { - this.domNode.appendChild(approval); + // todo@connor4312/tyriar: standardize how these are displayed + if (!(this.subPart instanceof ChatTerminalToolProgressPart)) { + const approval = this.createApprovalMessage(); + if (approval) { + this.domNode.appendChild(approval); + } } }; render(); } - private createApprovalMessage(): HTMLElement | undefined { + private get autoApproveMessageContent() { const reason = this.toolInvocation.isConfirmed; if (!reason || typeof reason === 'boolean') { return; @@ -117,6 +120,12 @@ export class ChatToolInvocationPart extends Disposable implements IChatContentPa return; } + + return md; + } + + private createApprovalMessage(): HTMLElement | undefined { + const md = this.autoApproveMessageContent; if (!md) { return undefined; }