Harden Yomitan runtime state and profile policy handling

- Centralize external-profile read-only behavior in a shared Yomitan profile policy
- Clear parser/extension runtime state via dedicated helpers on load failures and reloads
- Prevent opening Yomitan settings when the Yomitan session is unavailable
- Add focused runtime-policy and state-clearing regression tests
This commit is contained in:
2026-03-11 22:56:50 -07:00
parent c9d5f6b6e3
commit 6ff89b9227
9 changed files with 220 additions and 60 deletions

View File

@@ -1,6 +1,6 @@
type: added
type: changed
area: config
- Added `yomitan.externalProfilePath` to reuse another Electron app's Yomitan profile in read-only mode.
- SubMiner now reuses external Yomitan dictionaries/settings without writing back to that profile.
- Fixed default config bootstrap so `config.jsonc` is seeded even when the config directory already exists.
- SubMiner now seeds `config.jsonc` even when the default config directory already exists.