Files
chenhg5-cc-connect/core
cg33 e43edf027d feat(core): add /cancel command to interrupt and reset session (#957)
Add /cancel command that stops current execution and creates a fresh
session. Unlike /stop which only halts execution, /cancel also clears
the session history so the user can immediately continue with new
instructions.

Changes:
- Add "cancel" to builtinCommands
- Implement cmdCancel function combining /stop + /new logic
- Add MsgSessionCancelled i18n key with 5 language translations
- Add /cancel to help card session section

Use case: When agent is blocked on long-running task (e.g., mvn install),
/cancel lets user interrupt and start fresh without waiting.

Fixes #938

Co-authored-by: Claude <noreply@anthropic.com>
2026-06-07 09:58:51 +08:00
..