Commit eb655dd
committed
fix: add output buffering to terminal connection for race condition
- Buffer WebSocket output when no handlers are registered
- Flush buffered output when message handler subscribes
- Clear buffer on reconnect to prevent stale data
- Add debug warning when sendInput fails due to closed connection1 parent 9a8a929 commit eb655dd
4 files changed
Lines changed: 344 additions & 202 deletions
File tree
- backend/src
- src
- app/practice
- components
- lib
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| |||
0 commit comments