Commit 78dca71
committed
fix(cli): JSON parity for /compact and /clear in resume mode
/compact now emits: {kind:compact, skipped, removed_messages, kept_messages}
/clear now emits: {kind:clear, previous_session_id, new_session_id, backup, session_file}
/clear (no --confirm) now emits: {kind:error, error:..., hint:...}
Previously both returned json:None and fell through to prose output even
in --output-format json --resume mode. 159 CLI tests pass.1 parent 39a7dd0 commit 78dca71
1 file changed
Lines changed: 18 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2678 | 2678 | | |
2679 | 2679 | | |
2680 | 2680 | | |
2681 | | - | |
| 2681 | + | |
| 2682 | + | |
| 2683 | + | |
| 2684 | + | |
| 2685 | + | |
| 2686 | + | |
2682 | 2687 | | |
2683 | 2688 | | |
2684 | 2689 | | |
| |||
2688 | 2693 | | |
2689 | 2694 | | |
2690 | 2695 | | |
2691 | | - | |
| 2696 | + | |
| 2697 | + | |
| 2698 | + | |
| 2699 | + | |
| 2700 | + | |
2692 | 2701 | | |
2693 | 2702 | | |
2694 | 2703 | | |
| |||
2704 | 2713 | | |
2705 | 2714 | | |
2706 | 2715 | | |
2707 | | - | |
| 2716 | + | |
| 2717 | + | |
| 2718 | + | |
| 2719 | + | |
| 2720 | + | |
| 2721 | + | |
| 2722 | + | |
2708 | 2723 | | |
2709 | 2724 | | |
2710 | 2725 | | |
| |||
0 commit comments