Commit 0fc56ca
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 edb2431 commit 0fc56ca
1 file changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
568 | 568 | | |
569 | 569 | | |
570 | 570 | | |
| 571 | + | |
571 | 572 | | |
572 | 573 | | |
573 | 574 | | |
574 | 575 | | |
575 | 576 | | |
576 | 577 | | |
577 | 578 | | |
| 579 | + | |
578 | 580 | | |
579 | 581 | | |
580 | 582 | | |
581 | 583 | | |
582 | | - | |
| 584 | + | |
| 585 | + | |
583 | 586 | | |
584 | | - | |
585 | | - | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
586 | 593 | | |
587 | 594 | | |
| 595 | + | |
588 | 596 | | |
589 | 597 | | |
590 | 598 | | |
| |||
0 commit comments