Repository navigation
Commit 86e3ea7
committed
fix(zsh): clean up terminal after opencode TUI exit
opencode's TUI exits without fully restoring the terminal
(anomalyco/opencode#32336, #28358): it leaves mouse tracking, bracketed
paste, and the alternate screen enabled and never drains its
cursor-position-report reply (ESC[8;1R). Under zellij that reply races
into zsh, which self-inserts "8;1R" onto the next prompt.
Wrap opencode in a zsh function that re-disables the leaked modes and
drains pending query replies once it exits. Interim fix until the
upstream teardown bug is resolved and opencode-pinned is bumped past it.1 parent 1068fc1 commit 86e3ea7
1 file changed
Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
209 | 237 | | |
210 | 238 | | |
211 | 239 | | |
| |||
0 commit comments