Skip to content

Fix terminal garbage on WebSocket reconnect#342

Merged
0pcom merged 1 commit intoskycoin:developfrom
0pcom:fix-pty-reconnect
Mar 6, 2026
Merged

Fix terminal garbage on WebSocket reconnect#342
0pcom merged 1 commit intoskycoin:developfrom
0pcom:fix-pty-reconnect

Conversation

@0pcom
Copy link
Collaborator

@0pcom 0pcom commented Mar 6, 2026

No description provided.

Use binary WebSocket mode instead of text mode for PTY data.

PTY output contains bytes that aren't valid UTF-8 (raw terminal escape
sequences, binary data). Text mode WebSocket frames require valid UTF-8,
causing "Could not decode a text frame as UTF-8" errors and disconnects.

Binary mode handles raw terminal data correctly while the frontend
already supports ArrayBuffer messages.

Changes:
- ui.go: Change websocket.MessageText to websocket.MessageBinary
@0pcom 0pcom merged commit 9eac5ab into skycoin:develop Mar 6, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant