3.2 KiB
id, title, status, assignee, created_date, updated_date, labels, dependencies, references, priority
| id | title | status | assignee | created_date | updated_date | labels | dependencies | references | priority | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| TASK-345 | Address PR 57 latest CodeRabbit review comments | Done |
|
2026-05-12 06:35 | 2026-05-12 06:38 |
|
|
medium |
Description
Assess the 2026-05-11 CodeRabbit review on PR #57 and address still-valid actionable comments with minimal changes. Current comments cover mpv subtitle playback unpause behavior, parser-selection empty reading handling, and overlay focus selector accessibility.
Acceptance Criteria
- #1 Still-valid CodeRabbit comments from the latest PR #57 review are fixed or explicitly documented as skipped with rationale.
- #2 Regression coverage is added for behavior-affecting fixes where practical before production code changes.
- #3 Relevant targeted checks pass locally.
Implementation Plan
- Inspect current code and nearby tests for the three latest CodeRabbit comments on PR #57.
- Add regression tests first for behavior-impacting findings: mpv playNextSubtitle unpauses when pause state is unknown, and parser selection preserves combined reading for empty segment readings.
- Apply minimal production fixes plus the CSS :focus-visible selector change.
- Run targeted test commands for touched areas and update task notes/final status.
Implementation Notes
Added red tests for the two behavior comments. bun test src/core/services/mpv.test.ts fails because playNextSubtitle skips unpause when pause state is null. bun test src/core/services/tokenizer/parser-selection-stage.test.ts fails because empty grammar-ending reading clears preceding combined reading.
Implemented all three latest CodeRabbit findings. Added regressions for mpv unknown pause state and parser-selection empty reading handling; changed overlay focus selectors to :focus-visible. Also fixed existing Prettier failure in src/core/services/stats-window.ts. Verification passed: targeted tests, typecheck, test:fast, test:env, format:check:src, build, test:smoke:dist, changelog:lint, changelog:pr-check.
Final Summary
Addressed the latest CodeRabbit comments on PR #57.
Changes:
playNextSubtitlenow sendspause=falseunless mpv is explicitly known to be playing, covering startup/reconnect unknown pause state.- Parser selection no longer slices combined readings for empty grammar-ending readings, preserving preceding token readings.
- Overlay focus suppression now targets
:focus-visibleselectors. - Applied Prettier to
src/core/services/stats-window.tsto clear the existing formatting gate failure.
Verification:
bun test src/core/services/mpv.test.tsbun test src/core/services/tokenizer/parser-selection-stage.test.tsbun run typecheckbun run test:fastbun run test:envbun run format:check:srcbun run buildbun run test:smoke:distbun run changelog:lintbun run changelog:pr-check