Skip to content

fix: keep terminal input sources explicit#383

Merged
whoisasx merged 1 commit into
mainfrom
fix/terminal-explicit-input-sources
Jun 22, 2026
Merged

fix: keep terminal input sources explicit#383
whoisasx merged 1 commit into
mainfrom
fix/terminal-explicit-input-sources

Conversation

@whoisasx

Copy link
Copy Markdown
Collaborator

Summary

  • stop forwarding raw xterm onData bytes into the terminal mux
  • restore explicit keyboard input via onKey while keeping paste, composition, shortcut, and wheel paths intentional
  • add regression coverage so terminal-generated/control bytes are not treated as user input

RCA

PR #372 restored terminal copy/scroll behavior but reintroduced the raw xterm data stream as mux input. That can forward attach/repaint control responses into the real Codex PTY, recreating the dirty-byte corruption fixed in #325. This patch keeps the #372 intentional shortcut and wheel behavior while restoring the #325 safety boundary.

Tests

  • cd frontend && npm test -- XtermTerminal useTerminalSession
  • cd frontend && npm run typecheck

Notes

Unrelated local generated/package changes were left out of this commit.

@whoisasx whoisasx requested a review from Vaibhaav-Tiwari June 22, 2026 15:13
@whoisasx whoisasx merged commit afe0817 into main Jun 22, 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