mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-02-27 18:22:41 -08:00
2.6 KiB
2.6 KiB
id, title, status, assignee, created_date, updated_date, labels, dependencies, priority
| id | title | status | assignee | created_date | updated_date | labels | dependencies | priority | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| TASK-117 | Fix mpv plugin overlay start gate when SubMiner is not running | Done |
|
2026-02-23 04:49 | 2026-02-23 04:50 |
|
high |
Description
Recent plugin/subminer.lua change added an IPC readiness gate in start_overlay() that rejects start when no SubMiner process exists yet. This blocks manual start (y-s) and script-message start even when binary path overrides are valid (SUBMINER_APPIMAGE_PATH, SUBMINER_BINARY_PATH, binary_path).
Need to restore expected behavior:
- allow cold start when process is not running,
- preserve mismatch/misconfiguration checks when process is already running,
- add regression coverage for the new start gate behavior.
Action Steps
- Add failing regression test covering cold-start path from plugin start gate.
- Patch
start_overlay()gate logic so process-not-running does not block initial start. - Keep existing IPC mismatch/missing-socket checks for running-process path.
- Re-run plugin validation and focused tests.
Acceptance Criteria
- #1
y-s/subminer-startcan launch overlay when SubMiner is not yet running and binary is available. - #2 Plugin still surfaces clear refusal for true IPC/socket mismatches after process is running.
- #3 Regression test exists and fails before fix / passes after fix.
Implementation Notes
- Patched
plugin/subminer.luastart gate:start_overlay()now treatsSubMiner process not runningas a valid cold-start condition and only refuses start for other IPC readiness failures. - Added regression harness
scripts/test-plugin-start-gate.luato load plugin with mocked mpv APIs and assertsubminer-starttriggers--startcommand for cold-start path. - Validation:
- red:
SUBMINER_APPIMAGE_PATH=/tmp/subminer-binary lua scripts/test-plugin-start-gate.lua(failed before patch with expected cold-start assertion), - green: same command passes after patch,
luac -p plugin/subminer.lua,bun test launcher/mpv.test.ts.
- red:
Final Summary
Fixed mpv plugin start regression by allowing cold-start launch when SubMiner process is not yet running, while preserving existing refusal path for non-cold-start IPC readiness errors. Added an executable Lua regression harness for this path and validated with syntax + focused launcher MPV tests.