add wait for command function (#291653)

This commit is contained in:
Megan Rogge
2026-01-29 13:23:33 -05:00
committed by GitHub
parent 148bbfdb57
commit a72cd7b63e
@@ -371,7 +371,9 @@ export class ChatTerminalToolProgressPart extends BaseChatToolInvocationSubPart
this.domNode = progressPart.domNode;
}
if (expandedStateByInvocation.get(toolInvocation) || (this._isInThinkingContainer && IChatToolInvocation.isComplete(toolInvocation))) {
// Only auto-expand in thinking containers if there's actual output to show
const hasStoredOutput = !!terminalData.terminalCommandOutput;
if (expandedStateByInvocation.get(toolInvocation) || (this._isInThinkingContainer && IChatToolInvocation.isComplete(toolInvocation) && hasStoredOutput)) {
void this._toggleOutput(true);
}
this._register(this._terminalChatService.registerProgressPart(this));