Skip to content

refactor(opencode): fetch remote config with http client#28661

Merged
kitlangton merged 8 commits into
anomalyco:devfrom
kitlangton:fix/config-remote-httpclient
May 21, 2026
Merged

refactor(opencode): fetch remote config with http client#28661
kitlangton merged 8 commits into
anomalyco:devfrom
kitlangton:fix/config-remote-httpclient

Conversation

@kitlangton
Copy link
Copy Markdown
Contributor

Summary

  • fetch well-known and remote config JSON through injectable Effect HttpClient
  • keep HttpClient optional so local-only config loading does not require HTTP
  • update remote config tests to use injected HttpClient instead of global fetch mocks

Verification

  • bun test --timeout 5000 test/config/config.test.ts
  • bun test --timeout 5000 test/plugin/trigger.test.ts
  • bun test --timeout 5000 test/plugin/workspace-adapter.test.ts
  • bun test --timeout 5000 test/agent/plugin-agent-regression.test.ts
  • bun typecheck
  • bunx oxlint packages/opencode/src/config/config.ts packages/opencode/test/plugin/trigger.test.ts packages/opencode/test/plugin/workspace-adapter.test.ts packages/opencode/test/agent/plugin-agent-regression.test.ts

@kitlangton kitlangton merged commit b99787e into anomalyco:dev May 21, 2026
8 checks passed
MyNameIsGMLi pushed a commit to MyNameIsGMLi/opencode that referenced this pull request May 22, 2026
rustybret pushed a commit to rustybret/opencode that referenced this pull request May 22, 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.

1 participant