Skip to content

refactor(terminal): organize input, clipboard, links and completion owners - #39113

Merged
nwparker merged 5 commits into
mainfrom
module-layout-v2/terminal-interaction-e84c-v2
Nov 6, 2026
Merged

nwparker merged 5 commits into
mainfrom
module-layout-v2/terminal-interaction-e84c-v2

Conversation

@nwparker

@nwparker nwparker commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Organizes terminal input, IME, keyboard, paste/drop, clipboard, host-file access, links, and completion into concrete implementation owners. Moves 269 files, retires one image forwarding module, and removes 14 forwarding exports; consumers import the defining owners directly. Preserves the selection-fit guard for the later layout batch.

Updates test mocks to the concrete path-mapping owners and preserves runtime import admission. Also fixes two stale fixture import paths introduced by the latest upstream ACP test so its existing assertions run against the current host/testing owners.

Validation: full typecheck; 214 initial focused tests across 16 files; 31 mock-correction tests; 42 import-order tests; 19 ACP restored-model tests and node typecheck; normal lint/format/AST commit hooks. Original implementation has independent source and boundary acceptance; finite actual-parent and ACP correction supplements plus fresh hosted CI are in progress.

Files Added Deleted Net
Test 166 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​343 $\color{#cf222e}{\Huge{\mathbf{−}}}$​323 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​20
Prod 231 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​720 $\color{#cf222e}{\Huge{\mathbf{−}}}$​725 $\color{#cf222e}{\Huge{\mathbf{−}}}$​5

@nwparker
nwparker marked this pull request as ready for review November 6, 2026 17:47
@nwparker
nwparker force-pushed the module-layout-v2/renderer-launch-owners-641e branch from e84c5b9 to fec6fca Compare November 6, 2026 17:49
@nwparker
nwparker force-pushed the module-layout-v2/terminal-interaction-e84c-v2 branch from 3a20784 to 862b9fa Compare November 6, 2026 17:53
@nwparker
nwparker force-pushed the module-layout-v2/terminal-interaction-e84c-v2 branch from 51171d9 to a256a2d Compare November 6, 2026 18:38
@nwparker
nwparker changed the base branch from module-layout-v2/renderer-launch-owners-641e to main November 6, 2026 18:38
@nwparker
nwparker merged commit 4941215 into main Nov 6, 2026
61 checks passed
nwparker added a commit that referenced this pull request Nov 13, 2026
…t/ owner move

#39113 moved IME and keyboard policy files under terminal-pane/input/, but the
native IBus and synthetic IME routes still matched the old paths, so IME changes
selected neither lane.
nwparker added a commit that referenced this pull request Nov 13, 2026
…n place (#41884)

* fix(ime): keep plain-committed Hangul so macOS 2-Set can rebuild it in place

Right after an input-source switch, macOS 2-Set can commit a lone jamo as
plain text and then rebuild it (ㅇ + ㅏ → 아) by replacing that committed
range. The native text forwarder emptied the field after every commit, so
the replacement had nothing to land on and the vowel was dropped (#9738).

Keep Hangul commits in the field (Latin commits still clear for #11504),
and erase replaced text from the PTY before the replacement is sent.

* fix(ime): only erase retained Hangul when the replacement is forwarded and still at the PTY cursor

Drop retention on blur, on any composition start, and on chord/named keydowns
the pane handles before the forwarder (macOS Ctrl+C, non-Latin control chords).
Erase only for insertText/composition replacements that end at the field tail.

* ci(e2e): route terminal IME changes to IME specs again after the input/ owner move

#39113 moved IME and keyboard policy files under terminal-pane/input/, but the
native IBus and synthetic IME routes still matched the old paths, so IME changes
selected neither lane.
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