mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-17 10:02:23 +00:00
fix(tui): drain stdin on exit to avoid Kitty release leak
Drain stdin for up to 1s after disabling Kitty protocol so in-flight key release events are consumed before the shell regains control. Fixes #1204
This commit is contained in:
parent
9a4d043b28
commit
8c38de0495
5 changed files with 42 additions and 22 deletions
|
|
@ -4,11 +4,11 @@
|
|||
|
||||
### Added
|
||||
|
||||
- Added `Terminal.prepareForExit()` method to drain Kitty key release events before exit
|
||||
- Added `Terminal.drainInput()` to drain stdin before exit (prevents Kitty key release events leaking over slow SSH)
|
||||
|
||||
### Fixed
|
||||
|
||||
- Fixed Kitty key release events leaking to parent shell over slow SSH connections ([#1204](https://github.com/badlogic/pi-mono/issues/1204))
|
||||
- Fixed Kitty key release events leaking to parent shell over slow SSH connections by draining stdin for up to 1s ([#1204](https://github.com/badlogic/pi-mono/issues/1204))
|
||||
|
||||
## [0.51.1] - 2026-02-02
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue