PATCH /config uses wrong config file #2780

Open
opened 2026-02-16 17:37:13 -05:00 by yindo · 6 comments
Owner

Originally created by @veracioux on GitHub (Nov 11, 2025).

Description

PATCH /config endpoint saves the configuration to the wrong file: $PWD/config.json. AFAIK that file is not used to load the configuration.

I can fix this, I just need to know which file to save it to: $PWD/opencode.json or $PWD/.opencode/opencode.json.

OpenCode version

1.x

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @veracioux on GitHub (Nov 11, 2025). ### Description PATCH /config endpoint saves the configuration to the wrong file: `$PWD/config.json`. AFAIK that file is not used to load the configuration. I can fix this, I just need to know which file to save it to: `$PWD/opencode.json` or `$PWD/.opencode/opencode.json`. ### OpenCode version 1.x ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the bug label 2026-02-16 17:37:13 -05:00
Author
Owner

@rekram1-node commented on GitHub (Nov 11, 2025):

fix welcome!

@rekram1-node commented on GitHub (Nov 11, 2025): fix welcome!
Author
Owner

@veracioux commented on GitHub (Nov 11, 2025):

@rekram1-node Which of the 2 files though?

@veracioux commented on GitHub (Nov 11, 2025): @rekram1-node Which of the 2 files though?
Author
Owner

@rekram1-node commented on GitHub (Nov 11, 2025):

i guess whatever the user already has otherwise it doesnt matter much

@rekram1-node commented on GitHub (Nov 11, 2025): i guess whatever the user already has otherwise it doesnt matter much
Author
Owner

@veracioux commented on GitHub (Nov 11, 2025):

Fix is ready

@veracioux commented on GitHub (Nov 11, 2025): Fix is ready
Author
Owner

@HugoSmithSharer commented on GitHub (Dec 6, 2025):

Hi @veracioux , thank you for fixing it. I am also encounting the same issue. However, even I upgrade to the latest version 1.0.134, the issue still exist. I am wondering when this will be merged and fixed. Thank you

@HugoSmithSharer commented on GitHub (Dec 6, 2025): Hi @veracioux , thank you for fixing it. I am also encounting the same issue. However, even I upgrade to the latest version 1.0.134, the issue still exist. I am wondering when this will be merged and fixed. Thank you
Author
Owner

@saba-ch commented on GitHub (Feb 7, 2026):

@rekram1-node could we get this merged? unable to edit project level config without it

@saba-ch commented on GitHub (Feb 7, 2026): @rekram1-node could we get this merged? unable to edit project level config without it
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2780