Skip to content

refactor(renderer): organize host and terminal owners and remove forwarding shells - #39320

Merged
nwparker merged 7 commits into
mainfrom
module-layout-v2/host-terminal-owners-97f2de9
Nov 7, 2026
Merged

nwparker merged 7 commits into
mainfrom
module-layout-v2/host-terminal-owners-97f2de9

Conversation

@nwparker

@nwparker nwparker commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Group renderer host and terminal code under concrete owners and route imports and mocks directly to their implementations.

Files Added Deleted Net
Test 624 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​3292 $\color{#cf222e}{\Huge{\mathbf{−}}}$​3321 $\color{#cf222e}{\Huge{\mathbf{−}}}$​29
Prod 806 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​2909 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2894 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​15

What Changed

  • Organize host transport, terminal creation/recovery, file access and session-state modules by ownership.
  • Extract real implementations from mixed modules. Remove forwarding shells and redundant keyboard, paste, link, startup and delivery-credit aliases.
  • Give independent Electron and browser status-recovery viewers separate pairing tickets to the same host. Preserve main's device-sightings and Monaco cleanup; the equivalent local follow-up is superseded.
  • Update static/dynamic imports, mocks, source loaders and reliability selectors. Retain meaningful recovery, refusal, race and compatibility cases.

Why

The runtime/store roots mix unrelated features. Concrete owner directories make the module tree and dependency boundaries easier to follow without adding barrels or compatibility shims.

Linked Issue

Part of the existing module-layout cleanup tracker.

Visual Proof

N/A: module organization and test maintenance; no intended visual changes.

Testing

  • Current head ec3804f86456 is rebased onto main b1221ed985c1. Exact tree checks preserve 192 incoming paths and all 26 upstream deletions. Three source contacts equal main plus direct-owner routing and formatting; reliability and timing metadata compose by exact leaf union. Main’s title-refresh optimization, its two cases, and the floating-panel keyboard case are retained.
  • Current web typecheck, 59 focused tests across four title/keyboard files, and changed-code quality across 1,376 source files pass. The formatting commit and normal push passed.
  • Two independent SOURCE/BOUNDARY supplements and root sealed replays accept the current tree. All original review qualifications remain, including standalone initialization-order changes and intentionally repaired mocks.
  • Fresh full PR workflow 42365391032 is running. The preceding head completed full workflow 42361433805 successfully after a failed-only retry; that result does not validate this new source.
  • The status-recovery setup gives independent Electron/browser viewers separate host-issued pairing tickets. Earlier pristine-parent control 42359475622 reproduced the original pairing-token failures; the preceding head’s E2E lanes passed. Fresh current-head runtime checks remain required.
  • Historical cleanup and pairing checks remain pinned to their original revisions and are not summed as unique current coverage.

Risk

Medium: import routing and initialization changes can affect terminal recovery, session adoption or launch. Audits cover direct defining owners, singleton identity, eager registrations, mock bindings, source loaders, remote/folder workspaces and mixed-version boundaries. There is no persisted-data migration.

Review

Two independent native audits and root sealed replays accept the original batch and all current-main supplements. Fresh current-head CI and actual merge-parent/tree verification remain required. Detailed evidence stays local. Upstream renderer automation retirements and all deliberate test removals remain preserved.

The isolated keyboard helper graph narrows from 1,971 to 24 modules after an unused recording wrapper retires. Application/TerminalPane consumers retain the actual singleton and registration owners; standalone initialization timing, declaration ordering and moved private paste-cache allocation are explicitly qualified. Main intentionally changes renderer admissions by retiring automation launch code. Mock corrections repair previously ineffective interception. This is not a claim that every isolated module has identical boot behavior.

Agent skill upstream boundary

  • This change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

@nwparker
nwparker force-pushed the module-layout-v2/host-terminal-owners-97f2de9 branch from 7d9ecff to b59a4a1 Compare November 7, 2026 07:17
@nwparker
nwparker force-pushed the module-layout-v2/host-terminal-owners-97f2de9 branch from b59a4a1 to 2a0a7f3 Compare November 7, 2026 07:46
@nwparker nwparker changed the title refactor(renderer): organize host and terminal implementation owners refactor(renderer): organize host and terminal owners and remove forwarding shells Nov 7, 2026
@nwparker
nwparker force-pushed the module-layout-v2/host-terminal-owners-97f2de9 branch 2 times, most recently from 6ad5653 to c47cd78 Compare November 7, 2026 08:43
@nwparker
nwparker force-pushed the module-layout-v2/host-terminal-owners-97f2de9 branch 3 times, most recently from d7cad1e to 39d6c42 Compare November 7, 2026 09:50
@nwparker
nwparker force-pushed the module-layout-v2/host-terminal-owners-97f2de9 branch from 39d6c42 to ec3804f Compare November 7, 2026 10:46
@nwparker
nwparker merged commit 23808bb into main Nov 7, 2026
65 checks passed
audichuang added a commit to audichuang/orca that referenced this pull request Nov 8, 2026
Points fork imports at the modules upstream split or moved (stablyai#39292, stablyai#39508, stablyai#39571, stablyai#39320, stablyai#39746,
stablyai#39534, stablyai#39270) and drops duplicate imports the moves left behind.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 10, 2026
Points fork imports at the modules upstream split or moved (stablyai#39292, stablyai#39508, stablyai#39571, stablyai#39320, stablyai#39746,
stablyai#39534, stablyai#39270) and drops duplicate imports the moves left behind.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 10, 2026
Points fork imports at the modules upstream split or moved (stablyai#39292, stablyai#39508, stablyai#39571, stablyai#39320, stablyai#39746,
stablyai#39534, stablyai#39270) and drops duplicate imports the moves left behind.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 12, 2026
Points fork imports at the modules upstream split or moved (stablyai#39292, stablyai#39508, stablyai#39571, stablyai#39320, stablyai#39746,
stablyai#39534, stablyai#39270) and drops duplicate imports the moves left behind.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 13, 2026
Points fork imports at the modules upstream split or moved (stablyai#39292, stablyai#39508, stablyai#39571, stablyai#39320, stablyai#39746,
stablyai#39534, stablyai#39270) and drops duplicate imports the moves left behind.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 14, 2026
Points fork imports at the modules upstream split or moved (stablyai#39292, stablyai#39508, stablyai#39571, stablyai#39320, stablyai#39746,
stablyai#39534, stablyai#39270) and drops duplicate imports the moves left behind.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 16, 2026
Points fork imports at the modules upstream split or moved (stablyai#39292, stablyai#39508, stablyai#39571, stablyai#39320, stablyai#39746,
stablyai#39534, stablyai#39270) and drops duplicate imports the moves left behind.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 18, 2026
Points fork imports at the modules upstream split or moved (stablyai#39292, stablyai#39508, stablyai#39571, stablyai#39320, stablyai#39746,
stablyai#39534, stablyai#39270) and drops duplicate imports the moves left behind.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 18, 2026
Points fork imports at the modules upstream split or moved (stablyai#39292, stablyai#39508, stablyai#39571, stablyai#39320, stablyai#39746,
stablyai#39534, stablyai#39270) and drops duplicate imports the moves left behind.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 19, 2026
Points fork imports at the modules upstream split or moved (stablyai#39292, stablyai#39508, stablyai#39571, stablyai#39320, stablyai#39746,
stablyai#39534, stablyai#39270) and drops duplicate imports the moves left behind.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 20, 2026
Points fork imports at the modules upstream split or moved (stablyai#39292, stablyai#39508, stablyai#39571, stablyai#39320, stablyai#39746,
stablyai#39534, stablyai#39270) and drops duplicate imports the moves left behind.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 20, 2026
Points fork imports at the modules upstream split or moved (stablyai#39292, stablyai#39508, stablyai#39571, stablyai#39320, stablyai#39746,
stablyai#39534, stablyai#39270) and drops duplicate imports the moves left behind.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 20, 2026
Points fork imports at the modules upstream split or moved (stablyai#39292, stablyai#39508, stablyai#39571, stablyai#39320, stablyai#39746,
stablyai#39534, stablyai#39270) and drops duplicate imports the moves left behind.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 21, 2026
Points fork imports at the modules upstream split or moved (stablyai#39292, stablyai#39508, stablyai#39571, stablyai#39320, stablyai#39746,
stablyai#39534, stablyai#39270) and drops duplicate imports the moves left behind.
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