mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-02-27 18:22:41 -08:00
1.4 KiB
1.4 KiB
id, title, status, assignee, created_date, updated_date, labels, dependencies, priority
| id | title | status | assignee | created_date | updated_date | labels | dependencies | priority | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| TASK-73 | Consolidate launcher mpv socket readiness primitives | Done | 2026-02-18 11:35 | 2026-02-21 20:19 |
|
medium |
Description
Launcher contains multiple overlapping MPV readiness/polling helpers (waitForSocket, waitForPathExists, waitForUnixSocketReady) with mixed timeout/poll semantics. Consolidation needed for clarity and lower maintenance.
Action Steps
- Define one canonical socket readiness contract (existence + connectability + timeout).
- Replace duplicate polling helpers with a single implementation.
- Update all callsites (
mpv status, idle launch flow, subtitle loading dependencies). - Keep user-visible behavior and exit codes stable.
- Add focused tests for timeout and success/failure edge cases.
Acceptance Criteria
- #1 Single canonical MPV socket readiness helper remains
- #2 All launcher callsites use unified helper
- #3 Behavior/exit code compatibility maintained for CLI flows
- #4 Test coverage added for readiness timeout behavior
Definition of Done
- #1 Launcher tests pass
- #2 No dead helper functions remain