Commit 42ebd6d
Fix: suppress TOTP wait message in JSON output mode
The generateTOTPCode function unconditionally printed a human-readable
message via pterm.Info.Printf when waiting for a fresh TOTP window. This
could corrupt JSONL output when --output json was specified in
AgentAuthRunCmd.Run.
Added a 'quiet' parameter to generateTOTPCode to suppress console output
when in JSON mode, preventing non-JSON messages from corrupting the
output stream for programmatic consumers.
Co-authored-by: mason <mason@onkernel.com>1 parent 8bbe44b commit 42ebd6d
1 file changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
517 | 517 | | |
518 | 518 | | |
519 | 519 | | |
520 | | - | |
| 520 | + | |
| 521 | + | |
521 | 522 | | |
522 | 523 | | |
523 | 524 | | |
524 | 525 | | |
525 | 526 | | |
526 | 527 | | |
527 | 528 | | |
528 | | - | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
529 | 532 | | |
530 | 533 | | |
531 | 534 | | |
| |||
813 | 816 | | |
814 | 817 | | |
815 | 818 | | |
816 | | - | |
| 819 | + | |
817 | 820 | | |
818 | 821 | | |
819 | 822 | | |
| |||
889 | 892 | | |
890 | 893 | | |
891 | 894 | | |
892 | | - | |
| 895 | + | |
893 | 896 | | |
894 | 897 | | |
895 | 898 | | |
| |||
0 commit comments