Commit 4cd57c9
fix(dream-cli): _compose_run_with_summary SIGINT cleanup + zero-match fallback
Ctrl-C during a compose operation leaked the mktemp log because there
was no INT/TERM trap. Add trap 'rm -f "$_compose_log"' INT TERM after
mktemp and restore with trap - INT TERM before each return.
The grep | sed | head pipeline exit code is 0 even when grep finds no
matches (head exits 0 on empty input), so the || warn fallback never
fired. Capture the pipeline output to _surfaced and branch on non-empty
to decide between printing matches or emitting the "no error keywords
matched" hint. Correct under set -e today, pipefail-safe going forward.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 90a4544 commit 4cd57c9
1 file changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
544 | 544 | | |
545 | 545 | | |
546 | 546 | | |
| 547 | + | |
547 | 548 | | |
548 | 549 | | |
549 | 550 | | |
550 | 551 | | |
551 | 552 | | |
552 | 553 | | |
553 | 554 | | |
| 555 | + | |
554 | 556 | | |
555 | 557 | | |
556 | 558 | | |
557 | 559 | | |
558 | | - | |
| 560 | + | |
| 561 | + | |
559 | 562 | | |
560 | | - | |
561 | | - | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
562 | 569 | | |
563 | 570 | | |
| 571 | + | |
564 | 572 | | |
565 | 573 | | |
566 | 574 | | |
| |||
0 commit comments