fix(tui): clip legacy bash fallback output path (#1433)

Co-authored-by: Letta Code <noreply@letta.com>
This commit is contained in:
Charles Packer
2026-03-23 15:18:00 -07:00
committed by GitHub
parent f93ec13382
commit bd5ed72f92
2 changed files with 34 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
import { Box } from "ink";
import { memo } from "react";
import { INTERRUPTED_BY_USER } from "../../constants";
import { clipToolReturn } from "../../tools/manager";
import type { StreamingState } from "../helpers/accumulator";
import { useTerminalWidth } from "../hooks/useTerminalWidth";
import { BlinkDot } from "./BlinkDot.js";
@@ -90,7 +91,9 @@ export const BashCommandMessage = memo(
<Text>{" ⎿ "}</Text>
</Box>
<Box flexGrow={1} width={Math.max(0, columns - 5)}>
<MarkdownDisplay text={line.output.replace(/\n+$/, "")} />
<MarkdownDisplay
text={clipToolReturn(line.output).replace(/\n+$/, "")}
/>
</Box>
</Box>
)}