Skip to content

Cannot read newer opencode.json schema properties if opencode has not been updated #1081

Closed

Description

@austinm911

I added an openconfig.json on v0.3.13 in my project and added one of the newer keys "layout": "stretch". opencode won't start because I'm not on a newer version like v0.3.17 and it will error as below.

So you either have to manually update or remove the key/update it to a value known on your current version for opencode to start and it to auto update, where you can add back your newer setting.

Error: Config file at /Users/am/Coding/project/opencode.json is invalid
↳ Unrecognized key(s) in object: 'layout' 

Activity

  1. changed the title [-]Cannot read opencode.json if opencode has not been updated[/-] [+]Cannot read newer opencode.json schema properties if opencode has not been updated[/+] on Jul 17, 2025
  2. drewbitt commented on Jul 17, 2025

    @drewbitt

    I believe that is expected. They could consider not totally failing in this scenario - warn and read known keys.

  3. self-assigned this
    on Jul 17, 2025
  4. thdxr commented on Jul 17, 2025

    @thdxr
    Member

    i think opencode upgrade would still work with a broken config. we're trying to be strict about config so people who mess it up get proper feedback

  5. thdxr commented on Jul 17, 2025

    @thdxr
    Member

    closing for now

  6. assigned and unassigned on Jul 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions