refactor(launcher): consolidate mpv socket readiness primitive

This commit is contained in:
2026-02-21 13:35:55 -08:00
parent a693cc1866
commit 2b77ab2406
7 changed files with 123 additions and 45 deletions

View File

@@ -0,0 +1,33 @@
# Agent: `codex-task73-mpv-socket-20260221T201605Z-zjhs`
- alias: `codex-task73-mpv-socket`
- mission: `Execute TASK-73 consolidate launcher mpv socket readiness primitives end-to-end`
- status: `done`
- branch: `main`
- started_at: `2026-02-21T20:16:05Z`
- heartbeat_minutes: `5`
## Current Work (newest first)
- [2026-02-21T20:20:18Z] test: `bun run build` fails on unrelated pre-existing missing modules in `src/anki-integration/field-grouping-workflow.test.ts` and `src/anki-integration/note-update-workflow.test.ts`; not caused by TASK-73 scope.
- [2026-02-21T20:19:24Z] handoff: Completed TASK-73; unified launcher socket readiness on `waitForUnixSocketReady`, removed duplicate helper(s), updated launcher callsites, added `launcher/mpv.test.ts`, and marked backlog task Done.
- [2026-02-21T20:19:24Z] test: `bun test launcher/mpv.test.ts launcher/config.test.ts launcher/parse-args.test.ts` pass; `make build-launcher` pass.
- [2026-02-21T20:19:24Z] progress: Removed `waitForSocket` and inlined path-existence polling into canonical `waitForUnixSocketReady` loop; switched overlay startup gate in `launcher/main.ts` to unified helper.
- [2026-02-21T20:18:42Z] progress: Mapped duplicate readiness primitives in `launcher/mpv.ts` (`waitForSocket`, `waitForPathExists`, `waitForUnixSocketReady`) and all callsites in `launcher/main.ts` + `launcher/jellyfin.ts`.
- [2026-02-21T20:16:05Z] intent: Load task acceptance criteria and map current launcher socket-readiness call graph before edits.
## Files Touched
- `docs/subagents/INDEX.md`
- `docs/subagents/agents/codex-task73-mpv-socket-20260221T201605Z-zjhs.md`
- `launcher/mpv.ts`
- `launcher/main.ts`
- `launcher/mpv.test.ts`
- `backlog/tasks/task-73 - Consolidate-launcher-mpv-socket-readiness-primitives.md`
## Assumptions
- Backlog MCP unavailable in this repo state; local `backlog/tasks/task-73 - Consolidate-launcher-mpv-socket-readiness-primitives.md` is source of truth.
## Open Questions / Blockers
- None.
## Next Step
- Await user review or follow-up tasks.