Cursor doesn't execute the command of agent and stuck

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

After updated to 2.3.35, I found that the agent can no longer run any command, but only hangs there. Cancel the running command does not make agent leave the hang. I have to click the stop button to end the conversation.

Steps to Reproduce

Ask LLM to execute any command, and it will just hang there.

Expected Behavior

Commands should be executed normally

Screenshots / Screen Recordings

Operating System

Linux

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.3.35
VSCode Version: 1.105.1
Commit: cf8353edc265f5e46b798bfb276861d0bf3bf120
Date: 2026-01-13T07:39:18.564Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Linux x64 6.17.9-1-default

Additional Information

Any command will cause the hang.

Does this stop you from using Cursor

Yes - Cursor is unusable

1 Like

Tried the AppImage and rpm package. They both have the problem.

Hey, thanks for the report. The dialog shows up, but the command hangs after you confirm. This is a known issue with the terminal on Linux in 2.x, might be a regression.

Try Legacy Terminal:

  • Settings > Cursor Settings > Features > Legacy Terminal, turn it on
  • Restart Cursor
  • Try running the command via the agent again

Alternatively, turn on auto-apply (Settings > search for “Auto-run”). This will skip the confirmation step.

If that doesn’t help, please send the Request ID (chat menu > Copy Request ID) and console logs (Ctrl + Shift + P > Developer: Toggle Developer Tools > Console tab).

1 Like

Legacy Terminal does not hang now. However, it just says failed for each command runs.
I have already enabled allow list for auto run. Certainly ls is in the list.

Request ID: aa97354e-b51e-4308-af09-7905b5001b2e

Seems it’s trying to start zsh. But I only use fish&bash and never installed zsh.

workbench.desktop.main.js:12674 [Extension Host] rejected promise not handled within 1 second: Error: spawn zsh ENOENT
XTf @ workbench.desktop.main.js:12674
workbench.desktop.main.js:12674 [Extension Host] stack trace: Error: spawn zsh ENOENT
	at ChildProcess._handle.onexit (node:internal/child_process:285:19)
	at onErrorNT (node:internal/child_process:483:16)
	at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
XTf @ workbench.desktop.main.js:12674
workbench.desktop.main.js:55   ERR 出现未知错误。有关详细信息,请参阅日志。 Object
error @ workbench.desktop.main.js:55
workbench.desktop.main.js:12674 [Extension Host] rejected promise not handled within 1 second: Error: spawn zsh ENOENT
XTf @ workbench.desktop.main.js:12674
workbench.desktop.main.js:12674 [Extension Host] stack trace: Error: spawn zsh ENOENT
	at ChildProcess._handle.onexit (node:internal/child_process:285:19)
	at onErrorNT (node:internal/child_process:483:16)
	at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
XTf @ workbench.desktop.main.js:12674
workbench.desktop.main.js:55   ERR 出现未知错误。有关详细信息,请参阅日志。 Object
error @ workbench.desktop.main.js:55
workbench.desktop.main.js:13688 [transport] Connect error in unary AI connect ConnectError: [invalid_argument] Error
    at t (workbench.desktop.main.js:12706:476909)
    at async Object.getTeamAdminSettings (workbench.desktop.main.js:566:27065)
    at async eic (workbench.desktop.main.js:675:1531)
    at async TSh (workbench.desktop.main.js:675:2061) Object
error @ workbench.desktop.main.js:13688
workbench.desktop.main.js:675 Failed to fetch team admin settings: ConnectError: [invalid_argument] Error
    at t (workbench.desktop.main.js:12706:476909)
    at async Object.getTeamAdminSettings (workbench.desktop.main.js:566:27065)
    at async eic (workbench.desktop.main.js:675:1531)
    at async TSh (workbench.desktop.main.js:675:2061)
eic @ workbench.desktop.main.js:675
workbench.desktop.main.js:675 [AutorunSettings] Failed to fetch admin settings (network error, no cache available): Object
TSh @ workbench.desktop.main.js:675
workbench.desktop.main.js:9113 [AgentResponseStateMachine] Error processing update: TypeError: Cannot read properties of undefined (reading 'providerIdentifier')
    at sBe.handlePartialToolCall (workbench.desktop.main.js:9113:79583)
    at sBe.sendUpdate (workbench.desktop.main.js:9113:76029)
    at BOc.handleInteractionUpdate (workbench.desktop.main.js:9112:40505)
    at workbench.desktop.main.js:9112:40243
