Agent command prompt not shown until IDE reload

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

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”

Screenshots / Screen Recordings

Operating System

Linux

Current Cursor Version (Menu → About Cursor → Copy)

Cursor version: 2.2.20
VSCode version: 1.105.1
OS: Linux x64 (6.14.0-37-generic)
Electron: 37.7.0
Node.js: 22.20.0
Chromium: 138.0.7204.251

For AI issues: which model did you use?

Sonnet 4.5

Additional Information

Agent does not surface command execution prompts until Cursor IDE is reloaded

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report.

I see the screenshot with “Rejected command” after IDE reload - this is a known issue with UI approval prompt in Agent mode.

A few questions for diagnostics:

  1. Can you copy Request ID from chat context menu (top right corner) for this request?
  2. Check settings Cursor Settings → Features → Agent → Command Auto-run - what settings do you have for allowlist/approval?
  3. Does this issue happen with any commands or only with git commands?

Let us know the details above - I’ll pass it to the team for a fix.

  1. Request ID: 3b9951f2-a206-46df-992e-a5082b65dcc4
  2. “Ask Every Time”
  3. Any commands

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.

1 Like

Thanks for the details.

Could you please also share:

  • Logs from Help > Toggle Developer Tools > Console at the moment when the agent decides to execute a command but the prompt doesn’t appear
  • Result of running with disabled extensions: cursor --disable-extensions
  • Does it reproduce in a new empty repository

I understand this is a blocker. Once there’s a fix, I’ll update this thread.

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

1 Like

Thanks for the additional logs. I see several important details:

  1. Many ConnectError: [invalid_argument] errors in console related to GitHub access token and team settings
  2. The issue does NOT reproduce in an empty repository

This points to a problem with GitHub integration or repository settings. A few questions for diagnostics:

  1. Check GitHub integration status: Cursor Settings > Account > GitHub - is the account connected?
  2. Try reconnecting GitHub: Cmd+Shift+P > “Sign Out of GitHub”, then sign in again
  3. Is there a .cursorrules file or special settings in your repository?
  4. Are you using Privacy Mode or working in a Team workspace?

Also try running Network Diagnostics: Cursor Settings > Network > Run Diagnostics - share the results.

  1. I don’t work with GitHub I work with Bitbucket so there is no integration I have done
  2. There is no .cursorrules file
  3. Privacy Mode
1 Like

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.