Files
SubMiner/backlog/tasks/task-143 - Keep-character-dictionary-auto-sync-non-blocking-during-startup.md

1.6 KiB

id, title, status, assignee, created_date, updated_date, labels, dependencies, references, priority, ordinal
id title status assignee created_date updated_date labels dependencies references priority ordinal
TASK-143 Keep character dictionary auto-sync non-blocking during startup Done
2026-03-09 01:45 2026-03-16 05:13
dictionary
startup
performance
/home/sudacode/projects/japanese/SubMiner/src/main.ts
/home/sudacode/projects/japanese/SubMiner/src/main/runtime/character-dictionary-auto-sync.ts
/home/sudacode/projects/japanese/SubMiner/src/main/runtime/current-media-tokenization-gate.ts
high 37500

Description

Keep character dictionary auto-sync running in parallel during startup without delaying playback. Only tokenization readiness should gate playback; character dictionary import/settings updates should wait until tokenization is already ready and then refresh annotations afterward.

Acceptance Criteria

  • #1 Character dictionary snapshot/build work can run immediately during startup.
  • #2 Yomitan dictionary mutation work waits until current-media tokenization is ready.
  • #3 Regression coverage verifies auto-sync builds before the gate and only mutates Yomitan after the gate resolves.

Implementation Notes

Added a small current-media tokenization gate in main runtime. Media changes reset the gate, the first tokenization-ready event marks it ready, and auto-sync now waits on that gate only before Yomitan dictionary inspection/import/settings updates. Snapshot generation and merged ZIP build still run immediately in parallel.