[PR #4900] feat: implement double Ctrl+C to exit functionality with warning toast #11168

Open
opened 2026-02-16 18:15:58 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/4900

State: open
Merged: No


Problem: It's easy to accidentally exit opencode by pressing Ctrl+C once.

Proposed Solution: Require pressing Ctrl+C twice within 2 seconds to exit.
On first press, show a toast warning "Press again to exit".

Implementation: I have a working implementation ready if this is approved.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/4900 **State:** open **Merged:** No --- **Problem**: It's easy to accidentally exit opencode by pressing Ctrl+C once. **Proposed Solution**: Require pressing Ctrl+C twice within 2 seconds to exit. On first press, show a toast warning "Press again to exit". **Implementation**: I have a working implementation ready if this is approved.
yindo added the pull-request label 2026-02-16 18:15:58 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11168