Commit 015d091
authored
🤖 Simplify bash tool overflow output (#126)
Improves the bash tool overflow error message to be more concise and use
cleaner paths.
**Changes:**
- Removed redundant command examples (grep/head/tail/sed) - agents know
how to filter
- Added single helpful guidance line encouraging use of filtering tools
- Use `/tmp` on macOS for cleaner paths instead of `/var/folders/.../T/`
**Before:**
```
[OUTPUT OVERFLOW - Line count exceeded limit: 300 lines >= 300 lines (12175 bytes read)]
Full output (1020 lines) saved to /var/folders/fs/55k0056d2rq090642gnvp5t80000gn/T/bash-1209280d.txt
Use filtering tools to extract what you need:
- grep '<pattern>' /var/folders/fs/55k0056d2rq090642gnvp5t80000gn/T/bash-1209280d.txt
- head -n 300 /var/folders/fs/55k0056d2rq090642gnvp5t80000gn/T/bash-1209280d.txt
- tail -n 300 /var/folders/fs/55k0056d2rq090642gnvp5t80000gn/T/bash-1209280d.txt
- sed -n '100,400p' /var/folders/fs/55k0056d2rq090642gnvp5t80000gn/T/bash-1209280d.txt
When done, clean up: rm /var/folders/fs/55k0056d2rq090642gnvp5t80000gn/T/bash-1209280d.txt
```
**After:**
```
[OUTPUT OVERFLOW - Line count exceeded limit: 300 lines >= 300 lines (12175 bytes read)]
Full output (1020 lines) saved to /tmp/bash-1209280d.txt
Use selective filtering tools (e.g. grep) to extract relevant information and continue your task
When done, clean up: rm /tmp/bash-1209280d.txt
```
_Generated with `cmux`_1 parent 71f10a7 commit 015d091
2 files changed
+12
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | 88 | | |
94 | 89 | | |
95 | 90 | | |
| |||
518 | 513 | | |
519 | 514 | | |
520 | 515 | | |
521 | | - | |
522 | 516 | | |
523 | 517 | | |
524 | 518 | | |
| |||
538 | 532 | | |
539 | 533 | | |
540 | 534 | | |
541 | | - | |
542 | 535 | | |
543 | 536 | | |
544 | 537 | | |
| |||
556 | 549 | | |
557 | 550 | | |
558 | 551 | | |
559 | | - | |
560 | 552 | | |
561 | 553 | | |
562 | 554 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
337 | | - | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
338 | 348 | | |
339 | 349 | | |
340 | 350 | | |
| |||
345 | 355 | | |
346 | 356 | | |
347 | 357 | | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
| 358 | + | |
353 | 359 | | |
354 | 360 | | |
355 | 361 | | |
| |||
0 commit comments