Repository navigation
Store settings with electron-store 12 - #379
Merged
jtklein-agents merged 2 commits intoNov 25, 2026
Merged
jtklein-agents merged 2 commits into
jtklein-agents merged 2 commits into
Conversation
electron-store 12 and conf are ESM-only, so the CommonJS main bundles them through externalizeDeps.exclude. A 2.0.19 config.json still loads. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tore-settings-with-electron-store-12 Keeps electron-log 5 (#375) and electron-store 12, and regenerates yarn.lock. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jtklein-agents
merged commit Nov 25, 2026
cd234a6
into
spec/370-electron-build-and-runtime-packages-current
9 checks passed
6 tasks
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.
Closes #374
Summary
The main process uses electron-store 12. It and
confare ESM-only, so the CommonJS main build bundles them instead of callingrequire().src/test/electron.tsloses itssendSyncstub. Its comment said electron-store called it, but only the preload callssendSyncand no Vitest test imports the preload.CODING_STANDARDS.md› Test doubles drops a double with no caller.Evidence
out/main/index.jshasrequire("electron-store"). electron-store 12 can't load that way, so the upgrade alone breaks main.After:
yarn buildgives a CommonJSout/main/index.jswith norequire("electron-store")orrequire("conf").config.jsonis{ "darkMode": true }.After: I launched the built app once by hand with Playwright, pointing
--user-data-dirat that file. The check is not committed.yarn testpassed 474/474, along with lint and the typecheck. App e2e passed 4/4 on macOS. Ubuntu and Windows are left to CI.Merge Danger
Door: two-way
electron-store 12 reads and writes the same
userData/config.jsonwith the same key, so rolling back to 8 keeps the user's settings.Blast Radius: settings
Only the dark-mode setting is stored. The built
out/main/index.jscontainsrequire("ajv/…")text from ajv's code generator. Nothing runs it unless ajv standalone code is turned on; if it is, the require would hit the top-level ajv 6 instead of the ajv 8 thatconfuses.🤖 Generated with Claude Code