fix(agents): rename xai provider key to xai-oc to avoid opencode catalog collision (#118)
ci / lint (pull_request) Successful in 17s

opencode ships a built-in `xai` model-catalog entry (a real @ai-sdk/xai
integration with Responses-API support). Naming our custom OpenAI-compatible
shim `xai` too made opencode's --auto permission-check path assume the
catalog's provider object once a `permission` block is present (always, in
this pipeline) and call .responses(), which our shim doesn't implement —
crashing every @lead/@ops run with "Z.responses is not a function".

Reproduced locally with the production config shape on opencode 1.17.13;
renaming the provider key to xai-oc (model id xai-oc/grok-4.5) fixes it
reliably across repeated fresh-state runs.
This commit is contained in:
Felix Faerber
2026-07-30 14:08:21 +03:00
parent 60f9e95ecc
commit c8efc17729
4 changed files with 18 additions and 10 deletions
+2 -2
View File
@@ -25,7 +25,7 @@
"desc": "Senior dev — complex, multi-file implementation (GLM-5.2 via Ollama Cloud, text-only)."
},
"lead": {
"model": "xai/grok-4.5",
"model": "xai-oc/grok-4.5",
"vision": true,
"mode": "pr",
"skills": [
@@ -43,7 +43,7 @@
"desc": "QA / reviewer — reviews PRs: reads the diff, drives a headless browser (Playwright) to verify behavior, posts specific recommendations on the PR and the pass/fail verdict on the issue. Never edits code, never merges."
},
"ops": {
"model": "xai/grok-4.5",
"model": "xai-oc/grok-4.5",
"vision": false,
"mode": "comment",
"skills": [