Skip to content

[codex] Add Cursor SDK agent support#1399

Merged
binaricat merged 16 commits into
mainfrom
codex/add-cursor-sdk-support
Jun 11, 2026
Merged

[codex] Add Cursor SDK agent support#1399
binaricat merged 16 commits into
mainfrom
codex/add-cursor-sdk-support

Conversation

@binaricat

@binaricat binaricat commented Jun 11, 2026

Copy link
Copy Markdown
Owner

Summary

  • adds Cursor as a managed external agent via the Cursor SDK
  • wires Cursor discovery, model selection, icon/i18n labels, and SDK streaming into the existing AI agent flow
  • keeps Cursor hidden until it is actually usable, refreshes environment during manual scans, and handles stop/error cases cleanly
  • packages Cursor SDK runtime pieces for release builds

Validation

  • npm run lint
  • npm run build
  • npm test (2177 passed, 0 failed, 3 skipped)

Review

  • multi-agent review findings were addressed across follow-up commits
  • final focused review is in progress

binaricat added 15 commits June 11, 2026 10:53
…support

# Conflicts:
#	application/i18n/locales/en/ai.ts
#	application/i18n/locales/ru/ai.ts
#	application/i18n/locales/zh-CN/ai.ts
#	components/ai/managedAgentState.test.ts
#	components/settings/tabs/SettingsAITab.tsx
#	components/settings/tabs/ai/managedAgentState.ts
#	components/settings/tabs/ai/types.ts
#	electron/bridges/aiBridge/agentDiscoveryHandlers.cjs
#	electron/bridges/aiBridge/sdk/index.cjs
#	electron/bridges/aiBridge/sdk/index.test.cjs
#	electron/bridges/aiBridge/sdk/sdkStreamHandlers.cjs
#	infrastructure/ai/managedAgents.ts
#	infrastructure/ai/types.ts
#	package-lock.json
@binaricat binaricat marked this pull request as ready for review June 11, 2026 08:39
@binaricat binaricat merged commit 3408bba into main Jun 11, 2026
2 checks passed

@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: e9f2071e0d

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

});
},
async listModels(ctx) {
return cursor.listCursorModels({ env: ctx.env });

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Pass saved Cursor keys when listing models

When a user configures Cursor with the new Settings API key instead of exporting CURSOR_API_KEY, the key is stored on ExternalAgentConfig.apiKey and decrypted only for runSdkAgentTurn before streaming. The model-list path still calls the Cursor driver with only ctx.env, so listCursorModels sees no key and returns [] for that supported setup; users lose account-specific Cursor models and parameter variants unless they also duplicate the key into their shell environment.

Useful? React with 👍 / 👎.

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.

1 participant