Skip to content

ZenNotes removes data in opencode.json #1104

Closed

Description

@coyotle

When enabling MCP for OpenCode in the settings, ZenNotes completely overwrites the opencode.json configuration file, removing all custom settings and providers.

Installing or uninstalling MCP should simply add or remove the corresponding mcp section, rather than overwriting the entire configuration.

Activity

  1. self-assigned this
    on Nov 23, 2026
  2. adibhanna commented on Nov 23, 2026

    @adibhanna
    Contributor

    Thanks for the report, @coyotle. You were right: ZenNotes read opencode.json as strict JSON, so a config with comments or trailing commas (which OpenCode accepts) failed to parse, and Install then wrote the file back with only the ZenNotes entry in it.

    Fixed in 3105527, which ships in ZenNotes 2.91.0:

    • Install and Uninstall now edit only mcp.zennotes and leave everything else as it was, comments and layout included. Other MCP servers in the mcp block stay put too.
    • If ZenNotes cannot read the file, it no longer writes it. Settings → MCP shows the line and column of the problem instead.
    • If you keep your config as opencode.jsonc, ZenNotes edits that file rather than creating an opencode.json next to it.

    Sorry about the lost settings. If you had them in a backup or in git, restoring that file and pressing Install again on 2.91.0 is safe.

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