sendUpdate @ workbench.desktop.main.js:9113
workbench.desktop.main.js:55   ERR No handler found for server message of type abort: NoHandlerFoundError: No handler found for server message of type abort
    at IBu.handle (vscode-file://vscode-app/opt/cursor/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:9112:11353)
    at vscode-file://vscode-app/opt/cursor/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:9112:31167
    at bIs.run (vscode-file://vscode-app/opt/cursor/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:9112:31278) NoHandlerFoundError: No handler found for server message of type abort
    at IBu.handle (workbench.desktop.main.js:9112:11353)
    at workbench.desktop.main.js:9112:31167
    at bIs.run (workbench.desktop.main.js:9112:31278)
error @ workbench.desktop.main.js:55
workbench.desktop.main.js:13688 [transport] Stream error reported from extension host ConnectError: [canceled] [aborted] Error
    at aou.$endAiConnectTransportReportError (workbench.desktop.main.js:12706:475325)
    at JXe._doInvokeHandler (workbench.desktop.main.js:13633:23170)
    at JXe._invokeHandler (workbench.desktop.main.js:13633:22912)
    at JXe._receiveRequest (workbench.desktop.main.js:13633:21544)
    at JXe._receiveOneMessage (workbench.desktop.main.js:13633:20361)
    at mMt.value (workbench.desktop.main.js:13633:18388)
    at Ce._deliver (workbench.desktop.main.js:49:2962)
    at Ce.fire (workbench.desktop.main.js:49:3283)
    at Gyt.fire (workbench.desktop.main.js:12691:12156)
    at MessagePort.<anonymous> (workbench.desktop.main.js:15679:18406) Object
error @ workbench.desktop.main.js:13688
workbench.desktop.main.js:13688 [transport] Connect error in unary AI connect ConnectError: [invalid_argument] Error
    at t (workbench.desktop.main.js:12706:476909)
    at async Object.getTeamRepos (workbench.desktop.main.js:566:27065)
    at async Q8s.pollRepoBlocklist (workbench.desktop.main.js:15601:2572) Object
error @ workbench.desktop.main.js:13688
workbench.desktop.main.js:13688 [transport] Connect error in unary AI connect ConnectError: [invalid_argument] Error
    at t (workbench.desktop.main.js:12706:476909)
    at async Object.getTeamAdminSettings (workbench.desktop.main.js:566:27065)
    at async Aps.refresh (workbench.desktop.main.js:567:339120) Object
error @ workbench.desktop.main.js:13688
workbench.desktop.main.js:567 [AdminSettingsService] Failed to refresh admin settings, keeping cached settings: ConnectError: [invalid_argument] Error
    at t (workbench.desktop.main.js:12706:476909)
    at async Object.getTeamAdminSettings (workbench.desktop.main.js:566:27065)
    at async Aps.refresh (workbench.desktop.main.js:567:339120)
refresh @ workbench.desktop.main.js:567
workbench.desktop.main.js:13688 [transport] Connect error in unary AI connect ConnectError: [invalid_argument] Error
    at t (workbench.desktop.main.js:12706:476909)
    at async Object.getTeamAdminSettings (workbench.desktop.main.js:566:27065)
    at async eic (workbench.desktop.main.js:675:1531)
    at async TSh (workbench.desktop.main.js:675:2061) Object
error @ workbench.desktop.main.js:13688
workbench.desktop.main.js:675 Failed to fetch team admin settings: ConnectError: [invalid_argument] Error
    at t (workbench.desktop.main.js:12706:476909)
    at async Object.getTeamAdminSettings (workbench.desktop.main.js:566:27065)
    at async eic (workbench.desktop.main.js:675:1531)
    at async TSh (workbench.desktop.main.js:675:2061)
eic @ workbench.desktop.main.js:675
workbench.desktop.main.js:675 [AutorunSettings] Failed to fetch admin settings (network error, no cache available): Object
TSh @ workbench.desktop.main.js:675
workbench.desktop.main.js:13688 [composer] No first token received within 2s {arch: 'x64', platform: 'linux', channel: 'stable', client_version: '2.3.35', requestId: 'b153ac70-ffa9-45fa-833d-461f5570de59', …}
_log @ workbench.desktop.main.js:13688
warn @ workbench.desktop.main.js:13688
(anonymous) @ workbench.desktop.main.js:10273
setTimeout
e.setTimeout @ workbench.desktop.main.js:13084
(anonymous) @ workbench.desktop.main.js:10273
submitChatMaybeAbortCurrent @ workbench.desktop.main.js:10273
await in submitChatMaybeAbortCurrent
(anonymous) @ workbench.desktop.main.js:52
VSr @ workbench.desktop.main.js:52
i$d @ workbench.desktop.main.js:52
n.value @ workbench.desktop.main.js:52
Ba @ workbench.desktop.main.js:12585
await in Ba
(anonymous) @ workbench.desktop.main.js:12386
wt @ workbench.desktop.main.js:12386
onClick @ workbench.desktop.main.js:12386
(anonymous) @ workbench.desktop.main.js:10300
workbench.desktop.main.js:12674 [Extension Host] rejected promise not handled within 1 second: Error: spawn zsh ENOENT
XTf @ workbench.desktop.main.js:12674
$logExtensionHostMessage @ workbench.desktop.main.js:12674
_doInvokeHandler @ workbench.desktop.main.js:13633
_invokeHandler @ workbench.desktop.main.js:13633
_receiveRequest @ workbench.desktop.main.js:13633
_receiveOneMessage @ workbench.desktop.main.js:13633
(anonymous) @ workbench.desktop.main.js:13633
_deliver @ workbench.desktop.main.js:49
fire @ workbench.desktop.main.js:49
fire @ workbench.desktop.main.js:12691
(anonymous) @ workbench.desktop.main.js:15679
workbench.desktop.main.js:12674 [Extension Host] stack trace: Error: spawn zsh ENOENT
	at ChildProcess._handle.onexit (node:internal/child_process:285:19)
	at onErrorNT (node:internal/child_process:483:16)
	at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
XTf @ workbench.desktop.main.js:12674
$logExtensionHostMessage @ workbench.desktop.main.js:12674
_doInvokeHandler @ workbench.desktop.main.js:13633
_invokeHandler @ workbench.desktop.main.js:13633
_receiveRequest @ workbench.desktop.main.js:13633
_receiveOneMessage @ workbench.desktop.main.js:13633
(anonymous) @ workbench.desktop.main.js:13633
_deliver @ workbench.desktop.main.js:49
fire @ workbench.desktop.main.js:49
fire @ workbench.desktop.main.js:12691
(anonymous) @ workbench.desktop.main.js:15679
workbench.desktop.main.js:55   ERR 出现未知错误。有关详细信息,请参阅日志。 {errno: -2, code: 'ENOENT', syscall: 'spawn zsh', path: 'zsh', spawnargs: Array(2), …}
error @ workbench.desktop.main.js:55
error @ workbench.desktop.main.js:55
error @ workbench.desktop.main.js:15628
handleUnexpectedError @ workbench.desktop.main.js:15625
(anonymous) @ workbench.desktop.main.js:15625
onUnexpectedError @ workbench.desktop.main.js:27
rl @ workbench.desktop.main.js:22
$onUnexpectedError @ workbench.desktop.main.js:12688
_doInvokeHandler @ workbench.desktop.main.js:13633
_invokeHandler @ workbench.desktop.main.js:13633
_receiveRequest @ workbench.desktop.main.js:13633
_receiveOneMessage @ workbench.desktop.main.js:13633
(anonymous) @ workbench.desktop.main.js:13633
_deliver @ workbench.desktop.main.js:49
fire @ workbench.desktop.main.js:49
fire @ workbench.desktop.main.js:12691
(anonymous) @ workbench.desktop.main.js:15679
workbench.desktop.main.js:12674 [Extension Host] rejected promise not handled within 1 second: Error: spawn zsh ENOENT
XTf @ workbench.desktop.main.js:12674
$logExtensionHostMessage @ workbench.desktop.main.js:12674
_doInvokeHandler @ workbench.desktop.main.js:13633
_invokeHandler @ workbench.desktop.main.js:13633
_receiveRequest @ workbench.desktop.main.js:13633
_receiveOneMessage @ workbench.desktop.main.js:13633
(anonymous) @ workbench.desktop.main.js:13633
_deliver @ workbench.desktop.main.js:49
fire @ workbench.desktop.main.js:49
fire @ workbench.desktop.main.js:12691
(anonymous) @ workbench.desktop.main.js:15679
workbench.desktop.main.js:12674 [Extension Host] stack trace: Error: spawn zsh ENOENT
	at ChildProcess._handle.onexit (node:internal/child_process:285:19)
	at onErrorNT (node:internal/child_process:483:16)
	at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
XTf @ workbench.desktop.main.js:12674
$logExtensionHostMessage @ workbench.desktop.main.js:12674
_doInvokeHandler @ workbench.desktop.main.js:13633
_invokeHandler @ workbench.desktop.main.js:13633
_receiveRequest @ workbench.desktop.main.js:13633
_receiveOneMessage @ workbench.desktop.main.js:13633
(anonymous) @ workbench.desktop.main.js:13633
_deliver @ workbench.desktop.main.js:49
fire @ workbench.desktop.main.js:49
fire @ workbench.desktop.main.js:12691
(anonymous) @ workbench.desktop.main.js:15679
workbench.desktop.main.js:55   ERR 出现未知错误。有关详细信息,请参阅日志。 {errno: -2, code: 'ENOENT', syscall: 'spawn zsh', path: 'zsh', spawnargs: Array(2), …}
error @ workbench.desktop.main.js:55
error @ workbench.desktop.main.js:55
error @ workbench.desktop.main.js:15628
handleUnexpectedError @ workbench.desktop.main.js:15625
(anonymous) @ workbench.desktop.main.js:15625
onUnexpectedError @ workbench.desktop.main.js:27
rl @ workbench.desktop.main.js:22
$onUnexpectedError @ workbench.desktop.main.js:12688
_doInvokeHandler @ workbench.desktop.main.js:13633
_invokeHandler @ workbench.desktop.main.js:13633
_receiveRequest @ workbench.desktop.main.js:13633
_receiveOneMessage @ workbench.desktop.main.js:13633
(anonymous) @ workbench.desktop.main.js:13633
_deliver @ workbench.desktop.main.js:49
fire @ workbench.desktop.main.js:49
fire @ workbench.desktop.main.js:12691
(anonymous) @ workbench.desktop.main.js:15679
workbench.desktop.main.js:12674 [Extension Host] rejected promise not handled within 1 second: Error: spawn zsh ENOENT
XTf @ workbench.desktop.main.js:12674
$logExtensionHostMessage @ workbench.desktop.main.js:12674
_doInvokeHandler @ workbench.desktop.main.js:13633
_invokeHandler @ workbench.desktop.main.js:13633
_receiveRequest @ workbench.desktop.main.js:13633
_receiveOneMessage @ workbench.desktop.main.js:13633
(anonymous) @ workbench.desktop.main.js:13633
_deliver @ workbench.desktop.main.js:49
fire @ workbench.desktop.main.js:49
fire @ workbench.desktop.main.js:12691
(anonymous) @ workbench.desktop.main.js:15679
workbench.desktop.main.js:12674 [Extension Host] stack trace: Error: spawn zsh ENOENT
	at ChildProcess._handle.onexit (node:internal/child_process:285:19)
	at onErrorNT (node:internal/child_process:483:16)
	at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
XTf @ workbench.desktop.main.js:12674
$logExtensionHostMessage @ workbench.desktop.main.js:12674
_doInvokeHandler @ workbench.desktop.main.js:13633
_invokeHandler @ workbench.desktop.main.js:13633
_receiveRequest @ workbench.desktop.main.js:13633
_receiveOneMessage @ workbench.desktop.main.js:13633
(anonymous) @ workbench.desktop.main.js:13633
_deliver @ workbench.desktop.main.js:49
fire @ workbench.desktop.main.js:49
fire @ workbench.desktop.main.js:12691
(anonymous) @ workbench.desktop.main.js:15679
workbench.desktop.main.js:55   ERR 出现未知错误。有关详细信息,请参阅日志。 {errno: -2, code: 'ENOENT', syscall: 'spawn zsh', path: 'zsh', spawnargs: Array(2), …}
error @ workbench.desktop.main.js:55
error @ workbench.desktop.main.js:55
error @ workbench.desktop.main.js:15628
handleUnexpectedError @ workbench.desktop.main.js:15625
(anonymous) @ workbench.desktop.main.js:15625
onUnexpectedError @ workbench.desktop.main.js:27
rl @ workbench.desktop.main.js:22
$onUnexpectedError @ workbench.desktop.main.js:12688
_doInvokeHandler @ workbench.desktop.main.js:13633
_invokeHandler @ workbench.desktop.main.js:13633
_receiveRequest @ workbench.desktop.main.js:13633
_receiveOneMessage @ workbench.desktop.main.js:13633
(anonymous) @ workbench.desktop.main.js:13633
_deliver @ workbench.desktop.main.js:49
fire @ workbench.desktop.main.js:49
fire @ workbench.desktop.main.js:12691
(anonymous) @ workbench.desktop.main.js:15679
workbench.desktop.main.js:9113 [AgentResponseStateMachine] Error processing update: TypeError: Cannot read properties of undefined (reading 'providerIdentifier')
    at sBe.handlePartialToolCall (workbench.desktop.main.js:9113:79583)
    at sBe.sendUpdate (workbench.desktop.main.js:9113:76029)
    at BOc.handleInteractionUpdate (workbench.desktop.main.js:9112:40505)
    at workbench.desktop.main.js:9112:40243
sendUpdate @ workbench.desktop.main.js:9113
await in sendUpdate
handleInteractionUpdate @ workbench.desktop.main.js:9112
(anonymous) @ workbench.desktop.main.js:9112
Promise.then
run @ workbench.desktop.main.js:9112
await in run
run @ workbench.desktop.main.js:9113
workbench.desktop.main.js:55   ERR No handler found for server message of type abort: NoHandlerFoundError: No handler found for server message of type abort
    at IBu.handle (vscode-file://vscode-app/opt/cursor/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:9112:11353)
    at vscode-file://vscode-app/opt/cursor/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:9112:31167
    at bIs.run (vscode-file://vscode-app/opt/cursor/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:9112:31278) NoHandlerFoundError: No handler found for server message of type abort
    at IBu.handle (workbench.desktop.main.js:9112:11353)
    at workbench.desktop.main.js:9112:31167
    at bIs.run (workbench.desktop.main.js:9112:31278)
error @ workbench.desktop.main.js:55
error @ workbench.desktop.main.js:55
error @ workbench.desktop.main.js:15628
handleUnexpectedError @ workbench.desktop.main.js:15625
(anonymous) @ workbench.desktop.main.js:15625
onUnexpectedError @ workbench.desktop.main.js:27
rl @ workbench.desktop.main.js:22
(anonymous) @ workbench.desktop.main.js:15625
workbench.desktop.main.js:13688 [transport] Stream error reported from extension host ConnectError: [canceled] [canceled] User aborted request
    at aou.$endAiConnectTransportReportError (workbench.desktop.main.js:12706:475325)
    at JXe._doInvokeHandler (workbench.desktop.main.js:13633:23170)
    at JXe._invokeHandler (workbench.desktop.main.js:13633:22912)
    at JXe._receiveRequest (workbench.desktop.main.js:13633:21544)
    at JXe._receiveOneMessage (workbench.desktop.main.js:13633:20361)
    at mMt.value (workbench.desktop.main.js:13633:18388)
    at Ce._deliver (workbench.desktop.main.js:49:2962)
    at Ce.fire (workbench.desktop.main.js:49:3283)
    at Gyt.fire (workbench.desktop.main.js:12691:12156)
    at MessagePort.<anonymous> (workbench.desktop.main.js:15679:18406) {arch: 'x64', platform: 'linux', channel: 'stable', client_version: '2.3.35', error: {…}, …}
1 Like

After manually installed zsh, the command run works now.

However, I never asked for zsh in rules, memories or prompts.

1 Like

Thanks for confirming. I see the issue got resolved after installing zsh. This looks like a bug. Cursor shouldn’t require zsh if you’re using fish or bash.

The logs show that Cursor is trying to launch zsh regardless of the system SHELL variable. This is a regression in 2.3.35.

I’ll pass this to the team to fix. Ideally, Cursor should automatically detect available shells or use the one set in SHELL.

Thanks for the detailed logs, they really helped us find the root cause.

1 Like

Thanks for sharing this issue with the team. 2.4.21 is still suffering from this issue.

1 Like