From 9481c95bbe95fa0d4a7adb6bf08ef2a83419c978 Mon Sep 17 00:00:00 2001 From: Daniel <57051444+daniel-lxs@users.noreply.github.com> Date: Thu, 24 Jul 2025 12:37:44 -0500 Subject: [PATCH] Update webview-ui/src/components/chat/CommandExecution.tsx Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com> --- webview-ui/src/components/chat/CommandExecution.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webview-ui/src/components/chat/CommandExecution.tsx b/webview-ui/src/components/chat/CommandExecution.tsx index e485ed5bc0..79d2b54edb 100644 --- a/webview-ui/src/components/chat/CommandExecution.tsx +++ b/webview-ui/src/components/chat/CommandExecution.tsx @@ -43,7 +43,7 @@ export const CommandExecution = ({ executionId, text, icon, title }: CommandExec if (outputIndex !== -1) { // Text is split into command and output - const cmd = text!.slice(0, outputIndex).trim() + const cmd = (text ?? '').slice(0, outputIndex).trim() // Skip the newline and "Output:" text const afterSeparator = outputIndex + 1 + outputSeparator.length let startOfOutput = afterSeparator