mirror of
https://github.com/lWolvesl/claw-code.git
synced 2026-04-02 20:51:52 +08:00
This adds a dedicated session inspect command to the Rust CLI so users can inspect a saved session's path, timestamps, size, token totals, preview text, and latest user/assistant context without opening the underlying file by hand. It builds directly on the new session list/resume flows and keeps the UX lightweight and script-friendly. Constraint: Keep session inspection CLI-native and read-only Constraint: Reuse the existing saved-session format instead of introducing a secondary index format Rejected: Add an interactive session browser now | more overhead than needed for this inspect slice Confidence: high Scope-risk: narrow Reversibility: clean Directive: Keep session inspection output stable and grep-friendly so it remains useful in scripts Tested: cargo fmt; cargo clippy --all-targets --all-features -- -D warnings; cargo test -q Not-tested: Manual inspection against a large corpus of real saved sessions