@@ -293,8 +293,14 @@ func renderLogEntryImpl(entry LogEntry, maxWidth int, verbose bool) []string {
293293 // Detect JSON content in tool messages and render as tree
294294 var wrappedLines []string
295295 if entry.Role == "tool" && isJSON(entry.Content) {
296+ // Extract JSON content (strip tool call ID prefix if present)
297+ jsonContent := entry.Content
298+ if idx := strings.Index(jsonContent, ":"); idx > 0 && strings.HasPrefix(jsonContent, "call_") {
299+ jsonContent = jsonContent[idx+1:]
300+ }
301+
296302 // Render JSON as tree structure with width constraint
297- treeStr, err := renderJSONTree(entry.Content, verbose, contentWidth)
303+ treeStr, err := renderJSONTree(jsonContent, verbose, contentWidth)
298304 if err == nil {
299305 // Tree rendering succeeded
300306 wrappedLines = strings.Split(treeStr, "\n")
@@ -469,9 +475,17 @@ func renderFocusHeader(mysisName string, width int) string {
469475 return headerStyle.Width(width).Render(line)
470476 }
471477
472-// isJSON checks if a string appears to be JSON
478+// isJSON checks if a string appears to be JSON.
479+// Handles tool result format: "tool_call_id:json_content"
473480 func isJSON(s string) bool {
474481 s = strings.TrimSpace(s)
482+
483+ // Strip tool call ID prefix if present (format: "call_xxx:json")
484+ if idx := strings.Index(s, ":"); idx > 0 && strings.HasPrefix(s, "call_") {
485+ s = s[idx+1:]
486+ s = strings.TrimSpace(s)
487+ }
488+
475489 return (strings.HasPrefix(s, "{") && strings.HasSuffix(s, "}")) ||
476490 (strings.HasPrefix(s, "[") && strings.HasSuffix(s, "]"))
477491 }