Skip to content

fix(config): load configs across git boundaries - #36568

Merged
opencode-agent[bot] merged 1 commit into
v2from
v2-config-ancestors
Jul 12, 2026
Merged

opencode-agent[bot] merged 1 commit into
v2from
v2-config-ancestors

Conversation

@opencode-agent

Copy link
Copy Markdown
Contributor

Summary

  • discover direct and .opencode config in every ancestor directory
  • preserve root-to-current precedence so nearer configs win
  • document cross-repository discovery and add a child-repository regression test

Fixes #36539

Tests

  • bun test test/config/config.test.ts --timeout 30000 (97 passed)

Search every ancestor from the filesystem root so shared parent config applies to child repositories while nearer config retains precedence.

Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
@opencode-agent
opencode-agent Bot merged commit 6e55ddd into v2 Jul 12, 2026
10 checks passed
@opencode-agent
opencode-agent Bot deleted the v2-config-ancestors branch July 12, 2026 22:07
jinhuang712 pushed a commit to jinhuang712/opencode that referenced this pull request Sep 26, 2026
Co-authored-by: Dax Raad <[email protected]>
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant