mirror of
https://github.com/ultraworkers/claw-code.git
synced 2026-04-11 02:20:18 +08:00
Add SlashCommand::slash_name() to the commands crate — returns the canonical '/name' string for any variant. Used in the REPL's stub catch-all arm to surface which command was typed instead of printing the opaque 'Command registered but not yet implemented.' Before: typing /rewind → 'Command registered but not yet implemented.' After: typing /rewind → '/rewind is not yet implemented in this build.' Also update the compacts_sessions_via_slash_command test assertion to tolerate the boundary-guard fix from 6e301c8 (removed_message_count can be 1 or 2 depending on whether the boundary falls on a tool-result pair). All 159 CLI + 431 runtime + 115 api tests pass.