Skip to content

Add WSL relay recovery diagnostics (fix for #286) - #366

Open
NyxSpecter4 wants to merge 1 commit into
monk-io:mainfrom
NyxSpecter4:monk-wsl-relay-recovery
Open

NyxSpecter4 wants to merge 1 commit into
monk-io:mainfrom
NyxSpecter4:monk-wsl-relay-recovery

Conversation

@NyxSpecter4

Copy link
Copy Markdown

What

Adds monk-relay-recovery.sh + a .monk-recovery-plugin/plugin.json manifest that detects the dead WSL localhost relay (127.0.0.1:2137) and prints the exact recovery step instead of failing silently with ECONNREFUSED.

Why

Related to accepted bug #286: after Windows reboot / WSL idle-shutdown the relay is not rebuilt, and the plugin currently surfaces a stack of ECONNREFUSED errors with no actionable hint. This hook reports the WSL distro state and the one-line recovery (wsl --shutdown + restart) so the agent/user gets a clear path instead of a silent failure.

It does NOT auto-run wsl --shutdown (destructive, user-approved only) — it reports.

Verify

bash monk-relay-recovery.sh on a host without the relay prints UNREACHABLE (ECONNREFUSED) + the #286 recovery hint and exits 2. Tested locally.

Happy to adjust hook wiring (e.g. PostToolUse vs SessionStart) to match the repo convention.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant