fix(core): load config across git boundaries (#36577)

Co-authored-by: 𝓛𝓲𝓽𝓽𝓵𝓮 𝓕𝓻𝓪𝓷𝓴 <little-frank@opencord.local>
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
This commit is contained in:
opencode-agent[bot] 2026-07-13 00:05:41 +00:00 committed by GitHub
commit f112a73c06
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 17 additions and 40 deletions

View file

@ -116,7 +116,7 @@ For project-specific TUI settings, add `tui.json` alongside it.
Place project specific config in the root of your project.
:::
When OpenCode starts up, it looks for config files in the current directory and every ancestor directory. Ancestor configs are loaded first, so configs closer to the current directory can override them. This traversal continues across Git repository boundaries.
When OpenCode starts up, it first looks for a config file in the current directory, then traverses up to the nearest Git directory.
This is also safe to be checked into Git and uses the same schema as the global one.