mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-09-07 08:27:12 +00:00
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:
parent
c2deae70b8
commit
c51c9ebb17
1 changed files with 5 additions and 0 deletions
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue