Commit cf3482b
committed
feat(output): structured warn/info/error lines + clearer ALL_TASKS_DONE message
User feedback after a real plan run:
> warn: agent signalled ALL_TASKS_DONE but 6 plan checkbox(es) remain unchecked
> 1. this is strange output for user
> 2. I'd expect warn, err, so on highlighted
Two fixes:
1. Wrap the bare \`warn:\` / \`info:\` lines in a structured prefix with
a glyph + bold colour so they pop visually from the [TS] iteration
lines: \`⚠ warn:\` bold yellow, \`✖ error:\` bold red, \`ℹ info:\`
bold cyan. Falls back to plain \`warn: …\` / \`info: …\` when colour
is off (NO_COLOR, RALPHTERM_NO_COLOR, non-TTY).
2. Rephrase the ALL_TASKS_DONE-with-unchecked-boxes line. Old:
warn: agent signalled ALL_TASKS_DONE but 6 plan checkbox(es)
remain unchecked
New:
⚠ warn: agent declared the plan done while 6 checkboxes
remained unchecked — accepting on the agent's word (see the
iteration log above for its reasoning)
Explains WHY we're accepting (the agent's own narration is right
above) instead of just stating a discrepancy. Also handles the
1/N plural case ("checkbox" vs "checkboxes").
Call sites migrated:
- runner.rs: 3 \`eprintln!("warn: ...")\` → \`warn_line(...)\`
- preflight.rs: resume notice → \`info_line(...)\`
Same warn-line wording for the iteration crash/no-output-file paths
got the "— continuing to next iteration" suffix swapped from
"; continuing" for readability.1 parent 88a1011 commit cf3482b
5 files changed
Lines changed: 60 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
18 | 22 | | |
19 | 23 | | |
20 | 24 | | |
| |||
55 | 59 | | |
56 | 60 | | |
57 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
58 | 95 | | |
59 | 96 | | |
60 | 97 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
64 | 65 | | |
65 | | - | |
66 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
67 | 71 | | |
68 | 72 | | |
69 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
503 | 503 | | |
504 | 504 | | |
505 | 505 | | |
506 | | - | |
507 | | - | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
508 | 511 | | |
509 | 512 | | |
510 | 513 | | |
511 | | - | |
512 | | - | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
513 | 519 | | |
514 | 520 | | |
515 | 521 | | |
| |||
527 | 533 | | |
528 | 534 | | |
529 | 535 | | |
| 536 | + | |
530 | 537 | | |
531 | | - | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
532 | 542 | | |
533 | 543 | | |
534 | 544 | | |
| |||
0 commit comments