opencode icon indicating copy to clipboard operation
opencode copied to clipboard

PATCH /config uses wrong config file

Open veracioux opened this issue 2 months ago • 5 comments

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

veracioux avatar Nov 11 '25 14:11 veracioux

fix welcome!

rekram1-node avatar Nov 11 '25 16:11 rekram1-node

@rekram1-node Which of the 2 files though?

veracioux avatar Nov 11 '25 17:11 veracioux

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

rekram1-node avatar Nov 11 '25 17:11 rekram1-node

Fix is ready

veracioux avatar Nov 11 '25 18:11 veracioux

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 avatar Dec 07 '25 00:12 HugoSmithSharer