test(settings-store): inventory deferred load facade locals - #1649
Merged
Conversation
#1637 split Settings load so the snapshot can publish before runtime probes finish. The architecture inventory still expected the previous combined Promise.all binding, so Full Module tests failed on every PR.
Codex ReviewVerdict: mergeable No actionable findings. Summary: Static inspection found no concrete merge-blocking defects in the pull request changes. The architecture test inventory matches the current Settings facade declarations. |
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.
Problem
perf(startup): defer transcript and runtime probes(#1637) changedsettings-storeload()so the persisted Settings snapshot can publish before runtime probes finish. The architecture inventory still expected the previous combinedPromise.allbinding and a singlecatch (error).That guard only runs in the full portable suite (
Full Module tests (macOS)), not intest:module, so later PRs fail PR Gate even when they do not touch Settings.Observed on PRs including #1641, #1643, #1648, #1524, and #1432:
Proposed change
Update the facade variable inventory to the current
load()locals and allow the twocatch (error)bindings. Production load behavior is unchanged.Scope and non-goals
settings-store.architecture.test.tsinventory only.Acceptance criteria and validation
load()locals.npm test -- src/renderer/src/stores/settings-store.architecture.test.ts src/renderer/src/stores/settings-store.test.ts→ passnpx vitest run --project architecture→ 28 files / 221 tests passnpx eslint src/renderer/src/stores/settings-store.architecture.test.ts→ passReview focus
Confirm the inventoried names are load-local control flow from #1637, not new feature actions or Settings writes on the facade.
Historical compatibility
None. No schema, Session JSON, or on-disk format change.
New enum / state values
None.
Persistence
None.