From f6a6c374355bb63458878449915ae430f1223463 Mon Sep 17 00:00:00 2001 From: ProofOfConcept Date: Thu, 9 Apr 2026 23:05:09 -0400 Subject: [PATCH] Show tool call arguments in F2 context tree tool_call labels now show the arguments truncated to 80 chars: tool: memory_render({"key":"identity"}) instead of just: tool_call: memory_render Co-Authored-By: Proof of Concept --- src/agent/context.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agent/context.rs b/src/agent/context.rs index 094d42e..4d8e077 100644 --- a/src/agent/context.rs +++ b/src/agent/context.rs @@ -353,7 +353,7 @@ impl AstNode { Self::Leaf(leaf) => match &leaf.body { NodeBody::Content(t) => truncate_preview(t, 60), NodeBody::Thinking(t) => format!("thinking: {}", truncate_preview(t, 60)), - NodeBody::ToolCall { name, .. } => format!("tool_call: {}", name), + NodeBody::ToolCall { name, arguments } => format!("tool: {}({})", name, truncate_preview(arguments, 80)), NodeBody::ToolResult(_) => "tool_result".into(), NodeBody::Memory { key, score, .. } => match score { Some(s) => format!("mem: {} score:{:.1}", key, s),