Repository navigation
Every connected OpenCode provider shows, and any OpenCode provider can be connected - #446
Conversation
A machine's OpenCode lists the backends of the keys it started with. The template for threads whose machines aren't running now keeps Aldo's saved models of the backends a captured machine doesn't list (Aldo's catalog drops a disconnected one at once), so a sleeping thread's picker shows every connected key's models. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A searchable "Another provider" row, shown only when the server offers it, lists OpenCode's own provider registry and opens the usual key dialog. Connected keys of those providers show by name with Disconnect. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3012de2165
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| fetchOpenCodeProviders() | ||
| .then((list) => !cancelled && setProviders(list)) | ||
| .catch(() => !cancelled && setFailed(true)); |
There was a problem hiding this comment.
Clear the provider-load error when retrying succeeds
If the initial provider request fails, closing and reopening the search retries it, but a successful response only updates providers and never resets failed. Since the render checks failed before displaying the results, the error remains visible and no providers can be selected even after the retry succeeds. Clear the error when starting a retry or accepting its successful response so a transient network failure does not block this flow until the component remounts.
Useful? React with 👍 / 👎.
Why
Two gaps in what the app shows of a user's connected models.
What changed
Kept backends (
apps/web/src/aldo/serverConfig.logic.ts,serverConfig.ts)withSavedBackends: when a captured machine report doesn't list an OpenCode backend, it takes that backend's models from Aldo's saved catalog and adds them after the machine's own.capture()applies it before the usual per-provider merge.The report sent to Aldo stays the machine's own list.
Aldo's catalog is the authority:
So this never brings back a disconnected key.
With no saved catalog yet, nothing changes.
Another provider (
apps/web/src/aldo/AldoAgentConnections.tsx,accountApi.ts)GET /api/connections/opencode/providers, fetched only when the search opens.<id>-api-key), with the provider's documentation link. "Change" goes back to the list.Server compatibility. The client assumes no server feature:
otherProviders: true.The server half is logancsack/aldo phase 2b, which follows pingdotgg#786.
Tests
vp test run src/aldo/serverConfig.logic.test.ts: 12 passed, including a new test of kept backends, own backends, other agents, and an empty saved catalog.effect-tsgo: no errors.vp fmtandvp linton the changed files: clean.The client ships with the usual pin PR once this is green. This PR doesn't pin.
🤖 Generated with Claude Code