Skip to content

0.11.6 in conflict with config instructions (too restrictive on valid directories inside .config/opencode) #2794

Closed

Description

@jflaflamme

as per https://opencode.ai/docs/rules/

The recommended approach is to use the instructions field in opencode.json:

opencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "instructions": ["docs/development-standards.md", "test/testing-guidelines.md", "packages/*/AGENTS.md"]
}

Since last update:

Error: Config file at /home//.config/opencode is invalid: Unexpected directory "rules" found in "/home//.config/opencode". Only agent, command, mode, plugin, tool directories are allowed.

Activity

  1. github-actions commented on Sep 26, 2025

    @github-actions
    Contributor

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

    The core issue appears to be version 0.11.6 introducing overly restrictive directory validation in ~/.config/opencode that breaks existing valid configurations.

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

  2. OpeOginni commented on Sep 26, 2025

    @OpeOginni
    Contributor

    @jflaflamme Could you share parts of your config?

  3. vasilvestre commented on Sep 26, 2025

    @vasilvestre

    I have a lot of custom folder in my opencode directory and this error just broke my opencode, I can't open it anymore and have to rework the whole infrastructure. No BC and just a restrictive update is harsh.

  4. arsham commented on Sep 26, 2025

    @arsham

    The last release fixes it.

  5. rekram1-node commented on Sep 26, 2025

    @rekram1-node
    Contributor

    This should be fixed

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions