feat(desktop): add Cursor CLI ACP OAuth and model selection#2953
Open
SomSamantray wants to merge 1 commit into
Open
feat(desktop): add Cursor CLI ACP OAuth and model selection#2953SomSamantray wants to merge 1 commit into
SomSamantray wants to merge 1 commit into
Conversation
Signed-off-by: Som Samantray <som.samantray@gmail.com>
SomSamantray
force-pushed
the
feat/cursor-cli-native-acp
branch
from
July 26, 2026 06:45
337b83e to
d609550
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Buzz can now use an installed Cursor CLI as its own ACP harness, including Cursor-owned authentication and model selection. It adds the missing vendor auth flow, ACP model discovery, startup model selection, and cross-platform launch handling on top of the existing runtime-registration work.
Design
agentandcursor-agent, uses the detected Cursor command on macOS/Linux, and supports the corresponding WSL guest command on Windows.authMethodsand launches Cursor's own visible login flow when needed; Buzz does not store Cursor credentials or substitute a Buzz OAuth token.session/newmodel discovery and injects the selected model with Cursor's startup--modelargument. The picker persists changes for the next launch instead of sending an unsupported live model-switch request.Related: #2418, #2536, #2773
Validation
cargo fmt --all -- --checkpassed.git diff --checkpassed.pnpm --dir desktop checkpassed.pnpm --dir desktop typecheckpassed.agentandcursor-agentresolve,agent statusreports the authenticated account, native ACPinitializeandsession/newsucceed, the model catalog is returned, andagent --model gpt-5.5 acpreports the requested model as current.cargo check -p buzz-acp --offlinecould not reach compilation because the pinnedaws-creds/rust-s3git dependency was unavailable in this environment; the network fetch was also blocked by the environment proxy.New concepts
Startup-only model selection
Some ACP harnesses accept a model only when the process starts rather than through an in-session control method. Buzz records that capability in runtime metadata, persists picker changes for the next launch, and suppresses live switching for those runtimes.
This is used here because Cursor owns model configuration at process startup: Buzz starts Cursor with
--model <id>and lets Cursor's ACP session report the resulting model. It should not be used for runtimes that support reliable live model changes through ACP.