When using Agent mode, Cursor internally decides to run a command (e.g. cd … && git diff …), but the UI does not show the command execution prompt or request for approval. The command only becomes visible after reloading the IDE, at which point it appears as a previously rejected command.
This makes it impossible to approve or even notice the command in real time.
Steps to Reproduce
Open Cursor
Enable Agent mode
Ask a question that requires repository inspection (e.g. checking diffs or files)
Agent responds with reasoning and attempts to run a shell command
No command prompt or approval UI appears
Reload the Cursor IDE
The previously attempted command now appears as “Rejected command”
I must point out that the bug is severe. I cannot work with the agent at all. I had no choice but to switch to alternatives IDEs. I would appreciate an update on this matter.
workbench.desktop.main.js:12854 [transport] Connect error in unary AI connect ConnectError: [invalid_argument] Error
at t (workbench.desktop.main.js:12155:457504)
at async Object.getGithubAccessTokenForRepos (workbench.desktop.main.js:585:88404)
at async Nut (workbench.desktop.main.js:585:82635)
at async u (workbench.desktop.main.js:14821:22123) {arch: ‘x64’, platform: ‘linux’, channel: ‘stable’, client_version: ‘2.2.20’, service: ‘aiserver.v1.BackgroundComposerService’, …}
error @ workbench.desktop.main.js:12854
t @ workbench.desktop.main.js:12155
await in t
(anonymous) @ workbench.desktop.main.js:12155
Vdr @ workbench.desktop.main.js:52
hU @ workbench.desktop.main.js:52
unary @ workbench.desktop.main.js:12155
unary @ workbench.desktop.main.js:585
await in unary
(anonymous) @ workbench.desktop.main.js:585
Nut.initialRetryTimeMs @ workbench.desktop.main.js:14821
Nut @ workbench.desktop.main.js:585
await in Nut
u @ workbench.desktop.main.js:14821
await in u
hasGithubAccess @ workbench.desktop.main.js:14821
n @ workbench.desktop.main.js:12979
initializeBackgroundComposerState @ workbench.desktop.main.js:12979
workbench.desktop.main.js:12854 [transport] Connect error in unary AI connect ConnectError: [invalid_argument] Error
at t (workbench.desktop.main.js:12155:457504)
at async Object.getTeamAdminSettings (workbench.desktop.main.js:585:88404)
at async Hns.refresh (workbench.desktop.main.js:542:326295) {arch: ‘x64’, platform: ‘linux’, channel: ‘stable’, client_version: ‘2.2.20’, service: ‘aiserver.v1.DashboardService’, …}
error @ workbench.desktop.main.js:12854
t @ workbench.desktop.main.js:12155
await in t
(anonymous) @ workbench.desktop.main.js:12155
Vdr @ workbench.desktop.main.js:52
hU @ workbench.desktop.main.js:52
unary @ workbench.desktop.main.js:12155
(anonymous) @ workbench.desktop.main.js:585
refresh @ workbench.desktop.main.js:542
workbench.desktop.main.js:12854 [transport] Connect error in unary AI connect ConnectError: [invalid_argument] Error
at t (workbench.desktop.main.js:12155:457504)
at async Object.getGithubAccessTokenForRepos (workbench.desktop.main.js:585:88404)
at async Nut (workbench.desktop.main.js:585:82635)
at async u (workbench.desktop.main.js:14821:22123) {arch: ‘x64’, platform: ‘linux’, channel: ‘stable’, client_version: ‘2.2.20’, service: ‘aiserver.v1.BackgroundComposerService’, …}
error @ workbench.desktop.main.js:12854
t @ workbench.desktop.main.js:12155
await in t
(anonymous) @ workbench.desktop.main.js:12155
Vdr @ workbench.desktop.main.js:52
hU @ workbench.desktop.main.js:52
unary @ workbench.desktop.main.js:12155
unary @ workbench.desktop.main.js:585
await in unary
(anonymous) @ workbench.desktop.main.js:585
Nut.initialRetryTimeMs @ workbench.desktop.main.js:14821
Nut @ workbench.desktop.main.js:585
await in Nut
u @ workbench.desktop.main.js:14821
workbench.desktop.main.js:12854 [transport] Connect error in unary AI connect ConnectError: [invalid_argument] Error
at t (workbench.desktop.main.js:12155:457504)
at async Object.getTeamAdminSettings (workbench.desktop.main.js:585:88404)
at async Hns.refresh (workbench.desktop.main.js:542:326295)
at async Hns.getLatest (workbench.desktop.main.js:542:326454)
at async hfo.setDefaultModel (workbench.desktop.main.js:12855:7267)
at async hfo.refreshDefaultModels (workbench.desktop.main.js:12855:6773) {arch: ‘x64’, platform: ‘linux’, channel: ‘stable’, client_version: ‘2.2.20’, service: ‘aiserver.v1.DashboardService’, …}
error @ workbench.desktop.main.js:12854
t @ workbench.desktop.main.js:12155
await in t
(anonymous) @ workbench.desktop.main.js:12155
Vdr @ workbench.desktop.main.js:52
hU @ workbench.desktop.main.js:52
unary @ workbench.desktop.main.js:12155
(anonymous) @ workbench.desktop.main.js:585
refresh @ workbench.desktop.main.js:542
await in refresh
getLatest @ workbench.desktop.main.js:542
setDefaultModel @ workbench.desktop.main.js:12855
refreshDefaultModels @ workbench.desktop.main.js:12855
workbench.desktop.main.js:12854 [transport] Connect error in unary AI connect ConnectError: [invalid_argument] Error
at t (workbench.desktop.main.js:12155:457504)
at async Object.getGithubAccessTokenForRepos (workbench.desktop.main.js:585:88404)
at async Nut (workbench.desktop.main.js:585:82635)
at async u (workbench.desktop.main.js:14821:22123) {arch: ‘x64’, platform: ‘linux’, channel: ‘stable’, client_version: ‘2.2.20’, service: ‘aiserver.v1.BackgroundComposerService’, …}
error @ workbench.desktop.main.js:12854
t @ workbench.desktop.main.js:12155
await in t
(anonymous) @ workbench.desktop.main.js:12155
Vdr @ workbench.desktop.main.js:52
hU @ workbench.desktop.main.js:52
unary @ workbench.desktop.main.js:12155
unary @ workbench.desktop.main.js:585
await in unary
(anonymous) @ workbench.desktop.main.js:585
Nut.initialRetryTimeMs @ workbench.desktop.main.js:14821
Nut @ workbench.desktop.main.js:585
await in Nut
u @ workbench.desktop.main.js:14821
workbench.desktop.main.js:14821 [hasGithubAccess] unexpected error checking GitHub access: ConnectError: [invalid_argument] Error
at t (workbench.desktop.main.js:12155:457504)
at async Object.getGithubAccessTokenForRepos (workbench.desktop.main.js:585:88404)
at async Nut (workbench.desktop.main.js:585:82635)
at async u (workbench.desktop.main.js:14821:22123)
u @ workbench.desktop.main.js:14821
workbench.desktop.main.js:55 ERR [Extension Host] [otel.error] {“stack”:“OTLPExporterError: Bad Request\n at IncomingMessage. (/tmp/.mount_CursorpBoueg/usr/share/cursor/resources/app/node_modules/@opentelemetry/otlp-exporter-base/build/src/transport/http-transport-utils.js:52:31)\n at IncomingMessage.emit (node:events:531:35)\n at IncomingMessage.emit (node:domain:489:12)\n at endReadableNT (node:internal/streams/readable:1698:12)\n at processTicksAndRejections (node:internal/process/task_queues:90:21)”,“message”:“Bad Request”,“code”:“400”,“name”:“OTLPExporterError”,“data”:“{“error”:“Trace spans collection is not enabled for this user”}”}
error @ workbench.desktop.main.js:55
error @ workbench.desktop.main.js:55
error @ workbench.desktop.main.js:14765
pdf @ workbench.desktop.main.js:12123
$logExtensionHostMessage @ workbench.desktop.main.js:12123
_doInvokeHandler @ workbench.desktop.main.js:12807
_invokeHandler @ workbench.desktop.main.js:12807
_receiveRequest @ workbench.desktop.main.js:12807
_receiveOneMessage @ workbench.desktop.main.js:12807
(anonymous) @ workbench.desktop.main.js:12807
_deliver @ workbench.desktop.main.js:49
fire @ workbench.desktop.main.js:49
fire @ workbench.desktop.main.js:12140
(anonymous) @ workbench.desktop.main.js:14806
workbench.desktop.main.js:12123 [Extension Host] [otel.error] {“stack”:“OTLPExporterError: Bad Request\n at IncomingMessage. (/tmp/.mount_CursorpBoueg/usr/share/cursor/resources/app/node_modules/@opentelemetry/otlp-exporter-base/build/src/transport/http-transport-utils.js:52:31)\n at IncomingMessage.emit (node:events:531:35)\n at IncomingMessage.emit (node:domain:489:12)\n at endReadableNT (node:internal/streams/readable:1698:12)\n at processTicksAndRejections (node:internal/process/task_queues:90:21)”,“message”:“Bad Request”,“code”:“400”,“name”:“OTLPExporterError”,“data”:“{“error”:“Trace spans collection is not enabled for this user”}”}
——
cursor --disable-extensions - No difference with this flag - same problem with the same logs
——
It doesnt seem to be reproduced in a new empty repository