reveal terminal output if command failed (#274442)

fix #274333
This commit is contained in:
Megan Rogge
2025-11-03 15:06:34 -05:00
committed by GitHub
parent 078d0d5707
commit c705eb8801

View File

@@ -226,6 +226,9 @@ export class ChatTerminalToolProgressPart extends BaseChatToolInvocationSubPart
if (!showOutputAction) {
showOutputAction = new ToggleChatTerminalOutputAction(expanded => this._toggleOutput(expanded));
this._showOutputAction.value = showOutputAction;
if (command.exitCode) {
this._toggleOutput(true);
}
}
showOutputAction.syncPresentation(this._outputContainer.classList.contains('expanded'));