Files
SubMiner/backlog/tasks/task-63.1 - Drive-Yomitan-group-debug-logging-from-overlay-debug-mode-Y-D.md
kyasuda 457e6f0f10 feat(tokenizer): refine Yomitan grouping and parser tooling
- map segmented Yomitan lines into single logical tokens and improve candidate selection heuristics

- limit frequency lookup to selected token text with POS-based exclusions and add debug logging hook

- add standalone Yomitan parser test script, deterministic utility-script shutdown, and docs/backlog updates
2026-02-16 17:41:24 -08:00

2.5 KiB

id, title, status, assignee, created_date, updated_date, labels, dependencies, parent_task_id, priority
id title status assignee created_date updated_date labels dependencies parent_task_id priority
TASK-63.1 Drive Yomitan group debug logging from overlay debug mode (Y-D) Done
2026-02-16 23:48 2026-02-16 23:50
TASK-63 low

Description

Remove dedicated runtime/config toggle for Yomitan group logging and instead enable logs only when overlay debug mode is active via the existing Y-D debug flow.

Acceptance Criteria

  • #1 No runtime option or config key is required for Yomitan group logging.
  • #2 Yomitan group logs are emitted only when overlay debug mode is enabled (Y-D/DevTools debug state).
  • #3 When overlay debug mode is disabled, Yomitan group logs are not emitted.
  • #4 Build/tests for touched modules pass.

Implementation Plan

  1. Remove the debugYomitanGroups runtime/config option wiring from types/config registries so it no longer appears in runtime options.
  2. Keep tokenizer-level debug logging gate but drive it from existing overlay debug state (overlayDebugVisualizationEnabled) which is toggled by Y-D/DevTools flow.
  3. Rebuild and run tokenizer/config/runtime-option tests to confirm behavior and no registry regressions.

Implementation Notes

Removed anki.debugYomitanGroups from runtime option ID union and removed ankiConnect.behavior.debugYomitanGroups from config defaults/registry entries.

Updated main.ts tokenizer dependency wiring so getYomitanGroupDebugEnabled now directly reads appState.overlayDebugVisualizationEnabled (the existing debug visualization state toggled via Y-D/DevTools).

Validated with pnpm run build && node dist/core/services/tokenizer-service.test.js && node --test dist/config/config.test.js dist/core/services/runtime-options-ipc-service.test.js.

Final Summary

Switched Yomitan group debug logging to follow the existing overlay debug mode (Y-D/DevTools state) and removed the dedicated runtime/config option surface. The tokenizer still logs Selected Yomitan token groups only when the debug gate is true, but the gate now comes from appState.overlayDebugVisualizationEnabled in main runtime wiring. Removed the temporary runtime-option/config definitions and updated related registry expectations. Build and relevant tests are passing.