Skip to content

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

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

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