mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-02-27 18:22:41 -08:00
- add subtitleStyle.hoverTokenColor config default + validation - normalize hover color payloads and propagate configured color to mpv runtime - refresh invisible overlay tokenization with current subtitle text and tighten hover overlay cleanup hooks - record TASK-98 and subagent coordination updates
2.7 KiB
2.7 KiB
Agent: codex-mpv-hover-token-highlight-20260221T231509Z-n8x2
- alias:
codex-mpv-hover-token-highlight - mission:
Design and implement mpv OSD token hover highlighting fed from electron token hover state - status:
completed - branch:
main - started_at:
2026-02-21T23:15:09Z - heartbeat_minutes:
5
Current Work (newest first)
- [2026-02-21T23:33:04Z] handoff: implemented invisible-overlay-only hovered-token mpv OSD highlighting path with renderer IPC -> main -> mpv
osd-overlay; build + targeted tests green. - [2026-02-21T23:28:10Z] test:
bun run build;node --test dist/main/runtime/mpv-hover-highlight.test.js dist/core/services/ipc.test.js;node --test dist/renderer/subtitle-render.test.js. - [2026-02-21T23:24:20Z] edit: added
mpv-hover-highlightruntime helper + tests and wired app state + IPC hover reporting + renderer token index datasets/hover reporting. - [2026-02-21T23:18:40Z] progress: reviewed
Yomipvselector hover render; feasible model is ASS re-render with per-token highlight and hitbox mapping. - [2026-02-21T23:17:50Z] progress: created backlog
TASK-98; traced renderer token DOM + IPC handlers + mpv protocol events; no existing hover-token IPC path. - [2026-02-21T23:15:09Z] intent: read coordination + skills, create backlog linkage, inspect mpv/electron token highlight pipeline.
Files Touched
backlog/tasks/task-98 - Add-mpv-OSD-hovered-token-highlighting-from-electron-token-state.mdsrc/main/runtime/mpv-hover-highlight.tssrc/main/runtime/mpv-hover-highlight.test.tssrc/main.tssrc/main/state.tssrc/main/dependencies.tssrc/core/services/ipc.tssrc/core/services/ipc.test.tssrc/preload.tssrc/types.tssrc/renderer/renderer.tssrc/renderer/handlers/mouse.tssrc/renderer/subtitle-render.tssrc/renderer/state.tsdocs/subagents/agents/codex-mpv-hover-token-highlight-20260221T231509Z-n8x2.md
Assumptions
osd-overlaycommand path is available in connected mpv builds used by SubMiner.
Open Questions / Blockers
- None.
Next Step
- Wait for user validation in real mpv session; adjust highlight color/style if requested.
- [2026-02-22T00:30:37Z] follow-up fix: invisible renderer path now renders token spans (when tokenized payload exists) instead of plain text only; hover token index reporting now has actual token targets.
- [2026-02-22T00:30:37Z] test: rebuilt and reran
dist/main/runtime/mpv-hover-highlight.test.js,dist/core/services/ipc.test.js,dist/renderer/subtitle-render.test.js(pass). - [2026-02-22T00:32:45Z] follow-up fix: overlay ASS now redraws full subtitle line and recolors hovered token instead of rendering only the hovered glyph; removes separate-character artifact.