You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(cosh): add ESC handler behavior tests in AppContainer.test.tsx
Add test coverage for ESC double-press clear behavior:
1. Verify ESC_DOUBLE_PRESS_WINDOW_MS is 500ms (matching qwen-code original design)
2. Document expected ESC handler behavior:
- First ESC: show prompt, set escapePressedOnce, start timer
- Second ESC within window: clear buffer, reset state
- ESC after timeout: restart first-press flow
- ESC with empty buffer + streaming: cancel ongoing request
- ESC with embeddedShellFocused: no action
- ESC with special contexts (shellMode/reverseSearch/completion): handle context first, not double-press clear
0 commit comments