fix: remove stabilization delay and fitAddon.fit() call

The WebSocket was closing exactly 100ms after switchToTerminal completed,
which correlated with the setTimeout(fitAddon.fit(), 100) call.

Hypothesis: The fitAddon.fit() call or the 100ms delay is causing
the WebSocket to close through an unknown mechanism (possibly triggering
browser GC, event loop blocking, or some resource cleanup).

Changes:
- Removed 100ms stabilization delay in launchCommand
- Disabled fitAddon.fit() call in switchToTerminal

This should prevent the WebSocket closure and allow commands to be sent.
This commit is contained in:
uroma
2026-01-19 19:30:57 +00:00
Unverified
parent 7df381ff41
commit 6621d3b9ec
3 changed files with 15 additions and 21 deletions

Binary file not shown.