Skip to content

Verification fails when using opencode.jsonc instead of opencode.json #1

Open

Description

@mynameistito

Description

When running opencode-sync verify, the tool fails to detect opencode.jsonc configuration files and instead prompts users to create opencode.json. The verification should check for both opencode.json and opencode.jsonc before reporting a missing config.

The rest of the tool works as intended—it's just the verify command that needs adjustment.

Current behavior

  • opencode-sync verify only looks for opencode.json
  • Even if opencode.jsonc exists in ~/.config/opencode/, the tool reports OpenCode Config: MISSING
  • Users are prompted to create opencode.json despite having a valid .jsonc file

Expected behavior

  • The verification should check for both opencode.json and opencode.jsonc
  • If either file exists, it should report OpenCode Config: OK
  • Users should not be prompted to create a config file if a valid config already exists in either format

Activity

  1. mynameistito commented on Jan 21, 2026

    @mynameistito
    Author

    Initial Issue resolved: as you mentioned in Discord.

    However the verify is spitting out a false positive issue for me as I assume the codebase is checking for "opencode-sync-plugin".

    for my plugins I add @latest at the end.

    Output:

    opencode-sync verify
    
      OpenSync Setup Verification
    
      Credentials: OK
      Convex URL: https://reminiscent-gull-645.convex.cloud
      API Key: osk_KEY
    
      OpenCode Config: FOUND but plugin not registered
      Config file: C:\Users\mynameistito\.config\opencode\opencode.jsonc
      Add "plugin": ["opencode-sync-plugin"] to your config
    
      Setup incomplete. Fix the issues above and run verify again.

    Config:

      "plugin": [
        "opencode-antigravity-auth@latest", // https://github.com/NoeFabris/opencode-antigravity-auth/
        "@franlol/opencode-md-table-formatter@latest", // https://github.com/franlol/opencode-md-table-formatter
        "opencode-anthropic-auth@latest", // https://github.com/anomalyco/opencode-anthropic-auth
        "@tarquinen/opencode-dcp@latest", // https://github.com/Opencode-DCP/opencode-dynamic-context-pruning
        "opencode-sync-plugin@latest" // https://github.com/waynesutton/opencode-sync-plugin
    	],
    

    Fix: allow the use of adding @latest or version #'s

  2. waynesutton commented on Oct 4, 2026

    @waynesutton
    Owner

    Confirmed the remaining JSONC/version-suffix bug. Tested fix is in #5. Keeping this open until the corrected package is published.

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions