mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4528] [TUI] The preconfigured OpenCode configuration block is broken as it uses legacy field names #2041
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2041
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 @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
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:
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:
@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:
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
@github-actions[bot] commented on GitHub (Oct 28, 2026):
Thanks, this follows the format now.
@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 --checkand paste its output as well.@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.