mirror of
https://github.com/lWolvesl/claw-code.git
synced 2026-04-02 15:51:51 +08:00
Extend --resume so operators can run multiple safe slash commands in sequence against a saved session file, including mutating maintenance actions like /compact and /clear plus useful local /init scaffolding. This brings resumed sessions closer to the live REPL command surface without pretending unsupported runtime-bound commands work offline. Constraint: Resumed sessions only have serialized session state, not a live model client or interactive runtime Rejected: Support every slash command under --resume | model and permission changes do not affect offline saved-session inspection meaningfully Confidence: high Scope-risk: narrow Reversibility: clean Directive: Keep --resume limited to commands that can operate purely from session files or local filesystem context 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 interactive smoke test of chained --resume commands in a shell session