From 376b858d2bd828126510d7aae42b26955691959e Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Tue, 9 Dec 2025 00:59:25 +0100 Subject: [PATCH] Remove unnecessary type cast in interactive-mode.ts --- .../src/modes/interactive/interactive-mode.ts | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/packages/coding-agent/src/modes/interactive/interactive-mode.ts b/packages/coding-agent/src/modes/interactive/interactive-mode.ts index 91079e65..704f556a 100644 --- a/packages/coding-agent/src/modes/interactive/interactive-mode.ts +++ b/packages/coding-agent/src/modes/interactive/interactive-mode.ts @@ -562,16 +562,15 @@ export class InteractiveMode { private addMessageToChat(message: Message | AppMessage): void { if (isBashExecutionMessage(message)) { - const bashMsg = message as BashExecutionMessage; - const component = new BashExecutionComponent(bashMsg.command, this.ui); - if (bashMsg.output) { - component.appendOutput(bashMsg.output); + const component = new BashExecutionComponent(message.command, this.ui); + if (message.output) { + component.appendOutput(message.output); } component.setComplete( - bashMsg.exitCode, - bashMsg.cancelled, - bashMsg.truncated ? ({ truncated: true } as TruncationResult) : undefined, - bashMsg.fullOutputPath, + message.exitCode, + message.cancelled, + message.truncated ? ({ truncated: true } as TruncationResult) : undefined, + message.fullOutputPath, ); this.chatContainer.addChild(component); return;