You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: support current V2 service discovery when starting scripts #87
Drive 2.1.0 cannot launch the existing network-properties gauntlet against OpenCode V2 revision 4fc5ba1358. The isolated server starts, but SDK attachment fails with OpenCode service registration was not found and Drive stops it.
Reproduction: run packages/drive/test/manual/tui-regressions/network-properties.ts through opencode-drive start --name remote-inbox-gauntlet --script <script> --dev <V2 checkout>, with seed 42 and 12 steps.
Expected: attach the SDK to the script-owned server. Actual: fail before launching the TUI or running the scenario. Investigation is ongoing: Drive uses its older client Service.discover; current V2 uses /api/status rather than /api/health. My initial description incorrectly identified files/.opencode/service-local.json as the registration; that is private service configuration, not the live registration, which cleanup removes.
Observed while investigating a separate remote-client inbox synchronization defect. This issue concerns Drive startup only; no application reproduction has run through this failed launch. No credentials or private project data are included.
changed the title [-]fix: discover scripted service from its configured registration path[/-][+]fix: support current V2 service discovery when starting scripts[/+]on Sep 15, 2026
Confirmed a temporary workaround: use the target V2 checkout’s current Effect service discovery and Effect client in src/driver/opencode.ts. Replacing discovery alone gets the TUI running, but the old SDK then fails the gauntlet’s first projection check. Replacing both lets seed 42 / 12 steps finish (4 submissions, 2 latency windows, 2 blackholes, 1 steer).
A separate deterministic recording also runs with that shim. The earlier registration-path hypothesis was wrong; this is service/client compatibility drift. The workaround lives in a disposable Drive checkout.
Reproduced with opencode-drive v2.1.0 while running a scripted before/after capture against current OpenCode V2 (origin/v2 at 6a30741c45). The script server and service both became ready (server listening on http://127.0.0.1:51320), then Drive immediately stopped with OpenCode service registration was not found before launching the TUI. The checkout had a fresh bun install; retrying after installation produced the same failure.
Reproduced with Drive 2.1.0 against V2 2cdd938152 while recording background-shell restart recovery. start --name recovery-before --dev <checkout> --script <script> reaches “script server ready”, then fails with “OpenCode service registration was not found”. Using the current checkout’s Effect client and service discovery in a disposable Drive worktree gets the real TUI and server restart scenario running.
Fixed in #89 and released as [email protected] (#90). Drive now pins @opencode/[email protected], whose service discovery probes /api/status. Verified the stock installed 2.1.1 CLI attaching to OpenCode origin/v2 (2cdd938152) via --dev and running a scripted tool call end to end.
This has regressed with opencode-drive v2.1.1 against current OpenCode V2 (0fa881efd0). Drive reaches “script server ready”, probes GET /api/status (404), then exits with OpenCode service registration was not found before launching the TUI. I reproduced it twice, including against the previously compatible 2cdd938152 checkout with the 2.1.1 client. In a disposable Drive worktree, updating @opencode/client from 0.0.0-dev-19699 to 0.0.0-dev-19764 restores scripted startup and lets the restart probes run.
The current protocol refresh is in #91. It updates Drive to the consolidated server.info() / /api/info contract and passes the full package suite plus the real current-V2 compatibility probe.
Activity
[-]fix: discover scripted service from its configured registration path[/-][+]fix: support current V2 service discovery when starting scripts[/+]kitlangton commentedon Sep 15, 2026
Confirmed a temporary workaround: use the target V2 checkout’s current Effect service discovery and Effect client in
src/driver/opencode.ts. Replacing discovery alone gets the TUI running, but the old SDK then fails the gauntlet’s first projection check. Replacing both lets seed 42 / 12 steps finish (4 submissions, 2 latency windows, 2 blackholes, 1 steer).A separate deterministic recording also runs with that shim. The earlier registration-path hypothesis was wrong; this is service/client compatibility drift. The workaround lives in a disposable Drive checkout.
kitlangton commentedon Sep 15, 2026
Reproduced with
opencode-drive v2.1.0while running a scripted before/after capture against current OpenCode V2 (origin/v2at6a30741c45). The script server and service both became ready (server listening on http://127.0.0.1:51320), then Drive immediately stopped withOpenCode service registration was not foundbefore launching the TUI. The checkout had a freshbun install; retrying after installation produced the same failure.kitlangton commentedon Sep 16, 2026
Reproduced with Drive 2.1.0 against V2 2cdd938152 while recording background-shell restart recovery.
start --name recovery-before --dev <checkout> --script <script>reaches “script server ready”, then fails with “OpenCode service registration was not found”. Using the current checkout’s Effect client and service discovery in a disposable Drive worktree gets the real TUI and server restart scenario running.kitlangton commentedon Sep 16, 2026
Fixed in #89 and released as
[email protected](#90). Drive now pins@opencode/[email protected], whose service discovery probes/api/status. Verified the stock installed 2.1.1 CLI attaching to OpenCodeorigin/v2(2cdd938152) via--devand running a scripted tool call end to end.kitlangton commentedon Sep 18, 2026
This has regressed with
opencode-drive v2.1.1against current OpenCode V2 (0fa881efd0). Drive reaches “script server ready”, probesGET /api/status(404), then exits withOpenCode service registration was not foundbefore launching the TUI. I reproduced it twice, including against the previously compatible2cdd938152checkout with the 2.1.1 client. In a disposable Drive worktree, updating@opencode/clientfrom0.0.0-dev-19699to0.0.0-dev-19764restores scripted startup and lets the restart probes run.kitlangton commentedon Sep 18, 2026
The current protocol refresh is in #91. It updates Drive to the consolidated
server.info()//api/infocontract and passes the full package suite plus the real current-V2 compatibility probe.