Skip to content

refactor: place remaining renderer store modules with feature owners - #39503

Closed
nwparker wants to merge 3 commits into
module-layout-v2/store-worktree-owners-main2380from
module-layout-v2/store-final-domain-owners-mainc39
Closed

nwparker wants to merge 3 commits into
module-layout-v2/store-worktree-owners-main2380from
module-layout-v2/store-final-domain-owners-mainc39

Conversation

@nwparker

@nwparker nwparker commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

The renderer store still spreads plugin state, workspace catalogs, host identity, selection and subscriptions across its root and forwarding modules. Move those modules to their defining feature owners, split the mixed catalog/identity/selector responsibilities, and update consumers to import the concrete owners directly. Keep the actual store composition and AppState contract at the root; add no barrels or compatibility facades.

Remove internal work-count/private-state test scaffolding while retaining ownership, host isolation, draft lifetime, queued-close and shared/pending editor-content outcomes. Preserve current main's test deletions and trims.

Validation: final check:changed passed all 32 selected static checks, including node/web typechecks and import boundaries. Focused editor-retention tests passed (3 cases), and corrected sidebar routing tests passed (4 cases). The broad local unit selection hit its explicit one-minute limit and is not a pass; fresh hosted CI is required. Two independent refactor audits are completing on this exact tree. This is a draft until those reviews and CI pass.

Stacked on #39485; merge after #39451, #39458 and #39485 in sequence. Tracker and review evidence remain local.

Files Added Deleted Net
Test 407 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​893 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1925 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1032
Prod 681 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​2084 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1791 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​293

@nwparker
nwparker marked this pull request as ready for review November 7, 2026 14:25
@nwparker nwparker closed this Nov 7, 2026
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