Skip to content

refactor(renderer): group workspace and feature module owners - #40895

Merged
nwparker merged 2 commits into
mainfrom
module-layout-v2/renderer-owner-wave2-b561
Nov 10, 2026
Merged

nwparker merged 2 commits into
mainfrom
module-layout-v2/renderer-owner-wave2-b561

Conversation

@nwparker

@nwparker nwparker commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Group workspace search, catalog, ownership, activity and display modules by what they own. Put sidebar, notification, quick-command and window-chrome modules beside their features. Consumers import each defining module directly.

Files Added Deleted Net
Test 48 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​158 $\color{#cf222e}{\Huge{\mathbf{−}}}$​6636 $\color{#cf222e}{\Huge{\mathbf{−}}}$​6478
Prod 342 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​893 $\color{#cf222e}{\Huge{\mathbf{−}}}$​833 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​60

What Changed

  • Move 75 modules and extract the concrete text-generation message catalog. Add no barrels, compatibility exports or redundant aliases.
  • Preserve complete production bodies, state ownership, initialization order and dynamic loading boundaries. Carry the latest annotation, host-effects and teardown changes into their current consumers.
  • Apply repository test policy: retain 51 whole registrations and retire 134 whole registrations across the touched suites, including 33 planned whole-suite absences. One deletion is now inherited from upstream, leaving 32 new whole-suite deletions. Individual lost alarms remain in ignored local evidence; no equivalent coverage is claimed.
  • Reconcile only affected metadata keys. Preserve upstream test-policy changes, both upstream suite deletions, current reliability history and all unrelated timing values.

Why

The renderer library root mixes unrelated domains. Concrete ownership folders make the implementation and its consumers easier to find and keep feature code together.

Linked Issue

Continuation of the existing maintainer-authorized module-layout cleanup.

Visual Proof

N/A — module relocation preserves presentation and interaction behavior.

Testing

  • Full pnpm tc passed. All 13 retained focused suites passed: 53 tests.

  • Independent SOURCE and BOUNDARY audits accepted the exact current-parent candidate, including four current consumer Programs and bounded upstream metadata joins.

  • The first changed-check run found one stale administrative currentCommand path. Its one-literal correction passes the 153-gate reliability check and preserves historical commands/results exactly.

  • Final 2bee5ec changed-check run: all 38 non-unit checks passed. Its broad selection spans 385 source paths and timed out at 180 seconds; this is not a local full-unit pass. Under the repository's excessive-selection exception, the complete 13 retained suites (53 tests) provide scoped evidence. Hosted PR Checks 42917410755 passed all 12 full unit shards, static analysis, Linux/Windows packaging, layout oracle and the required aggregate. Mobile and Headless workflows also passed. Advisory E2E/WSL jobs remain running and are not counted as passes.

  • Both final independent audits accepted the one active command-path correction; all other metadata and historical receipt fields remain exact. Complete-program, defining-binding and loading-order audits are reused only for byte-identical sources; current consumers and metadata have separate bounded reviews.

  • Latest main 0da33cc adds 30 endpoints after the CI-tested c2e6eb + 2bee5ec union (tree 64de228). Independent SOURCE and BOUNDARY audits accepted the complete later union (tree cceba1a): upstream fixes/test reductions preserved, reliability history combined by keyed fields, timing deletions combined once, and one prior suite retirement inherited without new-cut credit. No fresh CI result is claimed for this later union.

No new tests or local rendered UI/native-device validation claimed.

Risk

Level: Medium. Broad import moves can affect singleton identity and initialization order. Complete-program and loading audits cover those boundaries. Test retirements intentionally remove their recorded alarms. A normal revert restores the prior layout; no persisted-data migration is introduced.

Agent skill upstream boundary

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

Latest main 19d0f15 adds eight disjoint backend/cloud entries after 0da33cc. Independent SOURCE and BOUNDARY audits accepted their exact preservation in prospective tree c4ebf66; all prior entries remain unchanged. CI still covers the earlier 64de228 tree. Standalone WSL has since passed; remaining advisory E2E status is checked live before merge.

@nwparker
nwparker merged commit 633e072 into main Nov 10, 2026
64 checks passed
audichuang added a commit to audichuang/orca that referenced this pull request Nov 12, 2026
…40337, stablyai#40562, stablyai#40688, stablyai#40745, stablyai#40761, stablyai#40777, stablyai#40895, stablyai#40911, stablyai#40936)

Rewrites fork import and vi.mock specifiers to the moved modules, moves the three fork tests that sit
beside moved modules (git-graph-tab, lazy-chunk-recovery-reload, folder-repo-launch-chat-route) and
their seam list entries, takes GIT_GRAPH_REFRESH_EVENT from its own module, and drops the fork's
OpenFile type import that upstream's editor-autosave now carries itself.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 13, 2026
…40337, stablyai#40562, stablyai#40688, stablyai#40745, stablyai#40761, stablyai#40777, stablyai#40895, stablyai#40911, stablyai#40936)

Rewrites fork import and vi.mock specifiers to the moved modules, moves the three fork tests that sit
beside moved modules (git-graph-tab, lazy-chunk-recovery-reload, folder-repo-launch-chat-route) and
their seam list entries, takes GIT_GRAPH_REFRESH_EVENT from its own module, and drops the fork's
OpenFile type import that upstream's editor-autosave now carries itself.
OmarHung added a commit to OmarHung/orca that referenced this pull request Nov 13, 2026
Upstream grouped more renderer owners into folders (stablyai#40230, stablyai#40745,
stablyai#40761, stablyai#40777, stablyai#40895, stablyai#40936) and dropped a few aliases. Fork imports
and vi.mock targets follow the moves, and:

- `@/lib/utils` cn → `@/lib/class-names`; `@/lib/language-detect` →
  `shared/editor-language/editor-language-detect`; agent catalog
  helpers come from `@/lib/agent-catalog/agent-catalog`.
- `BrowserTab` → `BrowserWorkspace`; `collectLeafIdsInOrder` →
  `collectLayoutLeafIdsInOrder`; `ORCA_BROWSER_BLANK_URL` lives in
  `shared/browser/browser-blank-page`; `tuiAgentToAgentKind` in
  `shared/agent-kind`.
- process-host no longer re-exports `SpawnedProcess`/`PipedChildProcess`,
  so SFTP and SSH VPN use node's ChildProcess types.
- The Database and Git Log shortcuts move to their own module so
  app-command-handlers.ts stays under the line cap.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
audichuang added a commit to audichuang/orca that referenced this pull request Nov 14, 2026
…40337, stablyai#40562, stablyai#40688, stablyai#40745, stablyai#40761, stablyai#40777, stablyai#40895, stablyai#40911, stablyai#40936)

Rewrites fork import and vi.mock specifiers to the moved modules, moves the three fork tests that sit
beside moved modules (git-graph-tab, lazy-chunk-recovery-reload, folder-repo-launch-chat-route) and
their seam list entries, takes GIT_GRAPH_REFRESH_EVENT from its own module, and drops the fork's
OpenFile type import that upstream's editor-autosave now carries itself.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 16, 2026
…40337, stablyai#40562, stablyai#40688, stablyai#40745, stablyai#40761, stablyai#40777, stablyai#40895, stablyai#40911, stablyai#40936)

Rewrites fork import and vi.mock specifiers to the moved modules, moves the three fork tests that sit
beside moved modules (git-graph-tab, lazy-chunk-recovery-reload, folder-repo-launch-chat-route) and
their seam list entries, takes GIT_GRAPH_REFRESH_EVENT from its own module, and drops the fork's
OpenFile type import that upstream's editor-autosave now carries itself.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 18, 2026
…40337, stablyai#40562, stablyai#40688, stablyai#40745, stablyai#40761, stablyai#40777, stablyai#40895, stablyai#40911, stablyai#40936)

Rewrites fork import and vi.mock specifiers to the moved modules, moves the three fork tests that sit
beside moved modules (git-graph-tab, lazy-chunk-recovery-reload, folder-repo-launch-chat-route) and
their seam list entries, takes GIT_GRAPH_REFRESH_EVENT from its own module, and drops the fork's
OpenFile type import that upstream's editor-autosave now carries itself.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 18, 2026
…40337, stablyai#40562, stablyai#40688, stablyai#40745, stablyai#40761, stablyai#40777, stablyai#40895, stablyai#40911, stablyai#40936)

Rewrites fork import and vi.mock specifiers to the moved modules, moves the three fork tests that sit
beside moved modules (git-graph-tab, lazy-chunk-recovery-reload, folder-repo-launch-chat-route) and
their seam list entries, takes GIT_GRAPH_REFRESH_EVENT from its own module, and drops the fork's
OpenFile type import that upstream's editor-autosave now carries itself.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 19, 2026
…40337, stablyai#40562, stablyai#40688, stablyai#40745, stablyai#40761, stablyai#40777, stablyai#40895, stablyai#40911, stablyai#40936)

Rewrites fork import and vi.mock specifiers to the moved modules, moves the three fork tests that sit
beside moved modules (git-graph-tab, lazy-chunk-recovery-reload, folder-repo-launch-chat-route) and
their seam list entries, takes GIT_GRAPH_REFRESH_EVENT from its own module, and drops the fork's
OpenFile type import that upstream's editor-autosave now carries itself.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 20, 2026
…40337, stablyai#40562, stablyai#40688, stablyai#40745, stablyai#40761, stablyai#40777, stablyai#40895, stablyai#40911, stablyai#40936)

Rewrites fork import and vi.mock specifiers to the moved modules, moves the three fork tests that sit
beside moved modules (git-graph-tab, lazy-chunk-recovery-reload, folder-repo-launch-chat-route) and
their seam list entries, takes GIT_GRAPH_REFRESH_EVENT from its own module, and drops the fork's
OpenFile type import that upstream's editor-autosave now carries itself.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 20, 2026
…40337, stablyai#40562, stablyai#40688, stablyai#40745, stablyai#40761, stablyai#40777, stablyai#40895, stablyai#40911, stablyai#40936)

Rewrites fork import and vi.mock specifiers to the moved modules, moves the three fork tests that sit
beside moved modules (git-graph-tab, lazy-chunk-recovery-reload, folder-repo-launch-chat-route) and
their seam list entries, takes GIT_GRAPH_REFRESH_EVENT from its own module, and drops the fork's
OpenFile type import that upstream's editor-autosave now carries itself.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 20, 2026
…40337, stablyai#40562, stablyai#40688, stablyai#40745, stablyai#40761, stablyai#40777, stablyai#40895, stablyai#40911, stablyai#40936)

Rewrites fork import and vi.mock specifiers to the moved modules, moves the three fork tests that sit
beside moved modules (git-graph-tab, lazy-chunk-recovery-reload, folder-repo-launch-chat-route) and
their seam list entries, takes GIT_GRAPH_REFRESH_EVENT from its own module, and drops the fork's
OpenFile type import that upstream's editor-autosave now carries itself.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 21, 2026
…40337, stablyai#40562, stablyai#40688, stablyai#40745, stablyai#40761, stablyai#40777, stablyai#40895, stablyai#40911, stablyai#40936)

Rewrites fork import and vi.mock specifiers to the moved modules, moves the three fork tests that sit
beside moved modules (git-graph-tab, lazy-chunk-recovery-reload, folder-repo-launch-chat-route) and
their seam list entries, takes GIT_GRAPH_REFRESH_EVENT from its own module, and drops the fork's
OpenFile type import that upstream's editor-autosave now carries itself.
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