tenseleyflow/loader / b4e2297

Browse files

Expand content preview limits in tool widget args display

Authored by espadonne
SHA
b4e2297e84e45386ef95918cafcc5648da40e0ee
Parents
01f3beb
Tree
319777e

1 changed file

StatusFile+-
M src/loader/ui/widgets/tool_widget.py 5 3
src/loader/ui/widgets/tool_widget.pymodified
@@ -74,9 +74,11 @@ class ToolCallWidget(Vertical):
7474
         parts = []
7575
         for k, v in self.tool_args.items():
7676
             if isinstance(v, str):
77
-                # Truncate long strings
78
-                if len(v) > 40:
79
-                    v = v[:37] + "..."
77
+                # Show file paths in full, truncate content at 80 chars,
78
+                # other args at 40
79
+                limit = 200 if k in ("file_path", "path") else (80 if k == "content" else 40)
80
+                if len(v) > limit:
81
+                    v = v[: limit - 3] + "..."
8082
                 parts.append(f'{k}="[dim]{v}[/dim]"')
8183
             else:
8284
                 parts.append(f"{k}={v!r}")