Skip to content

docs: clarify opencode.json/opencode.jsonc as supported config locations#21944

Open
bensantora wants to merge 1 commit intoanomalyco:devfrom
bensantora:fix/issue-18953
Open

docs: clarify opencode.json/opencode.jsonc as supported config locations#21944
bensantora wants to merge 1 commit intoanomalyco:devfrom
bensantora:fix/issue-18953

Conversation

@bensantora
Copy link
Copy Markdown

Issue for this PR

Closes #18953

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Description:
Fixed the config documentation to clarify that .opencode/opencode.json and .opencode/opencode.jsonc are loaded as config sources, not just the directory contents (agents, commands, plugins).

How did you verify your code works?

Updated the config precedence list item 5 to explicitly mention .opencode/opencode.json{,c} as a config file location alongside the directory contents. The implementation in packages/opencode/src/config/config.ts already loads .opencode/opencode.jsonc and .opencode/opencode.json, but the docs didn't reflect this. The fix makes the docs match the implementation.

Screenshots / recordings

If this is a UI change, please include a screenshot or recording.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

If you do not follow this template your PR will be automatically rejected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Config docs should clarify that .opencode/opencode.json{,c} is loaded as a config source

1 participant