GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — fix(provider): keep configured provider connected when directory is unavailable by rookie136 · Pull Request #513 · tickernelz/opencode-mem Conversation
Contributor
ProblemOn OpenCode V2 ( Because the error path leaves In our setup that fallback path is non-streaming and sends large prompts, so the gateway holds the request until its 600s limit and returns HTTP 504 (observed: FixWhen the provider directory refresh fails, seed the connectivity snapshot with the explicitly configured } catch (error) { log("Failed to refresh opencode provider state", { error: String(error) }); if (CONFIG.opencodeProvider) { const { setConnectedProviders } = await loadOpencodeProvider(); setConnectedProviders([CONFIG.opencodeProvider]); } } If the configured id is wrong, the structured-output call still fails loudly and the existing external fallback applies, so this does not hide misconfiguration. No behavior change when the host provider directory is available. Verification
NoteA longer-term fix could read provider connectivity from
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions…navailable Some plugin contexts (notably the V2 host) do not expose the provider directory, so refreshing the connectivity snapshot throws and ensureProviderConnected() denies providers that are actually configured. Fall back to the explicitly configured opencodeProvider so internal structured-output calls are still attempted; an invalid provider id still fails on the call and falls back to the external API.
rookie136
force-pushed
the
fix/provider-directory-fallback
branch
from
a654604 to
a756c60
Compare
Use loadOpencodeProvider in the directory-unavailable catch path so setConnectedProviders updates the same module instance that ensureProviderConnected reads.
This was referenced
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersNo reviewsUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
None yet
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later. |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |