Skip to content

fix(drive): refresh OpenCode client protocol - #91

Merged
kitlangton merged 1 commit into
mainfrom
protocol-refresh
Sep 18, 2026
Merged

kitlangton merged 1 commit into
mainfrom
protocol-refresh

Conversation

@kitlangton

Copy link
Copy Markdown
Contributor

Why

OpenCode Drive 2.1.1 cannot launch scripts against current OpenCode V2. Its pinned client probes the removed /api/status endpoint, so Drive reports OpenCode service registration was not found before launching the TUI.

What Changes

  • Update @opencode/client to the current V2 development contract.
  • Move Drive's server checks and fixtures from server.status() / /api/status to server.info() / /api/info.
  • Include the required temporary-path field in the fake server response.

Scope

This only refreshes Drive's OpenCode client protocol and matching fixtures. It does not change the Drive simulation wire protocol.

Verification

bun run --cwd packages/drive check
bun run --cwd packages/drive test
OPENCODE_DRIVE_DEV=/path/to/current/opencode OPENCODE_DRIVE_MEDIA_DIR=$PWD/.drive-output \
  bun run --cwd packages/drive drive run test/manual/current-v2.ts
  • 274 Effect tests and 59 CLI integration tests passed.
  • The current-V2 probe negotiated both UI and backend protocol endpoints and completed its real TUI, shell, and dynamic-tool checks.

@kitlangton
kitlangton merged commit d7af1c8 into main Sep 18, 2026
1 check passed
@kitlangton
kitlangton deleted the protocol-refresh branch September 18, 2026 05:19
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