Files
SubMiner/backlog/tasks/task-143 - Keep-character-dictionary-auto-sync-non-blocking-during-startup.md
sudacode 48f10dbb03 chore(backlog): maintain task backlog and add changelog fragments
- Move completed tasks (85, 117, 118, 155) to backlog/completed/
- Delete superseded task files (166 verification, 172 drilldown)
- Add stats dashboard milestone m-1
- Add new tasks (190, 194)
- Update task metadata across remaining backlog items
- Add changelog fragments for stats, mpv args, and subtitle filtering
2026-03-18 02:25:07 -07:00

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-18 05:28
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 38500

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.