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
Showing only changes of commit acdb4fcf0d - Show all commits
+3 -4
View File
@@ -190,8 +190,8 @@ impl Provider for ClaudeCli {
match v["type"].as_str() {
Some("stream_event") => {
let e = &v["event"];
match e["type"].as_str() {
Some("content_block_delta") => match e["delta"]["type"].as_str() {
if e["type"] == "content_block_delta" {
match e["delta"]["type"].as_str() {
Some("text_delta") => {
let t = e["delta"]["text"].as_str().unwrap_or_default();
text += t;
@@ -204,8 +204,7 @@ impl Provider for ClaudeCli {
tx.send(Ok(StreamEvent::ThinkingDelta { text: t.into() }));
}
_ => {}
},
_ => {}
}
}
}
// complete tool calls (the stream events only carry partial JSON)