claudecode/crates
Yeachan-Heo ed48852636 Prevent accidental session clears in REPL and resume flows
Require an explicit /clear --confirm flag before wiping live or resumed session state. This keeps the command genuinely useful while adding the minimal safety check needed for a destructive command in a chatty terminal workflow.

Constraint: /clear must remain a real functional command without introducing interactive prompt machinery that would complicate REPL input handling
Rejected: Add y/n interactive confirmation prompt | extra stateful prompting would be slower to ship and more fragile inside the line editor loop
Confidence: high
Scope-risk: narrow
Reversibility: clean
Directive: Keep destructive slash commands opt-in via explicit flags unless the CLI gains a dedicated confirmation subsystem
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 keyboard-driven UX pass for accidental /clear entry in interactive REPL
2026-03-31 20:42:50 +00:00
..
api feat(cli): align slash help/status/model handling 2026-03-31 19:23:05 +00:00
commands Prevent accidental session clears in REPL and resume flows 2026-03-31 20:42:50 +00:00
compat-harness feat(cli): align slash help/status/model handling 2026-03-31 19:23:05 +00:00
runtime feat(cli): align slash help/status/model handling 2026-03-31 19:23:05 +00:00
rusty-claude-cli Prevent accidental session clears in REPL and resume flows 2026-03-31 20:42:50 +00:00
tools feat(cli): align slash help/status/model handling 2026-03-31 19:23:05 +00:00