Skip to content

refactor: group shared settings, profiles and execution hosts - #43047

Merged
nwparker merged 8 commits into
mainfrom
module-layout-v2/settings-host-e075db6f
Nov 16, 2026
Merged

nwparker merged 8 commits into
mainfrom
module-layout-v2/settings-host-e075db6f

Conversation

@nwparker

@nwparker nwparker commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Put the remaining loose shared settings and host files into the folders that own them, and point consumers directly to those owners.

What Changed

Move nine production modules, two fixtures and one retained test out of the shared root. Extract 13 definitions into nine concrete feature modules while retaining profile-default composition. This leaves no loose JavaScript/TypeScript modules in src/shared. Preserve production bodies, values, initialization order and module identity; add no barrels or forwarding shims. Carry main’s latest notification defaults and persisted UI fields into their new owners.

Continue the authorized combined cleanup: retire 91 whole test suites and remove repository-prohibited whole cases and exclusive scaffolding from retained suites. This includes 89 suites from the original review, plus the incoming copy-only browser-indicator suite and a plugin E2E case that asserts private renderer state. The latter loses meaningful catalog, suggestion, preview and dismissal alarms; no equivalent replacement coverage is claimed. Update runners, routing, baselines, timings and reliability selectors. Preserve historical evidence with explicit coverage-loss notes. Upstream removals are excluded from authored counts.

Retain main’s released phone-reader discovery and SQL-backed chat-reader fixes unchanged. Extend the extracted mobile source with its i18n dependencies, remove stale tests from that extraction, and invalidate stale checkout caches. Preserve historical synchronous writers and all 24 existing chat-upgrade assertions; remove the branch’s duplicate SQL reader adapter.

Why

Concrete feature owners make dependencies visible and keep profile defaults from serving as a catch-all import surface. Compatibility tests must load the code each release actually shipped as its layout and database API evolve.

Linked Issue

Maintainer-requested module layout cleanup; no separate issue.

Visual Proof

N/A — production changes organize file ownership and imports without changing UI behavior.

Testing

  • Independent source/import/initialization, test-policy/resource, physical-tree and bounded rebase audits pass. Main’s new notification UI definitions are carried byte-for-byte; new incoming consumers use defining owners.
  • Full local compatibility suite: 37 files passed; 116 tests passed, one skipped on final 7fe7e601. The focused chat-upgrade run passed all six cases; both old/new phone-layout extraction cases pass.
  • Retained incoming tests: three files, five tests passed. Earlier settings/profile-focused evidence: 70 files passed, two skipped; 533 tests passed, five skipped, at its recorded earlier revision.
  • Exact whole-tree hosted focused lint passes locally on the recorded b945e9d7 revision. Final 7fe7e601 is rebased onto main a5398a66; main’s SQL readers and worker fixture are preserved exactly, and moved imports use their concrete owners.
  • Final pnpm check:changed --maxWorkers=2 --timeout=6 on 7fe7e601: all 43 non-unit checks passed. Broad units reported two process-host rebuild failures and SQLite worker errors, then hit the six-minute cap; the gate is failed/incomplete, not a local broad pass. All 12 hosted unit shards on this reconciled commit pass.
  • Normal commit hooks pass. Final hosted validation: full primary workflow 43858278336 succeeds, including all 12 unit shards, compatibility, layout E2E, both general E2E shards, both managed-SSH shards and PR checks passed. All 97 current PR checks settle: 81 success, 16 skipped; none failed or pending. Earlier hosted failures remain historical and are not counted as current passes.

Earlier broad local runs reported process-host watcher failures and SQLite worker errors before timing out. No complete local broad pass or pre-existing-failure classification is claimed. Existing tests are retained or retired under repository policy; the two new extraction cases cover the actual released-source loading regression.

Risk

Level: Medium. Import rewrites span desktop, runtime, mobile and shared consumers. A missed dependency could break loading or persisted-settings consumers. Independent body/initializer and full-tree carry audits address that risk. Test retirements intentionally reduce alarms. The authored harness changes affect test-only mobile source extraction; cross-platform/remote execution is covered by hosted checks. A plain revert restores the prior layout and test set.

Review

Independent native Codex audits cover source/import ownership, test-policy/resource changes, harness behavior/resource cleanup and rebases. Final hosted validation passes. The independently checked latest-main merge preview preserves both upstream subscriber fixes byte-for-byte alongside the complete audited refactor tree. CodeRabbit is skipped; no hosted approval is claimed.

Agent skill upstream boundary

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

Notes

Planning, tracker and detailed evidence remain local and ignored.

@nwparker
nwparker force-pushed the module-layout-v2/settings-host-e075db6f branch 2 times, most recently from 2ddd05c to 534c5ed Compare November 16, 2026 09:43
@nwparker
nwparker marked this pull request as draft November 16, 2026 09:45
@nwparker
nwparker marked this pull request as ready for review November 16, 2026 09:45
@nwparker
nwparker force-pushed the module-layout-v2/settings-host-e075db6f branch 2 times, most recently from b945e9d to fd1680c Compare November 16, 2026 10:51
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