Commit 785b033
committed
🤖 fix: prevent escape from interrupting stream during message editing
When editing a message while streaming, pressing Escape to cancel editing
would also interrupt the active stream. This is the same issue fixed in
PR #954 for workspace renaming.
Added stopPropagation() in both code paths:
- Non-vim mode: ChatInput's CANCEL_EDIT handler
- Vim mode: VimTextArea's escapeInNormalMode handler
This prevents the Escape keydown event from reaching the global stream
interrupt handler in useAIViewKeybinds.
_Generated with `mux`_1 parent ad7e163 commit 785b033
File tree
3 files changed
+3
-0
lines changed- src/browser/components
- ChatInput
3 files changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1231 | 1231 | | |
1232 | 1232 | | |
1233 | 1233 | | |
| 1234 | + | |
1234 | 1235 | | |
1235 | 1236 | | |
1236 | 1237 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| 169 | + | |
169 | 170 | | |
170 | 171 | | |
171 | 172 | | |
| |||
0 commit comments