Skip to content

core: PATCH /config call to server does not change config #24949

@abzy128

Description

@abzy128

Description

I wanted to update config of the opencode server and was not able to.

Plugins

none

OpenCode version

v1.14.29

Steps to reproduce

  1. start opencode server in debian:trixie container with envs (opencode basicauth password and openai/anthropic api keys)
  2. do curl -X PATCH localhost:4096/config with my config
  3. server returns 200 with same json (I assume it shows changed values)
  4. GET /config returns default empty config
  5. Looking at workspace root I can see config.json file I have send to PATCH endpoint.

Screenshot and/or share link

  1. call to post new config
Image 2. get config response Image 3. config I have PATCHed in /home/opencode/workspace/ directory (current workspace) Image

Operating System

debian 13 container

Terminal

no tui, only server and webui

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions