Show tool details for spawn_agent, use_skill, list_dir in fabro logs

Sync `tool_detail()` in logs.rs with `tool_display_name()` in
run_progress.rs — the two had drifted, so `fabro logs -pf` was
missing detail text for these tool types.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Bryan Helmkamp 2026-03-20 17:41:38 -04:00
parent c2deae70b8
commit c51c9ebb17
No known key found for this signature in database

View file

@ -624,8 +624,13 @@ fn tool_detail(envelope: &serde_json::Value) -> Option<String> {
"edit_file" | "edit" => arg("path")
.or_else(|| arg("file_path"))
.map(|p| truncate(p, 60)),
"list_dir" => arg("path")
.or_else(|| arg("file_path"))
.map(|p| truncate(p, 60)),
"web_search" => arg("query").map(|q| truncate(q, 60)),
"web_fetch" => arg("url").map(|u| truncate(u, 60)),
"spawn_agent" => arg("task").map(|t| truncate(t, 60)),
"use_skill" => arg("skill_name").map(String::from),
_ => None,
}
}