fix(split-pane): reset _wsReady on WS close/error in SplitTerminalPane

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
timkjr
2026-09-20 13:10:25 -05:00
co-authored by Claude Sonnet 5
parent 6f64e557e5
commit fa8bb13a27
+14
View File
@@ -70,6 +70,20 @@
/* Malformed frame — ignore, matches primary pane's tolerance. */
}
};
// Mirror app.js's onclose/onerror pattern (app.js:2905-2964): _wsReady
// must go false on a drop or fit()/_sendResize() silently no-ops on a
// closed socket per the WebSocket spec (no exception, no log). No
// reconnect logic here — Pane B is deliberately plainer than the
// primary pane (see the fileoverview above); a drop just stops
// resizing until the parent recreates the pane.
this.ws.onclose = () => {
this._wsReady = false;
};
this.ws.onerror = () => {
// onclose fires after onerror — cleanup happens there.
};
}
fit() {