Skip to content

Commit 1661bd6

Browse files
committed
docs(skill): make setup aware of serve pre-flight (stop stale provider; version mismatch)
1 parent 03a9200 commit 1661bd6

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

skills/setup-opencode-ralph-rlm/SKILL.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ Use this skill to install Ralph RLM into a target repository and make it usable
7878
```bash
7979
npx @doeixd/opencode-ralph-rlm serve --worktree .
8080
```
81-
- Check readiness: `curl http://127.0.0.1:8787/api/health``supervisor.ready` should be `true` (it shows the resolved `model` and `source`, e.g. `opencode-auth:google`). If `false`, follow the `hint` (authenticate a provider or set a key) before delegating goals.
81+
- **If you just updated Ralph, stop any already-running provider first.** A long-running provider does NOT pick up new code. `serve` pre-flight-checks the port: if a provider is already running it prints its version vs. the one being started and refuses to start a duplicate — stop the old process (or free the port), then re-run `serve`. (If `serve` reports an existing provider, that explains a stale-behavior or "wrong version" symptom.)
82+
- Check readiness: `curl http://127.0.0.1:8787/api/health``supervisor.ready` should be `true` (it shows the resolved `model`, `source` e.g. `opencode-auth:google`, and the provider `version`). If `false`, follow the `hint` (authenticate a provider or set a key) before delegating goals.
8283
- OpenCode loads providers and plugins **at startup**, so the `ralph-rlm/supervisor` model and the `ralph-worker` / `ralph-session-bridge` plugins only appear after the OpenCode TUI is restarted. If OpenCode was open during setup, tell the user to quit and re-open it.
8384
- Then select the **`ralph-rlm/supervisor`** model.
8485

skills/setup-opencode-ralph-rlm/references/troubleshooting.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,17 @@ npx @doeixd/opencode-ralph-rlm serve --port 8788 --worktree .
1818
npx @doeixd/opencode-ralph-rlm doctor --port 8788 --worktree .
1919
```
2020

21+
## `serve` says a provider is already running / behaves like an old version
22+
23+
A long-running provider does **not** pick up new code after an update. `serve` pre-flight-checks the port and refuses to start a duplicate, printing the running version vs. the one you're starting:
24+
25+
```
26+
[ralph] A Ralph provider is already running on port 8787 (version 0.3.0).
27+
[ralph] You are starting version 0.3.4 ... stop the old one first, then re-run serve.
28+
```
29+
30+
Fix: stop the old provider process (or free the port), then re-run `serve`. Confirm the live version with `curl http://127.0.0.1:8787/api/health` (the `version` field). If features added in a newer release (e.g. supervisor credential auto-detect) seem missing, you're almost certainly talking to a stale provider — restart it.
31+
2132
## OpenCode cannot find `ralph-rlm/supervisor`
2233

2334
Check `opencode.json` and confirm `provider["ralph-rlm"]` exists. Re-run:

0 commit comments

Comments
 (0)