Repository navigation
模型列表改用 desktop 身份,agent 运行仍用 cli - #3
Merged
Merged
Conversation
Desktop is required for the model list, while agent runs stay on the cli client so tool calls keep the protocol this plugin translates. Co-authored-by: Cursor <cursoragent@cursor.com>
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.
某些 Cursor team 账号上,cli 身份的模型列表不包含
claude-opus-5-5,desktop 身份下列得出来。若把 agent 运行也改成 desktop,Grok 会调用 Cursor 自己的 Write,参数是contents和path。这个插件只翻译 MCP 工具,OpenCode 的 write 要的是content。客户端返回Invalid arguments for tool "write": content: Missing key。下一轮模型不再发起工具调用,而是用文字叙述写入。因此目录接口用 desktop,agent 运行、鉴权和额度仍用 cli,请求里的 client type 也保持 cli。go test ./...已通过。Made with Cursor