openwork icon indicating copy to clipboard operation
openwork copied to clipboard

[Bug]: Opencode go models are outdated (do not update automatically)

Open den1251 opened this issue 3 months ago • 4 comments

Summary

Freshly installed openwork (providers automatically detected from opencode config). There are no recently released models (such as ox-alpha or GLM-5.3). These models are visible in opencode itself (opencode desktop). I've tried disconnecting and reconnecting opencode go provider, but it doesn't work

To Reproduce

  1. Connect opencode go
  2. There is neither ox-alpha, nor GLM-5.3

Expected behavior

All new models would be fetched instantly and be available to use

Actual behavior

There are no new models (such as GLM-5.2 or ox-alpha)

Screenshots (optional)

Image

OW version & Desktop info (optional)

No response

Additional context (optional)

No response

den1251 avatar Aug 24 '26 09:08 den1251

I confirm, really annoying

lucad87 avatar Aug 26 '26 07:08 lucad87

Sad story - because Mimo 2.5 Pro is no longer available, but it is still offered. I am waiting for GLM 5.3 Flash I would expect the best synchronization functionality with this subscription

petrbaloun avatar Aug 27 '26 06:08 petrbaloun

Adding a verified Gemini 4 Argon Contributor case on OpenWork Desktop 0.18.58 / bundled OpenCode 1.18.30, macOS arm64.

Discovery evidence (2026-10-20): models.dev/api.json contains opencode-go.models["gemini-4-argon-contributor"], including its model-specific Google SDK/endpoint metadata. The served OpenWork mirror at models.openworklabs.com/api.json and the local engine catalog omitted it. Other Go models were connected and working. Therefore this particular missing model is not fixable by local cache refresh alone while the mirror still lacks it.

The relevant upstream model routing is:

{
  "provider": {
    "npm": "@ai-sdk/google",
    "api": "https://opencode.ai/inference/go/google/v1beta"
  }
}

This is the model's own provider field, not a provider-wide replacement for other Go models.

Configuration-only workaround verified: add the complete Argon model metadata under the existing provider["opencode-go"].models using OpenWork's own persistent runtime-provider configuration API. The bundled engine already supports the per-model SDK/URL override and includes the Google SDK. We reused the existing Go authentication unchanged; no new provider, proxy, custom build or dependency installation was needed.

Results:

  • Argon appeared under the existing OpenCode Go provider in the normal GUI picker.
  • Three Go inference requests returned HTTP 200: a short streamed answer, a real read-only file tool call, and the correct final answer after consuming its result. OpenCode Go server logs corroborated the engine usage.
  • A subsequent user-entered GUI arithmetic prompt also returned HTTP 200.
  • The 31 pre-existing effective Go model entries and all other provider entries were unchanged.
  • Exact rollback was tested and the change reapplied. Engine reload/persistent storage passed; a full app quit/relaunch was not tested. The tool's external-directory approval gate remained active.

Suggested upstream fix: refresh/deploy the mirror with complete per-model routing metadata, then address client-cache revalidation. Merely adding the display name or routing every Go model through the provider's default OpenAI-compatible SDK would not solve Argon.

Relevant implementation: catalog URL selection, runtime provider store, bundled engine's per-model routing. Related: #4513 and #4788.

This is a bounded streaming/tool-call smoke test, not exhaustive MCP/schema validation. No credentials, original session identifiers or private logs are included.

Citizenyolo avatar Oct 20 '26 15:10 Citizenyolo

closed due to age, please reopen and tag me if still valid

OmarMcAdam avatar Oct 28 '26 22:10 OmarMcAdam