Commit c80f3d3
authored
🤖 fix: prevent escape from interrupting stream during message editing (#1010)
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 e07ef9d commit c80f3d3
2 files changed
+2
-0
lines changed| 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