tui: fix code diff display by trimming whitespace to prevent rendering issues
Some checks are pending
format / format (push) Waiting to run
snapshot / publish (push) Waiting to run
test / test (push) Waiting to run

This commit is contained in:
Dax Raad 2025-10-02 05:57:07 -04:00
parent 5cfec2ef9d
commit 76b303c43f

View file

@ -790,7 +790,7 @@ ToolRegistry.register<typeof EditTool>({
const code = createMemo(() => {
if (!props.metadata.diff) return ""
const text = props.metadata.diff.split("\n").slice(5).join("\n")
return text
return text.trim()
})
return (
<>