Conversation
The SDK PATCH /config endpoint returned 200 but the mutation was silently lost once the instance reloaded from disk. Updates now persist to the file the config loader reads.
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
|
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
Issue for this PR
Fixes #42276 and #28966
Type of change
What does this PR do?
The SDK's
client.config.update(PATCH/config) returned 200 but the mutation was silently lost: a follow-up GET returned the original config and the file on disk was untouched. Updates were written toconfig.json, a legacy filename the config loader ignores, so they vanished when the instance was disposed and reloaded after the PATCH.After this change:
opencode.json/opencode.jsoncor.opencode/overlay), merged with existing content~/.opencode), global, and managed configs won't be writtenHow did you verify your code works?
opencode.json/opencode.jsonctargets.opencode/overlay preferenceScreenshots / recordings
Not a UI change.
Checklist