Skip to content

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

Closed
opencode-agent[bot] wants to merge 1 commit into
devfrom
config-dir-repro
Closed

opencode-agent[bot] wants to merge 1 commit into
devfrom
config-dir-repro

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)
  • bun typecheck attempted twice but did not complete within 10 minutes on the shared host

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

Copy link
Copy Markdown
Contributor Author

Closing in favor of retargeting this fix to the v2 branch.

@opencode-agent opencode-agent Bot closed this Jul 12, 2026
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.

v2 config: child repositories cannot combine global and shared workspace configuration

1 participant