Skip to content

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

Closed
MaxMiksa wants to merge 1 commit into
anomalyco:devfrom
MaxMiksa:fix/wellknown-config-cache
Closed

fix(opencode): use cached well-known config on fetch failure#10931
MaxMiksa wants to merge 1 commit into
anomalyco:devfrom
MaxMiksa:fix/wellknown-config-cache

Conversation

@MaxMiksa

@MaxMiksa MaxMiksa commented Jan 28, 2026

Copy link
Copy Markdown
Contributor

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

@github-actions

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@github-actions

Copy link
Copy Markdown
Contributor

Closing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR.

@github-actions github-actions Bot closed this Mar 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Opencode should fall back to cached well-known config when endpoint is temporarily unavailable

1 participant