Skip to content

PATCH /config uses wrong config file #4194

Closed

Description

@veracioux

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

Activity

  1. rekram1-node commented on Nov 11, 2025

    @rekram1-node
    Collaborator

    fix welcome!

  2. veracioux commented on Nov 11, 2025

    @veracioux
    ContributorAuthor

    @rekram1-node Which of the 2 files though?

  3. rekram1-node commented on Nov 11, 2025

    @rekram1-node
    Collaborator

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

  4. veracioux commented on Nov 11, 2025

    @veracioux
    ContributorAuthor

    Fix is ready

  5. HugoSmithSharer commented on Dec 7, 2025

    @HugoSmithSharer

    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

  6. added a commit that references this issue on Feb 5, 2026
    8c53e42
  7. saba-ch commented on Feb 7, 2026

    @saba-ch
    Contributor

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

  8. github-actions commented on Apr 9, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions