[PR #10931] fix(opencode): use cached well-known config on fetch failure #13609

Open
opened 2026-02-16 18:18:27 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/10931

State: open
Merged: No


Fixes #10930.

What does this PR do?

  • Caches the last successful .well-known/opencode config payload and falls back to it if the endpoint is temporarily unavailable.
  • Adds a configurable timeout via OPENCODE_WELLKNOWN_TIMEOUT_MS.
  • Makes test temp cleanup best-effort on Windows (avoids occasional EBUSY failures).

How did you verify your code works?

  • bun test test/config/wellknown-cache.test.ts
  • bun run typecheck
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/10931 **State:** open **Merged:** No --- Fixes #10930. ### What does this PR do? - Caches the last successful `.well-known/opencode` config payload and falls back to it if the endpoint is temporarily unavailable. - Adds a configurable timeout via `OPENCODE_WELLKNOWN_TIMEOUT_MS`. - Makes test temp cleanup best-effort on Windows (avoids occasional `EBUSY` failures). ### How did you verify your code works? - `bun test test/config/wellknown-cache.test.ts` - `bun run typecheck`
yindo added the pull-request label 2026-02-16 18:18:27 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13609