8000 feat(tui): add debounce logic to escape key interrupt by monotykamary · Pull Request #169 · sst/opencode · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat(tui): add debounce logic to escape key interrupt #169

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

monotykamary
Copy link
@monotykamary monotykamary commented Jun 17, 2025

Summary

• Implements two-stage escape key mechanism to prevent accidental chat operation cancellations
• First escape press shows "esc again interrupt", second press within 2 seconds actually cancels

Screen.Recording.2025-06-17.at.20.24.33.mov

Test plan

  • Start a chat operation that shows "esc interrupt"
  • Press escape once and verify it shows "esc again interrupt"
  • Press escape again within 2 seconds and verify operation cancels
  • Start another operation, press escape once, wait 2+ seconds and verify it reverts to "esc interrupt"
  • Verify normal escape behavior still works for non-busy states

🤖 Generated with opencode

@monotykamary monotykamary force-pushed the feat/escape-key-debounce branch from 0353d53 to a97d81e Compare June 17, 2025 13:55
@adamdotdevin
Copy link
Collaborator

hey, things moved around a little bit, i think we want to move forward with this though; mind updating to work with the dynamic keybinds?

monotykamary and others added 2 commits June 21, 2025 13:28
…dental cancellations

Implements a two-stage escape key mechanism where the first press shows "esc again interrupt"
and requires a second press within 1 second to actually cancel the operation. This prevents
users from accidentally interrupting long-running chat operations while maintaining responsive
cancellation when intentional.

🤖 Generated with [opencode](https://opencode.ai)

Co-Authored-By: opencode <noreply@opencode.ai>
@monotykamary monotykamary force-pushed the feat/escape-key-debounce branch from 0a1e8e3 to a4ae83a Compare June 21, 2025 06:52
@monotykamary
Copy link
Author

hopefully should be ok

Screen.Recording.2025-06-21.at.13.49.30.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0