claude_cli: show what each claude tool runs #166

Merged
hermes merged 2 commits from fix/claude-cli-tool-detail into main 2026-10-16 20:44:21 +00:00
Collaborator

claude_cli showed only [claude tool: Bash] because the content_block_start stream event carries no input yet. Now the complete assistant message is used: [claude Bash: cargo test], [claude Edit: src/a.rs]; other tools show their key input (command, file_path, pattern, url, query, description) or the JSON, cut at 300 chars. Unit test for tool_line; claude_cli e2e checks the Bash line. Real claude not tested: assumes assistant events with message.content[].tool_use (stream-json format).

claude_cli showed only `[claude tool: Bash]` because the content_block_start stream event carries no input yet. Now the complete `assistant` message is used: `[claude Bash: cargo test]`, `[claude Edit: src/a.rs]`; other tools show their key input (command, file_path, pattern, url, query, description) or the JSON, cut at 300 chars. Unit test for tool_line; claude_cli e2e checks the Bash line. Real claude not tested: assumes `assistant` events with `message.content[].tool_use` (stream-json format).
hermes added 2 commits 2026-10-16 20:37:13 +00:00
hermes merged commit c7b25a1848 into main 2026-10-16 20:44:21 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: johannes/hx#166