Repository navigation
refactor: group shared settings, profiles and execution hosts - #43047
Merged
Merged
Conversation
nwparker
force-pushed
the
module-layout-v2/settings-host-e075db6f
branch
2 times, most recently
from
November 16, 2026 09:43
2ddd05c to
534c5ed
Compare
nwparker
marked this pull request as draft
November 16, 2026 09:45
nwparker
marked this pull request as ready for review
November 16, 2026 09:45
nwparker
force-pushed
the
module-layout-v2/settings-host-e075db6f
branch
2 times, most recently
from
November 16, 2026 10:51
b945e9d to
fd1680c
Compare
nwparker
force-pushed
the
module-layout-v2/settings-host-e075db6f
branch
from
November 16, 2026 11:29
fd1680c to
7fe7e60
Compare
This was referenced Nov 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
7fe7e601. The focused chat-upgrade run passed all six cases; both old/new phone-layout extraction cases pass.b945e9d7revision. Final7fe7e601is rebased onto maina5398a66; main’s SQL readers and worker fixture are preserved exactly, and moved imports use their concrete owners.pnpm check:changed --maxWorkers=2 --timeout=6on7fe7e601: 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.43858278336succeeds, including all 12 unit shards, compatibility, layout E2E, both general E2E shards, both managed-SSH shards andPR 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
Notes
Planning, tracker and detailed evidence remain local and ignored.