anomalyco / anomalyco/opencode

[FEATURE]: v2 API gaps blocking third-party clients

Open
#41,828 2 comments 0 reactions 1 assignee View on GitHub

@nexxeln is already working on this.

Since Aug 11, 2026.

2.0
Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Feature hasn't been suggested before.
  • I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request

I maintain a third-party Rust TUI client for opencode and have been porting it to the v2 server. Five capabilities that v1 exposed have no v2 equivalent, and each blocks a client feature rather than being cosmetic. Checked against the published v2 API docs (https://opencode.ai/v2/docs/api) and packages/protocol/openapi.json at a5d6969f.

  1. Symbol search. GET /api/fs/find accepts type of file or directory only. v1 had /find/symbol, which backed symbol lookup in the file picker.

  2. Per-session diff. Only GET /api/vcs/diff exists and it is workspace scoped (mode is required, there is no session parameter). v1 had /session/{id}/diff, which backed a per-session changed-files view.

  3. Provider connection state. GET /api/provider returns id, name, package, settings, integrationID, disabled. A client cannot tell which providers are actually connected, so it cannot show connected state or gate the model picker on it.

  4. Model capability flags. GET /api/model capabilities carry tools, input, output only. v1 also exposed reasoning and temperature, which drive badges and filtering in a model picker.

  5. Protocol version. server.connected carries an untyped data field and /experimental/capabilities is gone, so a client cannot detect the server protocol version at connect time. That forces a hard cutover instead of supporting v1 and v2 behind detection.

Happy to split these into separate issues if that is easier to track, and happy to be told any of them are intentional removals.

Environment: opencode2 0.0.0-next-17002 on Linux, talking to the HTTP API directly rather than using the bundled TUI.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.