Commit 7939f39
committed
fix: serialize input RPCs to preserve byte order (#3164)
ControllerInputCommand was fire-and-forget, letting wavesrv process
concurrent calls on separate goroutines and reorder bytes before they
reached the PTY. Under fast IME composition followed by ASCII input
this produced visible corruption like "이 런문제" instead of
"이런 문제" — the same user-visible symptom as #3164 even after the
xterm-side IME fix earlier in this PR.
Chain calls through a Promise queue so each RPC awaits the previous,
preserving dispatch order all the way to the PTY.1 parent 34aad10 commit 7939f39
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
506 | 506 | | |
507 | 507 | | |
508 | 508 | | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
509 | 514 | | |
510 | 515 | | |
511 | | - | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
512 | 519 | | |
513 | 520 | | |
514 | 521 | | |
| |||
0 commit comments