claw-code-parity/rust/crates
Yeachan-Heo 1a09a587fc Keep CLI tool rendering readable without dropping result fidelity
Some tools, especially Read, can emit very large payloads that overwhelm the interactive renderer. This change truncates only the displayed preview for long tool outputs while leaving the underlying tool result string untouched for downstream logic and persisted session state.

Constraint: Rendering changes must not modify stored tool outputs or tool-result messages
Rejected: Truncate tool output before returning from the executor | would corrupt session history and downstream processing
Confidence: high
Scope-risk: narrow
Directive: Keep truncation strictly in presentation helpers; do not move it into tool execution or session persistence paths
Tested: cargo test -p claw-cli tool_rendering_truncates_ -- --nocapture; cargo test -p claw-cli tool_rendering_helpers_compact_output -- --nocapture
Not-tested: Manual terminal rendering with real multi-megabyte tool output
2026-04-01 08:06:10 +00:00
..
api Accept reasoning-style content blocks in the Rust API parser 2026-04-01 08:06:10 +00:00
commands feat: plugin hooks + tool registry + CLI integration 2026-04-01 07:11:42 +00:00
compat-harness wip: plugins progress 2026-04-01 07:09:06 +00:00
plugins Harden installed-plugin discovery against stale registry state 2026-04-01 07:34:55 +00:00
runtime feat: plugin hooks + tool registry + CLI integration 2026-04-01 07:11:42 +00:00
rusty-claude-cli Keep CLI tool rendering readable without dropping result fidelity 2026-04-01 08:06:10 +00:00
tools Ignore reasoning blocks in runtime adapters without affecting tool/text flows 2026-04-01 08:06:10 +00:00