Skip to content

refactor(renderer): group appearance and terminal feature owners - #40719

Merged
nwparker merged 2 commits into
mainfrom
module-layout-v2/renderer-direct-owners-50e265
Nov 10, 2026
Merged

nwparker merged 2 commits into
mainfrom
module-layout-v2/renderer-direct-owners-50e265

Conversation

@nwparker

@nwparker nwparker commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Group renderer modules with the features that own them, and import implementations directly from their defining files.

What Changed

  • Move 47 existing modules into app-shell appearance, editor appearance, floating-terminal, terminal-pane, workspace, and host-capability owners. Update their callers and test mocks directly.
  • Replace store forwarding exports and replacement aliases with concrete defining-owner imports. Remove the empty Linear publication barrel and the IPC test harness forwarding exports.
  • Keep preserved-branch cleanup construction and runtime-target registration together in its existing cleanup owner. Preserve the same record, Map, execution point and host-qualified fields.
  • Remove 31 complete test registrations that violate the repository test policy, including the transport suite's two parameterized executions and its orphan wrapper. These cuts lose meaningful state/race alarms alongside the prohibited work-count and private-state checks; they are not equivalent replacements. Preserve complete surviving cases, and update active timing/ratchet metadata.

Why

Appearance and terminal/workspace behavior should have concrete feature owners rather than accumulating in the renderer library root. Store consumers should depend on the defining implementation, without barrels, compatibility paths or forwarding aliases. This is the next cohesive batch in the module-layout cleanup.

Linked Issue

Internal module-layout cleanup; no new issue.

Visual Proof

N/A — module ownership and imports change without rendered layout or interaction changes.

Testing

  • Affected suites: 44 files, 231 tests passed; 13 existing skips. This run preceded the final removal of three redundant later bare imports; the final gate validates the published head.
  • Normal commit hooks passed. Independent applied-tree source and boundary reviews accepted; both root replays passed. Final ORCA_BACKGROUND_LAUNCH=1 pnpm check:changed passed all 38 checks (395.6 seconds), including related units and typechecks.
  • Full hosted CI 42792015087 attempt 2 passed: all 12 unit shards, static/typechecks, Linux/Windows packages, relay integration, changed E2E and both SSH jobs. Headless Node server CI passed. Attempt 1 shard 1 passed its cases but failed on an unhandled Unable to remove watcher: Invalid argument rejection in an unchanged plugin-worker suite. A focused local run passed all 5 cases. The failed-only retry passed while preserving successful jobs; the original cause remains unproven.

Risk

Level: Medium. Import evaluation order, singleton identity, test mock routing, and platform/host ownership are the main risks. Existing initialization requests and cycles are preserved; duplicate requests are removed only where the same module is already loaded by an earlier value import. No new local-host or Git-worktree assumption is introduced. Linux/Windows behavior and Mobile/shared callers remain with their existing implementations. A plain revert restores the earlier organization.

The test-policy cuts reduce coverage, including the retired transport suite's stale/current provider replacement, mutation drain, forced recovery and unmount alarms. Detailed source and lost-alarm evidence stays local and ignored.

Review

Independent actual-tree source and boundary audits accepted, including the one-file latest-main carry and final duplicate-request cleanup. Their authenticated root replays passed. The bounded latest-main notification-title carry also passed independent source and boundary reviews with both root replays. Full CI executed the reviewed 8a10 + 4560 tree; the newer 33a4 + 4560 union is source-reviewed, without a combined execution claim. Actual squash authentication remains required. Detailed plans and evidence stay local.

Agent skill upstream boundary

  • Not applicable: no upstream skill-installer material is copied or translated.

Checklist

  • Cohesive renderer ownership scope
  • Changes, purpose and risk explained
  • No visual change
  • Cross-platform, remote, Mobile and folder-workspace impact considered
  • Final local gates passed
  • Required hosted CI passed

@nwparker
nwparker merged commit 7c01847 into main Nov 10, 2026
99 of 101 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