ultraworkers-claw-code/rust/crates
Yeachan-Heo 901ce4851b Preserve resumable history when clearing CLI sessions
PARITY.md and the current Rust CLI UX both pointed at session-management polish as a worthwhile parity lane. The existing /clear flow reset the live REPL without telling the user how to get back, and the resumed /clear path overwrote the saved session file in place with no recovery handle.

This change keeps the existing clear semantics but makes them safer and more legible. Live clears now print the previous session id and a resume hint, while resumed clears write a sibling backup before resetting the requested session file and report both the backup path and the new session id.

Constraint: Keep /clear compatible with follow-on commands in the same --resume invocation
Rejected: Switch resumed /clear to a brand-new primary session path | would break the expected in-place reset semantics for chained resume commands
Confidence: high
Scope-risk: narrow
Directive: Preserve explicit recovery hints in /clear output if session lifecycle behavior changes again
Tested: cargo test --manifest-path rust/Cargo.toml -p rusty-claude-cli --test resume_slash_commands
Tested: cargo test --manifest-path rust/Cargo.toml -p rusty-claude-cli --bin claw clear_command_requires_explicit_confirmation_flag
Not-tested: Manual interactive REPL /clear run
2026-04-02 10:03:07 +00:00
..
api Merge remote-tracking branch 'origin/omx-issue-9201-release-ci' 2026-04-02 08:32:15 +00:00
commands Merge branch 'dori/commands-parity' into main 2026-04-02 18:37:00 +09:00
compat-harness wip: plugins progress 2026-04-01 07:09:06 +00:00
plugins Merge branch 'dori/hooks-parity' into main 2026-04-02 18:36:37 +09:00
runtime Merge branch 'dori/hooks-parity' into main 2026-04-02 18:36:37 +09:00
rusty-claude-cli Preserve resumable history when clearing CLI sessions 2026-04-02 10:03:07 +00:00
telemetry feat: anthropic SDK header matching + request profile 2026-04-01 05:55:25 +00:00
tools feat(tools): error propagation, REPL timeout, edge-case validation 2026-04-02 18:24:39 +09:00