mirror of
https://github.com/lWolvesl/claw-code.git
synced 2026-04-02 07:41:52 +08:00
Reformat /compact output for both live and resumed sessions so compaction results are reported in the same structured console style as the rest of the CLI surface. This keeps the behavior unchanged while making skipped and successful compaction runs easier to read. Constraint: Compact output must stay faithful to the real compaction result and not imply summarization details beyond removed/kept message counts Rejected: Expose the generated summary body directly in /compact output | too noisy for a lightweight command-response surface Confidence: high Scope-risk: narrow Reversibility: clean Directive: Keep lifecycle and maintenance command output stylistically consistent as more slash commands reach parity Tested: cargo fmt --manifest-path ./rust/Cargo.toml --all; cargo clippy --manifest-path ./rust/Cargo.toml --workspace --all-targets -- -D warnings; cargo test --manifest-path ./rust/Cargo.toml --workspace Not-tested: Manual terminal UX review of compact output on very large sessions