Curling config.json doesn't work on 1.0.107 #3514

Closed
opened 2026-02-16 17:40:26 -05:00 by yindo · 3 comments
Owner

Originally created by @pietdaniel on GitHub (Dec 13, 2025).

Description

↳ λ curl https://opencode.ai/config.json > ~/.config/opencode/opencode.jsonc
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 70608  100 70608    0     0   945k      0 --:--:-- --:--:-- --:--:--  957k
↱ ~   
↳ λ date
Sat Dec 13 00:58:08 EST 2025
↱ ~   
↳ λ opencode --version
1.0.107
↱ ~   
↳ λ uname -a
Darwin evelyn 25.1.0 Darwin Kernel Version 25.1.0: Mon Oct 20 19:26:51 PDT 2025; root:xnu-12377.41.6~2/RELEASE_X86_64 x86_64 i386 Darwin
↱ ~   
↳ λ opencode
Config file at /Users/piet/.config/opencode/opencode.jsonc is invalid
↳ Unrecognized keys: "ref", "type", "properties", "additionalProperties", "allowComments", "allowTrailingCommas" 

OpenCode version

1.0.107

Steps to reproduce

curl https://opencode.ai/config.json > ~/.config/opencode/opencode.jsonc
opencode

Screenshot and/or share link

Image

Operating System

Darwin 25.1.0 Darwin Kernel Version 25.1.0: Mon Oct 20 19:26:51 PDT 2025; root:xnu-12377.41.6~2/RELEASE_X86_64 x86_64 i386 Darwin

Terminal

kitty 0.20.3 created by Kovid Goyal

Originally created by @pietdaniel on GitHub (Dec 13, 2025). ### Description ```bash ↳ λ curl https://opencode.ai/config.json > ~/.config/opencode/opencode.jsonc % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 70608 100 70608 0 0 945k 0 --:--:-- --:--:-- --:--:-- 957k ↱ ~ ↳ λ date Sat Dec 13 00:58:08 EST 2025 ↱ ~ ↳ λ opencode --version 1.0.107 ↱ ~ ↳ λ uname -a Darwin evelyn 25.1.0 Darwin Kernel Version 25.1.0: Mon Oct 20 19:26:51 PDT 2025; root:xnu-12377.41.6~2/RELEASE_X86_64 x86_64 i386 Darwin ↱ ~ ↳ λ opencode Config file at /Users/piet/.config/opencode/opencode.jsonc is invalid ↳ Unrecognized keys: "ref", "type", "properties", "additionalProperties", "allowComments", "allowTrailingCommas" ``` ### OpenCode version 1.0.107 ### Steps to reproduce curl https://opencode.ai/config.json > ~/.config/opencode/opencode.jsonc opencode ### Screenshot and/or share link <img width="1035" height="307" alt="Image" src="https://github.com/user-attachments/assets/d896fd54-6b47-4d94-900c-d253dfe27e1f" /> ### Operating System Darwin 25.1.0 Darwin Kernel Version 25.1.0: Mon Oct 20 19:26:51 PDT 2025; root:xnu-12377.41.6~2/RELEASE_X86_64 x86_64 i386 Darwin ### Terminal kitty 0.20.3 created by Kovid Goyal
yindo added the opentuibug labels 2026-02-16 17:40:26 -05:00
yindo closed this issue 2026-02-16 17:40:26 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 13, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #3556: opentui: config unrecognized keys
  • #5085: Unrecognized key: "limit" provider.llama.cpp
  • #4145: do not crash on bad user config, or if we must at least provide better feedback

These issues also report config validation errors with "Unrecognized keys" when using config files. Feel free to ignore if your specific case differs from these.

@github-actions[bot] commented on GitHub (Dec 13, 2025): This issue might be a duplicate of existing issues. Please check: - #3556: opentui: config unrecognized keys - #5085: Unrecognized key: "limit" provider.llama.cpp - #4145: do not crash on bad user config, or if we must at least provide better feedback These issues also report config validation errors with "Unrecognized keys" when using config files. Feel free to ignore if your specific case differs from these.
Author
Owner

@pietdaniel commented on GitHub (Dec 13, 2025):

json over jsonc doesn't change the output


↳ λ curl https://opencode.ai/config.json > ~/.config/opencode/opencode.json 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 70608  100 70608    0     0  1059k      0 --:--:-- --:--:-- --:--:-- 1060k
↱ ~   
↳ λ oc
Config file at /Users/piet/.config/opencode/opencode.json is invalid
↳ Unrecognized keys: "ref", "type", "properties", "additionalProperties", "allowComments", "allowTrailingCommas" 
@pietdaniel commented on GitHub (Dec 13, 2025): json over jsonc doesn't change the output ```bash ↳ λ curl https://opencode.ai/config.json > ~/.config/opencode/opencode.json % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 70608 100 70608 0 0 1059k 0 --:--:-- --:--:-- --:--:-- 1060k ↱ ~ ↳ λ oc Config file at /Users/piet/.config/opencode/opencode.json is invalid ↳ Unrecognized keys: "ref", "type", "properties", "additionalProperties", "allowComments", "allowTrailingCommas" ```
Author
Owner

@pietdaniel commented on GitHub (Dec 13, 2025):

this is the config schema not the config. perhaps config_example.json - closing

@pietdaniel commented on GitHub (Dec 13, 2025): this is the config schema not the config. perhaps config_example.json - closing
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3514