mirror of
https://github.com/open-webui/computer.git
synced 2026-11-05 01:17:24 +00:00
[GH-ISSUE #315] bug: OpenCode agent adapter is incompatible with OpenCode V2 #228
Labels
No labels
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
open-webui/computer#228
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @BrewerSeth on GitHub (Oct 12, 2026).
Original GitHub issue: https://github.com/open-webui/computer/issues/315
Environment
cptr): 0.9.21Reproduction
opencodeexecutable to V2.Expected: model discovery and agent conversations continue working, or Computer clearly reports an unsupported major version.
Actual: the released adapter cannot communicate using the V2 contract.
Why this happens
OpenCode V2 intentionally changed its server API, but Computer's adapter still implements V1. The profile launches the installed executable without selecting a version-compatible adapter:
/sessionand/session/{id}/prompt_asyncno longer match V2's/api/sessionand/api/session/{id}/prompt.opencode servegenerates a password after printing its listening URL; the adapter does not capture it for authenticated requests.This is a major-version compatibility gap, not a networking problem or a dependency on a separately managed OpenCode web service. See the OpenCode V2 migration guide.
Workaround verified locally
A local version-dispatched adapter captures the generated password in memory, uses V2 routes and request bodies, and polls projected messages for text/tool updates. Model detection, a synthetic native-tool read, and follow-up recall with the same session ID after spawned-server teardown passed. Eight synthetic regression tests also passed. Browser acceptance remains pending.
Related: #212 and #222 concern older adapter/startup failures; this report specifically covers the V2 contract change.
@owui-terminator[bot] commented on GitHub (Oct 12, 2026):
🔍 Related Issues Found
I found some existing issues that might be related. Please check if any of these are duplicates or contain helpful solutions:
This issue reports the same OpenCode adapter area and the same prompt/session flow breaking, caused by mismatches between Computer's adapter and OpenCode's server API. Although #212 focuses on operationId/path mapping in V1, it is directly related to the adapter incompatibility discussed here.
by ThalynLabs
💡 If your issue is a duplicate, please close it and add any additional details to the existing issue instead.
This comment was generated automatically. React with 👍 if helpful, 👎 if not.