fix(opencode): allow empty provider config default by opencode-agent[bot] · Pull Request #34167 · anomalyco/opencode · GitHub
Skip to content

fix(opencode): allow empty provider config default#34167

Merged
rekram1-node merged 1 commit into
devfrom
fix-empty-provider
Jun 27, 2026
Merged

fix(opencode): allow empty provider config default#34167
rekram1-node merged 1 commit into
devfrom
fix-empty-provider

Conversation

@opencode-agent

Copy link
Copy Markdown
Contributor

Summary

  • treat an empty provider: {} config as no default-model allowlist
  • preserve non-empty provider config behavior as an allowlist
  • add a regression test for empty provider config

packages/core check

  • searched packages/core for matching cfg.provider/empty provider allowlist logic; no equivalent path found
  • packages/core typecheck passes

Validation

  • cd packages/core && bun typecheck
  • cd packages/opencode && bun typecheck
  • cd packages/opencode && OPENCODE_API_KEY= OPENCODE_AUTH_CONTENT= bun test --preload ./test/preload.ts test/provider/provider.test.ts --timeout 30000
  • cd packages/opencode && bun run dev run hello --print-logs

@rekram1-node rekram1-node marked this pull request as ready for review June 27, 2026 04:08
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
@opencode-agent opencode-agent Bot force-pushed the fix-empty-provider branch from 1a45280 to ecae82b Compare June 27, 2026 04:11
@rekram1-node rekram1-node merged commit 9903abc into dev Jun 27, 2026
8 checks passed
@rekram1-node rekram1-node deleted the fix-empty-provider branch June 27, 2026 04:19
BenGu3 pushed a commit to BenGu3/opencode that referenced this pull request Jun 27, 2026
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
josechifflet pushed a commit to josechifflet/opencode that referenced this pull request Jun 27, 2026
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
(cherry picked from commit 9903abc)
github-actions Bot pushed a commit to iwwadigital/opencode that referenced this pull request Jun 27, 2026
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
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