mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-13 02:03:26 +00:00
fix(web): normalize shell output carriage returns (#26426)
This commit is contained in:
parent
8694da9309
commit
d19f7bc77c
1 changed files with 1 additions and 1 deletions
|
|
@ -1810,7 +1810,7 @@ ToolRegistry.register({
|
|||
const sawPending = pending()
|
||||
const text = createMemo(() => {
|
||||
const cmd = props.input.command ?? props.metadata.command ?? ""
|
||||
const out = stripAnsi(props.output || props.metadata.output || "")
|
||||
const out = stripAnsi(props.output || props.metadata.output || "").replace(/\r\n?/g, "\n")
|
||||
return `$ ${cmd}${out ? "\n\n" + out : ""}`
|
||||
})
|
||||
const [copied, setCopied] = createSignal(false)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue