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

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
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
isaacfinnegan pushed a commit to isaacfinnegan/whispercode that referenced this pull request Jun 15, 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