Update webview-ui/src/components/chat/CommandExecution.tsx

Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
This commit is contained in:
Daniel 2025-07-24 12:37:44 -05:00 committed by GitHub
parent 7799f0cabf
commit 9481c95bbe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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