Skip to content

refactor(terminal): organize remaining pane features by owner - #39270

Merged
nwparker merged 4 commits into
mainfrom
module-layout-v2/pane-features-7823b12
Nov 7, 2026
Merged

nwparker merged 4 commits into
mainfrom
module-layout-v2/pane-features-7823b12

Conversation

@nwparker

@nwparker nwparker commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Group the remaining terminal-pane files with the feature that owns them, so restart, notifications, session actions, titles, snapshots, and recovery can be understood together. The terminal-pane root now contains its public TerminalPane.tsx mount boundary.

What Changed

  • Move 284 files into concrete feature owners and extract 15 defining modules, reusing existing account-restart, transport, completion, attention, and shared-terminal owners.
  • Split the mixed PTY contracts and runtime portal aggregate; import defining owners directly without barrels or forwarding shims.
  • Retarget callers, mocks, fixture URLs, CI routing, test runners, and reliability metadata. Preserve intentional dispatcher/store initialization admissions.
  • Split mixed tests by owning behavior. Remove prohibited copy, CSS, private-state, work-budget, and production-oracle tests plus two unused test-only queue inspectors; retain delivery, replay, recovery, and live-status coverage. Move the existing ingress reentrancy case to its shared owner and use fake clocks in the renderer startup-reply case.

Why

This completes the remaining terminal-pane root pass as one cohesive batch. It continues #39242 and keeps behavior implementations with their concrete owners. The wider module-layout tracker remains open.

Linked Issue

Maintainer-requested module-layout cleanup; follows #39242.

Visual Proof

N/A — no visual or interaction behavior changes.

Testing

  • macOS: renderer and node typechecks; focused groups passed 70 tests/6 files, 44 tests/8 files, and 61 tests/8 files. The two UI files whose unused fixtures were cleaned up passed a further 14 tests/2 files.
  • Normal commit hooks, formatting, lint, path-literal routing, and reliability manifest validation passed.
  • Production declaration conservation and exact fresh-main file/blob/mode composition passed; finite E2E/shell selector comparison covers 299 original-to-owner pairs; existing CI routing tests passed 59 cases across two files. These are structural checks, not runtime test coverage.
  • At the pre-rebase head, pnpm check:changed passed all 32 static checks; broad related units timed out at two minutes and reported two backend recovery failures. That recovery file passed all 24 tests in isolation on the branch; pristine current main failed its relay-spool case under the same command/background/worker settings. This does not establish the cause of the desktop-spool failure or claim a unit-suite pass. At rebased a483ca8, all 32 static checks passed; broad units again hit the two-minute cap and reported the relay-spool failure. The local gate is not green; full hosted CI is required before merge.
  • Rebased onto 66cd756f91a: exact whole-tree composition preserves all 370 incoming and 957 authored paths, including independent textual three-way checks for 10 contacts. The upstream trust-hold suite passed 3 tests after rebase. Two incoming tests now import concrete owners; both passed all 15 cases and the renderer typecheck passed.
  • Hosted CI on a483ca8 exposed duplicate type imports, four stale notification mock module keys, and one string-table import of a moved snapshot consumer. Corrections consolidate the type imports and retarget the five paths without changing assertions. All 69 existing cases across the five affected files passed locally. Fresh full hosted CI on the corrected SHA remains required.
  • Broader mock/string review found an unused error mock export and a shutdown benchmark resolver still targeting the old owner. The obsolete key is removed; the benchmark selects the current snapshots owner with historical-revision support. Its existing 1,535 capture layout/event traces, 48 byte-fit comparisons, and real headless captures passed; all 19 file-drop cases passed.
  • Rebased onto 72703504431b: six incoming files are preserved exactly; the seventh incoming import correction matches this branch. Exact full-tree composition passed.
  • Latest rebase onto 1a00fd0bb50b resolves one layout-writer baseline conflict by preserving the incoming removal/order and retargeting only the recovery-store path. All other tree entries are byte-identical to the prior accepted head. Both finite independent reviews and root replays passed on 0dba607f; the layout-writer ratchet passed. The immediately preceding local check passed all 32 static tasks; broad units timed out. Full hosted CI on this pushed head passed.
  • No new test registrations were added; existing functional registrations were relocated or retained.

Risk

Level: Medium. Incorrect imports, initialization order, test routing, or fixture paths could break terminal startup, notifications, or remote recovery. The change preserves runtime bodies and wire contracts; independent audits and full hosted platform CI gate merge. A plain revert restores the previous layout; there are no data migrations.

Review

Two independent native Codex audits passed on 49c5602, and separate root replays reproduced the source, graph, declaration, selector, and correction results. Their findings restored seven future layout-oracle admissions and retired a modeled title-parity harness with production-computed expectations (19 existing cases); its historical receipts remain intact, with no equivalent replacement coverage claimed. Both finite fresh-main integration reviews and root replays passed on a483ca8; both independent type-import supplements passed on e94cb24. Finite seven-correction source review passed on 7fe6fa5, including 13,169 mock calls and 94 relevant factories with no remaining owner/export mismatches. Both final independent source/boundary supplements and separate root replays passed on rebased ac4afeb1, then extended to baseline-only 0dba607f by exact source/graph/metadata invariance. Full hosted workflow 42333594513 passed in full-unit mode on 0dba607f; all 75 hosted contexts are terminal (63 success, 12 skipped). Fresh-main bd88cdec composition has 140 incoming paths, 960 authored paths and zero contacts; its 140 incoming modules/640 requests have no import-resolution regressions.

Agent skill upstream boundary

  • Not applicable; this change copies no upstream skill-installer material.

Checklist

  • One cohesive terminal-pane ownership batch, with local planning/evidence excluded from the PR.
  • Explained the change, risk, and rollback.
  • Visual proof N/A with reason.
  • Cross-platform, SSH/remote, mobile consumers, and folder workspaces considered; wire contracts and behavior are preserved.
  • Independent final audits and full hosted CI passed.

@nwparker
nwparker force-pushed the module-layout-v2/pane-features-7823b12 branch from bd91528 to ac4afeb Compare November 7, 2026 03:14
@nwparker
nwparker force-pushed the module-layout-v2/pane-features-7823b12 branch from ac4afeb to 0dba607 Compare November 7, 2026 03:20
@nwparker
nwparker merged commit 944ed9f into main Nov 7, 2026
75 checks passed
jinho-yoo-jack added a commit to jinho-yoo-jack/orca that referenced this pull request Nov 7, 2026
- Upstream moved TerminalPaneOverlayLayer.tsx to terminal-pane/mounting/
  (stablyai#39270), so its grid view focus test moves next to it. The test also had
  two mocks for the cold-parking hook, one at a path that no longer exists;
  only the current one is kept.
- The new react-compiler-compat ratchet counts ref reads during render.
  TerminalSplitWorkspaceSurfaces read mountedWorktreeIdsRef a second time to
  tell a restored, not yet mounted member from an empty one. It now records
  mounted ids in the pass that already filters on that ref.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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