Switch back to truncating headers. Unfortunately we have too many headers that are 10+ lines for no good reason so we need to add back this truncation until we fix them. (#13018)

This commit is contained in:
Jacob Richman
2025-11-13 11:38:19 -08:00
committed by jacob314
parent e192efa1f9
commit 3955871052
@@ -52,15 +52,15 @@ exports[`<ToolGroupMessage /> > Golden Snapshots > renders empty tool calls arra
exports[`<ToolGroupMessage /> > Golden Snapshots > renders header when scrolled 1`] = ` exports[`<ToolGroupMessage /> > Golden Snapshots > renders header when scrolled 1`] = `
"╭──────────────────────────────────────────────────────────────────────────────╮ "╭──────────────────────────────────────────────────────────────────────────────╮
MockTool[1]: ✓ tool-1 - Description 1. This is a long description that will │ ✓ tool-1 Description 1. This is a long description that will need to be tr…
need to be truncated if the terminal width is small. (medium) ──────────────────────────────────────────────────────────────────────────────
line5
MockTool[2]: ✓ tool-2 - Description 2 (medium) │ │ █
╰──────────────────────────────────────────────────────────────────────────────╯ │ ✓ tool-2 Description 2 │ █
│ │ █
│ line1 │ █
│ line2 │ █
" ╰──────────────────────────────────────────────────────────────────────────────╯ █"
`; `;
exports[`<ToolGroupMessage /> > Golden Snapshots > renders mixed tool calls including shell command 1`] = ` exports[`<ToolGroupMessage /> > Golden Snapshots > renders mixed tool calls including shell command 1`] = `
@@ -111,19 +111,6 @@ exports[`<ToolGroupMessage /> > Golden Snapshots > renders single successful too
╰──────────────────────────────────────────────────────────────────────────────╯" ╰──────────────────────────────────────────────────────────────────────────────╯"
`; `;
exports[`<ToolGroupMessage /> > Golden Snapshots > renders sticky header when scrolled 1`] = `
"│ │
│ ✓ tool-2 Description 2 │
│ Description 2 │
│ Description 2 │
│ Description 2 │ ▄
│ Description 2 │ █
│ │ █
│ │ █
│ Test result │ █
╰──────────────────────────────────────────────────────────────────────────────╯ █"
`;
exports[`<ToolGroupMessage /> > Golden Snapshots > renders tool call awaiting confirmation 1`] = ` exports[`<ToolGroupMessage /> > Golden Snapshots > renders tool call awaiting confirmation 1`] = `
"╭──────────────────────────────────────────────────────────────────────────────╮ "╭──────────────────────────────────────────────────────────────────────────────╮
│ ? confirmation-tool This tool needs confirmation ← │ │ ? confirmation-tool This tool needs confirmation ← │
@@ -179,10 +166,7 @@ exports[`<ToolGroupMessage /> > Golden Snapshots > renders with limited terminal
exports[`<ToolGroupMessage /> > Golden Snapshots > renders with narrow terminal width 1`] = ` exports[`<ToolGroupMessage /> > Golden Snapshots > renders with narrow terminal width 1`] = `
"╭──────────────────────────────────────╮ "╭──────────────────────────────────────╮
│ ✓ very-long-tool-name-that-might-wr │ ✓ very-long-tool-name-that-might-w
│ ap This is a very long │
│ description that might cause │
│ wrapping issues │
│ │ │ │
│ Test result │ │ Test result │
╰──────────────────────────────────────╯" ╰──────────────────────────────────────╯"