[GH-ISSUE #4528] [TUI] The preconfigured OpenCode configuration block is broken as it uses legacy field names #2041

Closed
opened 2026-11-04 01:56:11 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @lbarbera on GitHub (Oct 28, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4528

Problem

After pasting in opencode.jsonc the OpenCode configuration block offered by tab#7 (Connect) in the TUI, the model is not working in OpenCode

Environment

any environment using the latest version of OpenCode
Reproduced on Windows 11, RTX 2070 8GB, 32GB RAM

Reproduce

  • Copy/paste the preconfigured configuration block for OpenCode offered by Strata TUI in the appropriate opencode.jsonc configuration file
  • launch OpenCode and select the target Strata model to use
  • begin operation

Expected: Strata responds and interacts with OpenCode
Actual: OpenCode throws an error message and does not communicate with Strata

Root cause

The strata provider in the precompiled block is using OpenCode V1 field names (npm, options) and V1 model capability fields (tool_call, reasoning) instead of the OpenCode V2 equivalents (package, settings, capabilities).

Evidence

The following OpenCode autoconfig block is produced by Strata TUI:

"strata": {
  "npm": "@ai-sdk/openai-compatible",
  "name": "Strata (local)",
  "options": {
	"baseURL": "http://127.0.0.1:8080/v1",
	"apiKey": "sk-strata-key"
  },
  "models": {
	"qwen3.8-flash-next-gyro-gyro-s": {
	  "name": "Qwen3.8-Flash-Next (local)",
	  "tool_call": true,
	  "reasoning": true,
	  "limit": {
		"context": 131072,
		"input": 126976,
		"output": 4096
	  }
	}
  }
}

That uses the legacy OpenCode v1 syntax that is not accepted by the current OpenCode version.
The same configuration block shall be corrected as follows:

"strata": {
  "name": "Strata (local)",
  "package": "@ai-sdk/openai-compatible",
  "settings": {
    "baseURL": "http://127.0.0.1:8080/v1",
    "apiKey": "sk-strata-key"
  },
  "models": {
    "qwen3.8-flash-next-gyro-gyro-s": {
      "name": "Qwen3.8-Flash-Next (local)",
      "capabilities": {
        "tools": true,
        "reasoning": {
          "supported": true
        },
        "input": ["text"],
        "output": ["text"]
      },
      "limit": {
        "context": 131072,
        "input": 126976,
        "output": 4096
      }
    }
  }
}
Originally created by @lbarbera on GitHub (Oct 28, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4528 ### Problem After pasting in opencode.jsonc the OpenCode configuration block offered by tab#7 (Connect) in the TUI, the model is not working in OpenCode ### Environment any environment using the latest version of OpenCode Reproduced on Windows 11, RTX 2070 8GB, 32GB RAM ### Reproduce - Copy/paste the preconfigured configuration block for OpenCode offered by Strata TUI in the appropriate opencode.jsonc configuration file - launch OpenCode and select the target Strata model to use - begin operation Expected: Strata responds and interacts with OpenCode Actual: OpenCode throws an error message and does not communicate with Strata ### Root cause The strata provider in the precompiled block is using OpenCode V1 field names (npm, options) and V1 model capability fields (tool_call, reasoning) instead of the OpenCode V2 equivalents (package, settings, capabilities). ### Evidence The following OpenCode autoconfig block is produced by Strata TUI: ``` "strata": { "npm": "@ai-sdk/openai-compatible", "name": "Strata (local)", "options": { "baseURL": "http://127.0.0.1:8080/v1", "apiKey": "sk-strata-key" }, "models": { "qwen3.8-flash-next-gyro-gyro-s": { "name": "Qwen3.8-Flash-Next (local)", "tool_call": true, "reasoning": true, "limit": { "context": 131072, "input": 126976, "output": 4096 } } } } ``` That uses the legacy OpenCode v1 syntax that is not accepted by the current OpenCode version. The same configuration block shall be corrected as follows: ``` "strata": { "name": "Strata (local)", "package": "@ai-sdk/openai-compatible", "settings": { "baseURL": "http://127.0.0.1:8080/v1", "apiKey": "sk-strata-key" }, "models": { "qwen3.8-flash-next-gyro-gyro-s": { "name": "Qwen3.8-Flash-Next (local)", "capabilities": { "tools": true, "reasoning": { "supported": true }, "input": ["text"], "output": ["text"] }, "limit": { "context": 131072, "input": 126976, "output": 4096 } } } } ```
Author
Owner

@github-actions[bot] commented on GitHub (Oct 28, 2026):

Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:

  • Add your graphics card with its VRAM, your RAM and your operating system.

Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment /reopen.

Details: CONTRIBUTING.md

<!-- gh-comment-id:6477863115 --> @github-actions[bot] commented on GitHub (Oct 28, 2026): Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing: - [ ] Add your graphics card with its VRAM, your RAM and your operating system. Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment `/reopen`. Details: [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
Author
Owner

@github-actions[bot] commented on GitHub (Oct 28, 2026):

Thanks, this follows the format now.

<!-- gh-comment-id:6477909748 --> @github-actions[bot] commented on GitHub (Oct 28, 2026): Thanks, this follows the format now.
Author
Owner

@Niko1221 commented on GitHub (Oct 29, 2026):

Which OpenCode version, and what is the exact error text OpenCode prints with the block from the Connect tab? Run strata connect opencode --check and paste its output as well.

<!-- gh-comment-id:6492016939 --> @Niko1221 commented on GitHub (Oct 29, 2026): Which OpenCode version, and what is the exact error text OpenCode prints with the block from the Connect tab? Run `strata connect opencode --check` and paste its output as well.
Author
Owner

@lbarbera commented on GitHub (Oct 30, 2026):

Test with OpenCode 2.2.1 and 2.2.3. I cannot reproduce the issue with the latest build of Strata.

The only anomaly is that Strata generates opencode.json in the configuration folder while OpenCode uses opencode.jsonc (trivial, can be resolved with a manual copy paste).

Closing as Cannot Reproduce.

<!-- gh-comment-id:6522951213 --> @lbarbera commented on GitHub (Oct 30, 2026): Test with OpenCode 2.2.1 and 2.2.3. I cannot reproduce the issue with the latest build of Strata. The only anomaly is that Strata generates opencode.json in the configuration folder while OpenCode uses opencode.jsonc (trivial, can be resolved with a manual copy paste). Closing as Cannot Reproduce.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#2041
No description provided.