Skip to content

refactor(renderer): organize terminal pane lifecycle and layout owners - #39242

Merged
nwparker merged 1 commit into
mainfrom
module-layout-v2/pane-lifecycle-051bc5b
Nov 7, 2026
Merged

nwparker merged 1 commit into
mainfrom
module-layout-v2/pane-lifecycle-051bc5b

Conversation

@nwparker

@nwparker nwparker commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Terminal-pane lifecycle, layout, and controller responsibilities were scattered across the pane root and mixed aggregates. Move 128 modules and extract 86 concrete owners for mounting, layout operations, input, visibility, restoration, titles, and menu actions. The pane root drops from 426 files to 293.

Preserve hook and subscription order, captured initialization, callback identities, singleton state, and test assertions. Consumers and mocks import defining owners directly. Retire five mixed aggregates and the unused recovery portal forwarding export; update test selectors, path baselines, and the shutdown benchmark's current and historical owner resolution.

Preserve upstream's dictation target registration and hidden-tab focus guard in the extracted owners, together with the complete upstream async paste implementation, onboarding changes, mobile dictation fixes, web E2EE changes, and latest native-chat styling fix.

Validation:

  • Full PR workflow 42324789069 passed on head 04e92b0: all 12 unit shards, static/type checks, packaging, layout/changed E2E and managed SSH checks. Headless workflow 42324788963 also passed; all 58 hosted contexts are successful or skipped, including the required aggregate.
  • Current rebase: renderer typecheck and nine focused dictation/paste tests pass. Original batch: 81 focused tests and shutdown benchmark against current/historical source layouts (1,535 comparisons, 48 byte-fit cases, 13 timing fixtures each); no speedup claim.
  • Two independent source and boundary audits, including all incoming main changes, pass. Root replay reproduces the sealed results; evidence stays local.

Immediate pre-push check:changed passed 32 of 33 checks. The broad related-test run timed out at two minutes and reported an unchanged backend helper-recovery case. That file passed all 24 tests in isolation on the rebased branch; earlier matched original-branch/pristine-parent controls also passed 24/24. The capped local run is incomplete; the fresh full hosted workflow passed before merge.

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