Skip to content

fix(ws): prevent host message self-delivery - #14

Merged
kermanx merged 1 commit into
mainfrom
fix/issue-12-terminal-escape-loop
Jul 30, 2026
Merged

fix(ws): prevent host message self-delivery#14
kermanx merged 1 commit into
mainfrom
fix/issue-12-terminal-escape-loop

Conversation

@kermanx

@kermanx kermanx commented Jul 30, 2026

Copy link
Copy Markdown
Owner

Summary

  • exclude the embedded WebSocket host from its own broadcasts
  • preserve guest-to-host broadcast and targeted delivery
  • add routing regression coverage with terminal escape-sequence payloads

Root cause

Host Locally messages bypass the normal WebSocket sender exclusion. Terminal output broadcast by the host was therefore delivered back as terminal input and written into the PTY.

Verification

  • pnpm test
  • pnpm typecheck
  • pnpm exec eslint src/sync/ws/server.ts src/sync/ws/server.test.ts package.json
  • pnpm build

Closes #12

@kermanx
kermanx merged commit 866aafc into main Jul 30, 2026
1 check 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.

Shared terminal executes escape-sequence payloads as input (systemd OSC 3008 context signalling triggers runaway loop)

1 participant