claw-code-parity/rust/crates/rusty-claude-cli/src
Yeachan-Heo a6b7ba4112 Expose session details without requiring manual JSON inspection
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
2026-03-31 19:38:06 +00:00
..
app.rs feat: merge 2nd round from all rcc/* sessions 2026-03-31 17:43:25 +00:00
args.rs feat: Rust port of Claw Code CLI 2026-03-31 17:43:09 +00:00
input.rs feat: make claw-cli usable end-to-end 2026-03-31 18:40:09 +00:00
main.rs Expose session details without requiring manual JSON inspection 2026-03-31 19:38:06 +00:00
render.rs feat: merge 2nd round from all rcc/* sessions 2026-03-31 17:43:25 +00:00