opencode icon indicating copy to clipboard operation
opencode copied to clipboard

feat: implement double Ctrl+C to exit functionality with warning toast

Open AmineGuitouni opened this issue 3 weeks ago • 1 comments

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.

AmineGuitouni avatar Nov 29 '25 16:11 AmineGuitouni

@rekram1-node - this one has been really useful as well. i struggle with accidentally closing opencode way too much, especially since control-c also clears the prompt. this gives a nice buffer while retaining existing functionality

shuv1337 avatar Dec 02 '25 07:12 shuv1337