Files
qwen-code/packages
pomelo-nwu 5aebf18688 feat: enhance Ctrl+C behavior with intelligent dialog/request handling
- Preserve fast double-press habit: Ctrl+C twice = direct quit
- Implement smart cleanup on single press with priority order:
  1. Close dialogs (theme, auth, settings, etc.) like ESC key
  2. Cancel ongoing streaming requests
  3. Clear input buffer content
  4. Show quit confirmation when all cleanup done
- Special case: Ctrl+C in quit-confirm dialog = immediate exit
- Extract dialog closing logic into reusable useDialogClose hook
- Refactor handleExit to centralize all exit logic
- Update help text and dialog hints to reflect new behavior
- Fix delay issues in first Ctrl+C press by optimizing request cancellation

Improves UX by making Ctrl+C context-aware while maintaining user habits.
2025-09-11 16:39:42 +08:00
..
2025-09-09 09:25:07 +08:00