Skip to content

Add agent provider disable registry (no behavior change)#790

Open
OmarAlex24 wants to merge 2 commits into
dohooo:mainfrom
OmarAlex24:OmarAlex24/disable-opencode-keep-cli
Open

Add agent provider disable registry (no behavior change)#790
OmarAlex24 wants to merge 2 commits into
dohooo:mainfrom
OmarAlex24:OmarAlex24/disable-opencode-keep-cli

Conversation

@OmarAlex24

Copy link
Copy Markdown

Summary

  • Adds a reusable DISABLED_AGENT_PROVIDERS registry across Rust, frontend, and sidecar so any agent provider can be disabled without removing bundled CLIs.
  • Reuses existing canonical provider lists (KNOWN_PROVIDERS, DEFAULT_PROVIDER_CAPABILITIES) instead of introducing a new shipping list.
  • Wires gates through catalog, streaming, login, settings UI, and sidecar session routing; list is empty so current behavior is unchanged.

Test plan

  • Settings → Providers shows all four cards (OpenCode, Claude, Codex, Cursor)
  • Composer model picker unchanged (OpenCode section still Unavailable without prefs)
  • Cold start does not regress opencode startup sync for prior users
  • enabledAgentProviders() returns all four providers
  • Future: add "opencode" to DISABLED_AGENT_PROVIDERS in the three registry files and verify UI/streaming hide OpenCode while get_agent_versions still reports the CLI

Made with Cursor

Introduce DISABLED_AGENT_PROVIDERS (empty) and gate catalog, streaming, settings, and sidecar routing so any provider can be turned off later while bundled CLIs stay shipped.

Co-authored-by: Cursor <cursoragent@cursor.com>
@vercel

vercel Bot commented Jun 11, 2026

Copy link
Copy Markdown

@OmarAlex24 is attempting to deploy a commit to the Caspian's Team Team on Vercel.

A member of the Team first needs to authorize it.

@dosubot dosubot Bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Jun 11, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9bb96fd208

ℹ️ 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".

Comment thread sidecar/src/index.ts
const cursorManager = new CursorSessionManager();
const opencodeManager = new OpencodeSessionManager();
const managers: Record<Provider, SessionManager> = {
const allManagers: Record<Provider, SessionManager> = {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Restore shutdown's manager map reference

When the Rust side requests sidecar shutdown, handleShutdown still calls Object.values(managers), but this change renamed the only manager map to allManagers and no managers binding remains. That makes shutdown throw a ReferenceError before awaiting provider shutdowns or sending the pong ack, so app exit/restart can hang and leave agent child processes alive.

Useful? React with 👍 / 👎.

@dosubot

dosubot Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

📄 Knowledge review

✏️ Suggested updates

1 page suggestion needs review.

Page Library Status
05 - Sidecar Overview Helmor 🟡 Review
📝 05 - Sidecar Overview — suggested changes
@@ -36,6 +36,7 @@
 - **Claude Code** (Anthropic) — via the Claude Agent SDK.
 - **Codex** (OpenAI) — via the Codex SDK.
 - **Cursor** — via the Cursor SDK.
+- **OpenCode** — via the OpenCode SDK.
 
 Each provider manages its own auth. The sidecar just forwards credentials from the environment or config.
 

Accept · Edit · Decline

How did I do? Any feedback?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant