Skip to content

Commit 705c622

Browse files
committed
Improve terminal output so Rust CLI renders readable rich responses
The Rust CLI was still surfacing raw markdown fragments and raw tool JSON in places where the terminal UI should present styled, human-readable output. This change routes assistant text through the terminal markdown renderer, strengthens the markdown ANSI path for headings/links/lists/code blocks, and converts common tool calls/results into concise terminal-native summaries with readable bash output and edit previews. Constraint: Must match Claude Code-style behavior without copying the upstream TypeScript source Constraint: Keep the fix scoped to rusty-claude-cli rendering and formatting paths Rejected: Port TS rendering components directly | prohibited by task constraints Rejected: Leave tool JSON and only style markdown | still fails the requested terminal UX Confidence: high Scope-risk: moderate Reversibility: clean Directive: Keep tool formatting human-readable first; do not reintroduce raw JSON dumps for common tools without a fallback-only guard Tested: cargo test -p rusty-claude-cli Tested: cargo build --release Not-tested: Live end-to-end API streaming against a real Anthropic session
1 parent ac95f03 commit 705c622

2 files changed

Lines changed: 559 additions & 109 deletions

File tree

0 commit comments

Comments
 (0)