Skip to content

plugins silently fail to load with bad syntax in opencode.json #11130

Closed

Description

@bdwelle

Description

I was using the opencode-gemini-auth plugin successfully, with this config

{
"$schema": "https://opencode.ai/config.json",
"plugin": "opencode-gemini-auth@latest"
}

then I added another plugin to my opencode.json, and opencode-gemini-auth stopped working.
{
"$schema": "https://opencode.ai/config.json",
"plugin": "opencode-gemini-auth@latest",
"plugin": "@franlol/opencode-md-table-formatter@0.0.3"
}

my mistake, that config syntax is incorrect. opencode-gemini-auth works again if I change it to:

"plugin": [
"opencode-gemini-auth@latest",
"@franlol/opencode-md-table-formatter@0.0.3"
],

it seems to me that opencode should barf if the config syntax is bad, instead of silently fail to load plugins

Plugins

opencode-gemini-auth opencode-md-table-formatter

OpenCode version

1.1.41

Steps to reproduce

add two plugins in opencode.json with improper syntax
{
"$schema": "https://opencode.ai/config.json",
"plugin": "opencode-gemini-auth@latest",
"plugin": "@franlol/opencode-md-table-formatter@0.0.3"
}

  1. try opencode auth login and the oauth option for Google will be missing

Screenshot and/or share link

No response

Operating System

No response

Terminal

Ghostty

Activity

  1. github-actions commented on Jan 29, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    All of these issues relate to plugins failing silently when there are configuration or syntax problems. Your specific case (bad JSON syntax with duplicate keys) appears to be a manifestation of the broader issue with poor error handling for plugin configuration errors.

    Feel free to ignore if none of these address your specific case.

  2. github-actions commented on Mar 31, 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

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