Commit 64de72f
fix: suppress all output in single-prompt mode unless --verbose
In -s mode, redirect both stdout and stderr to /dev/null during model
loading and generation. Only the final response prints to stdout.
--verbose/-v overrides this and shows logs on stderr as before.
Previously only stdout was redirected to stderr, so loading spinners,
cache profiles, GPU info etc. still appeared in the terminal and
polluted unix pipes.
Closes #76
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 0585f06 commit 64de72f
1 file changed
Lines changed: 24 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
700 | 700 | | |
701 | 701 | | |
702 | 702 | | |
| 703 | + | |
| 704 | + | |
703 | 705 | | |
704 | | - | |
705 | | - | |
706 | | - | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
707 | 721 | | |
708 | 722 | | |
709 | 723 | | |
| |||
757 | 771 | | |
758 | 772 | | |
759 | 773 | | |
760 | | - | |
761 | | - | |
762 | | - | |
763 | | - | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
764 | 777 | | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
765 | 782 | | |
766 | 783 | | |
767 | 784 | | |
| |||
0 commit comments