-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
Hello!
I don't know what I'm doing wrong, but for me, it doesn't work as expected at all. I configured opencode to use the cursor-agent:
cat ~/.config/opencode/opencode.json
{
"plugin": ["@rama_nigg/open-cursor@latest"],
"provider": {
"cursor-acp": {
"name": "Cursor ACP",
"npm": "@ai-sdk/openai-compatible",
"options": {
"baseURL": "http://127.0.0.1:32124/v1"
},
"models": {
"cursor-acp/auto": { "name": "Auto" },
"cursor-acp/composer-1.5": { "name": "Composer 1.5" },
"cursor-acp/composer-1": { "name": "Composer 1" },
"cursor-acp/opus-4.6-thinking": { "name": "Claude 4.6 Opus (Thinking)" },
"cursor-acp/opus-4.6": { "name": "Claude 4.6 Opus" },
"cursor-acp/sonnet-4.6": { "name": "Claude 4.6 Sonnet" },
"cursor-acp/sonnet-4.6-thinking": { "name": "Claude 4.6 Sonnet (Thinking)" },
"cursor-acp/opus-4.5": { "name": "Claude 4.5 Opus" },
"cursor-acp/opus-4.5-thinking": { "name": "Claude 4.5 Opus (Thinking)" },
"cursor-acp/sonnet-4.5": { "name": "Claude 4.5 Sonnet" },
"cursor-acp/sonnet-4.5-thinking": { "name": "Claude 4.5 Sonnet (Thinking)" },
"cursor-acp/gpt-5.4-high": { "name": "GPT-5.4 High" },
"cursor-acp/gpt-5.4-high-fast": { "name": "GPT-5.4 High Fast" },
"cursor-acp/gpt-5.4-xhigh": { "name": "GPT-5.4 Extra High" },
"cursor-acp/gpt-5.4-xhigh-fast": { "name": "GPT-5.4 Extra High Fast" },
"cursor-acp/gpt-5.4-medium": { "name": "GPT-5.4" },
"cursor-acp/gpt-5.4-medium-fast": { "name": "GPT-5.4 Fast" },
"cursor-acp/gpt-5.3-codex": { "name": "GPT-5.3 Codex" },
"cursor-acp/gpt-5.3-codex-fast": { "name": "GPT-5.3 Codex Fast" },
"cursor-acp/gpt-5.3-codex-low": { "name": "GPT-5.3 Codex Low" },
"cursor-acp/gpt-5.3-codex-low-fast": { "name": "GPT-5.3 Codex Low Fast" },
"cursor-acp/gpt-5.3-codex-high": { "name": "GPT-5.3 Codex High" },
"cursor-acp/gpt-5.3-codex-high-fast": { "name": "GPT-5.3 Codex High Fast" },
"cursor-acp/gpt-5.3-codex-xhigh": { "name": "GPT-5.3 Codex Extra High" },
"cursor-acp/gpt-5.3-codex-xhigh-fast": { "name": "GPT-5.3 Codex Extra High Fast" },
"cursor-acp/gpt-5.3-codex-spark-preview": { "name": "GPT-5.3 Codex Spark" },
"cursor-acp/gpt-5.2": { "name": "GPT-5.2" },
"cursor-acp/gpt-5.2-high": { "name": "GPT-5.2 High" },
"cursor-acp/gpt-5.2-codex": { "name": "GPT-5.2 Codex" },
"cursor-acp/gpt-5.2-codex-fast": { "name": "GPT-5.2 Codex Fast" },
"cursor-acp/gpt-5.2-codex-low": { "name": "GPT-5.2 Codex Low" },
"cursor-acp/gpt-5.2-codex-low-fast": { "name": "GPT-5.2 Codex Low Fast" },
"cursor-acp/gpt-5.2-codex-high": { "name": "GPT-5.2 Codex High" },
"cursor-acp/gpt-5.2-codex-high-fast": { "name": "GPT-5.2 Codex High Fast" },
"cursor-acp/gpt-5.2-codex-xhigh": { "name": "GPT-5.2 Codex Extra High" },
"cursor-acp/gpt-5.2-codex-xhigh-fast": { "name": "GPT-5.2 Codex Extra High Fast" },
"cursor-acp/gpt-5.1-codex-max": { "name": "GPT-5.1 Codex Max" },
"cursor-acp/gpt-5.1-codex-max-high": { "name": "GPT-5.1 Codex Max High" },
"cursor-acp/gpt-5.1-codex-mini": { "name": "GPT-5.1 Codex Mini" },
"cursor-acp/gpt-5.1-high": { "name": "GPT-5.1 High" },
"cursor-acp/gemini-3.1-pro": { "name": "Gemini 3.1 Pro" },
"cursor-acp/gemini-3-pro": { "name": "Gemini 3 Pro" },
"cursor-acp/gemini-3-flash": { "name": "Gemini 3 Flash" },
"cursor-acp/grok": { "name": "Grok" },
"cursor-acp/kimi-k2.5": { "name": "Kimi K2.5" }
}
}
}
}
I successfully logged in using opencode auth login command, and the model itself is connected.
● Click 'Continue with Cursor' in your browser to authenticate
│
◇ Login successful
│
└ Done
My versions:
➜ nix-darwin git:(main) ✗ opencode --version
1.2.20
➜ nix-darwin git:(main) ✗ cursor-agent --version
2026.03.18-f6873f7
I asked it to add the comment "test" to the file opencode.lua.
File before modification looked like:
return {
'nickjvandyke/opencode.nvim',
version = '*', -- Latest stable release
dependencies = {
{
-- `snacks.nvim` integration is recommended, but optional
---@module "snacks" <- Loads `snacks.nvim` types for configuration intellisense
'folke/snacks.nvim',
optional = true,
opts = {
input = {}, -- Enhances `ask()`
picker = { -- Enhances `select()`
actions = {
opencode_send = function(...)
return require('opencode').snacks_picker_send(...)
end,
},
win = {
input = {
keys = {
['<a-a>'] = { 'opencode_send', mode = { 'n', 'i' } },
},
},
},
},
},
},
},
...
And after the modification, it looks like that:
-- test
return {
So it removed all the content.
And in general. I asked it to restore the file, it restored, but couldn't remove the comment line; it was just in a loop of "thinking". It feels like the tools are somewhat incompatible.
Is there something I can do about it?
The log and the session are in the attachment.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels