Terminal problems when used by agent

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

When agent is running any terminal command, its receiving an empty output. But when I manually run a command in the terminal, it works ok.

Steps to Reproduce

Can be reproduced anytime the agent runs a terminal command.

Expected Behavior

When the agent runs a terminal command, it should not be giving empty outputs.

Screenshots / Screen Recordings

Operating System

Windows 10/11

Version Information

Version: 2.4.21 (user setup)
VSCode Version: 1.105.1
Commit: dc8361355d709f306d5159635a677a571b277bc0
Date: 2026-01-22T16:57:59.675Z
Build Type: Stable
Release Track: Default
Electron: 39.2.7
Chromium: 142.0.7444.235
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Windows_NT x64 10.0.26200

For AI issues: which model did you use?

Opus 4.5

For AI issues: add Request ID with privacy disabled

Request ID: 26453102-b810-4d58-86f0-8cb5bb5bf1b4

Additional Information

This started happening yesterday when the update issues occurred. I completely uninstalled Cursor and reinstalled using a link from Cursor support staff. Everything worked good for a few hours and then the empty terminal output issues started.

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

1 Like

I’ve tried multiple different agent chats, restarting Cursor IDE, restarting computer, enabling the “Legacy Terminal Tool” option in Agent settings, etc.

Issue of agent receiving empty terminal outputs is still happening.

I am also running into this after updating to the latest cursor. I see it is trying to spawn bin/zsh as opposed to /bin/zsh. I have tried changing every terminal setting I can but I still see the same behavior in the Developer Tools. I wonder if its the same issue you are running into.

```
Version: 2.4.21
VSCode Version: 1.105.1
Commit: dc8361355d709f306d5159635a677a571b277bc0
Date: 2026-01-22T16:57:59.675Z
Build Type: Stable
Release Track: Default
Electron: 39.2.7
Chromium: 142.0.7444.235
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Darwin arm64 25.2.0
```

Hey, thanks for the report. This is a known issue in version 2.4.21, a few users are seeing the same thing after updating.

One user on macOS noticed in Developer Tools that Cursor is trying to run bin/zsh instead of /bin/zsh. Can you check the console in Developer Tools (Help > Toggle Developer Tools) when the agent runs a command? There might be something there about the shell path.

Also, could you share:

  • A screenshot of your terminal settings (Settings > Terminal)
  • What exactly shows up in the Developer Tools Console when the agent tries to run a command

One more workaround to try. Make sure your terminal settings (Terminal > Integrated: Default Profile) explicitly set the correct shell for Windows (for example PowerShell or CMD).

The team is aware of the issue.

Here are some of the DevTools console logs:

workbench.desktop.main.js:58   ERR [Extension Host] Encountered UnhandledRejection: Error: command '_chat.editSessions.accept' not found
error @ workbench.desktop.main.js:58
error @ workbench.desktop.main.js:58
error @ workbench.desktop.main.js:35998
QNf @ workbench.desktop.main.js:11397
$logExtensionHostMessage @ workbench.desktop.main.js:11397
_doInvokeHandler @ workbench.desktop.main.js:33987
_invokeHandler @ workbench.desktop.main.js:33987
_receiveRequest @ workbench.desktop.main.js:33987
_receiveOneMessage @ workbench.desktop.main.js:33987
(anonymous) @ workbench.desktop.main.js:33987
_deliver @ workbench.desktop.main.js:49
fire @ workbench.desktop.main.js:49
fire @ workbench.desktop.main.js:11414
(anonymous) @ workbench.desktop.main.js:36049
workbench.desktop.main.js:11397 [Extension Host] Encountered UnhandledRejection: Error: command '_chat.editSessions.accept' not found
GNf @ workbench.desktop.main.js:11397
$logExtensionHostMessage @ workbench.desktop.main.js:11397
_doInvokeHandler @ workbench.desktop.main.js:33987
_invokeHandler @ workbench.desktop.main.js:33987
_receiveRequest @ workbench.desktop.main.js:33987
_receiveOneMessage @ workbench.desktop.main.js:33987
(anonymous) @ workbench.desktop.main.js:33987
_deliver @ workbench.desktop.main.js:49
fire @ workbench.desktop.main.js:49
fire @ workbench.desktop.main.js:11414
(anonymous) @ workbench.desktop.main.js:36049
workbench.desktop.main.js:58   ERR command '_chat.editSessions.accept' not found {name: 'Error', message: "command '_chat.editSessions.accept' not found"}
error @ workbench.desktop.main.js:58
error @ workbench.desktop.main.js:58
error @ workbench.desktop.main.js:35998
handleUnexpectedError @ workbench.desktop.main.js:35995
(anonymous) @ workbench.desktop.main.js:35995
onUnexpectedError @ workbench.desktop.main.js:27
Uc @ workbench.desktop.main.js:22
$onUnexpectedError @ workbench.desktop.main.js:11411
_doInvokeHandler @ workbench.desktop.main.js:33987
_invokeHandler @ workbench.desktop.main.js:33987
_receiveRequest @ workbench.desktop.main.js:33987
_receiveOneMessage @ workbench.desktop.main.js:33987
(anonymous) @ workbench.desktop.main.js:33987
_deliver @ workbench.desktop.main.js:49
fire @ workbench.desktop.main.js:49
fire @ workbench.desktop.main.js:11414
(anonymous) @ workbench.desktop.main.js:36049
workbench.desktop.main.js:34301 [AiCodeTracking] Error scoring commit f4a3937b87e5e2c7f88aa98e6096ef61c20bad86: Error: spawn git ENOENT
    at Process.ChildProcess._handle.onexit (node:internal/child_process:285:19)
    at onErrorNT (node:internal/child_process:483:16)
    at processTicksAndRejections (node:internal/process/task_queues:90:21)
workbench.desktop.main.js:58   ERR [Extension Host] [onDidStartTerminalShellExecution] Shell execution started, but not from a Kilo Code-registered terminal: 
{terminal: {…}, shellIntegration: '[Circular]', execution: {…}}
workbench.desktop.main.js:11397 [Extension Host] [onDidStartTerminalShellExecution] Shell execution started, but not from a Kilo Code-registered terminal: 
{terminal: {…}, shellIntegration: '[Circular]', execution: {…}}
workbench.desktop.main.js:58   ERR [Extension Host] [onDidEndTerminalShellExecution] Shell execution ended, but not from a Kilo Code-registered terminal: 
{terminal: {…}, shellIntegration: '[Circular]', execution: {…}, exitCode: 0}
workbench.desktop.main.js:11397 [Extension Host] [onDidEndTerminalShellExecution] Shell execution ended, but not from a Kilo Code-registered terminal: 
{terminal: {…}, shellIntegration: '[Circular]', execution: {…}, exitCode: 0}
ERR command '_chat.editSessions.accept' not found {name: 'Error', message: "command '_chat.editSessions.accept' not found"}
workbench.desktop.main.js:674 [composer] updateReactiveCodeBlock called for codeblockId that does not exist Wot {scheme: 'file', authority: '', path: '/j:/Github/autobrowser-mcp-custom/extension/background/handlers/cdp-enhanced.js', query: '', fragment: '', …}authority: ""fragment: ""path: "/j:/Github/autobrowser-mcp-custom/extension/background/handlers/cdp-enhanced.js"query: ""scheme: "file"_formatted: "file:///j%3A/Github/autobrowser-mcp-custom/extension/background/handlers/cdp-enhanced.js"_fsPath: "j:\\Github\\autobrowser-mcp-custom\\extension\\background\\handlers\\cdp-enhanced.js"fsPath: (...)[[Prototype]]: JZs toolu_vrtx_012fLDAFTzeqAeDZx1G23djE
updateComposerCodeBlock @ workbench.desktop.main.js:674
(anonymous) @ workbench.desktop.main.js:55
wDo @ workbench.desktop.main.js:55
vme @ workbench.desktop.main.js:55
i.value @ workbench.desktop.main.js:55
_storePartialInlineDiffFates @ workbench.desktop.main.js:674
await in _storePartialInlineDiffFates
(anonymous) @ workbench.desktop.main.js:674
_deliver @ workbench.desktop.main.js:49
_deliverQueue @ workbench.desktop.main.js:49
fire @ workbench.desktop.main.js:49
acceptDiff @ workbench.desktop.main.js:648
accept @ workbench.desktop.main.js:9190
accept @ workbench.desktop.main.js:9195
acceptAllDiffs @ workbench.desktop.main.js:34210
acceptAll @ workbench.desktop.main.js:34210
await in acceptAll
onClick @ workbench.desktop.main.js:33070
(anonymous) @ workbench.desktop.main.js:940
workbench.desktop.main.js:674 [composer] updateReactiveCodeBlock called for codeblockId that does not exist Wot {scheme: 'file', authority: '', path: '/j:/Github/autobrowser-mcp-custom/extension/utils/humanizer/stealth.js', query: '', fragment: '', …}authority: ""fragment: ""path: "/j:/Github/autobrowser-mcp-custom/extension/utils/humanizer/stealth.js"query: ""scheme: "file"_formatted: "file:///j%3A/Github/autobrowser-mcp-custom/extension/utils/humanizer/stealth.js"_fsPath: "j:\\Github\\autobrowser-mcp-custom\\extension\\utils\\humanizer\\stealth.js"fsPath: (...)[[Prototype]]: JZs toolu_vrtx_01UCPB4b5dpAtEQCgAHco3Vj
updateComposerCodeBlock @ workbench.desktop.main.js:674
(anonymous) @ workbench.desktop.main.js:55
wDo @ workbench.desktop.main.js:55
vme @ workbench.desktop.main.js:55
i.value @ workbench.desktop.main.js:55
_storePartialInlineDiffFates @ workbench.desktop.main.js:674
await in _storePartialInlineDiffFates
(anonymous) @ workbench.desktop.main.js:674
_deliver @ workbench.desktop.main.js:49
_deliverQueue @ workbench.desktop.main.js:49
fire @ workbench.desktop.main.js:49
acceptDiff @ workbench.desktop.main.js:648
accept @ workbench.desktop.main.js:9190
accept @ workbench.desktop.main.js:9195
acceptAllDiffs @ workbench.desktop.main.js:34210
acceptAll @ workbench.desktop.main.js:34210
await in acceptAll
onClick @ workbench.desktop.main.js:33070
(anonymous) @ workbench.desktop.main.js:940
workbench.desktop.main.js:674 [composer] updateReactiveCodeBlock called for codeblockId that does not exist Wot {scheme: 'file', authority: '', path: '/j:/Github/autobrowser-mcp-custom/extension/background/cdp-network-tracker.js', query: '', fragment: '', …} toolu_vrtx_01Hr7hindstVaRwTETrHcg7R
updateComposerCodeBlock @ workbench.desktop.main.js:674
(anonymous) @ workbench.desktop.main.js:55
wDo @ workbench.desktop.main.js:55
vme @ workbench.desktop.main.js:55
i.value @ workbench.desktop.main.js:55
_storePartialInlineDiffFates @ workbench.desktop.main.js:674
await in _storePartialInlineDiffFates
(anonymous) @ workbench.desktop.main.js:674
_deliver @ workbench.desktop.main.js:49
_deliverQueue @ workbench.desktop.main.js:49
fire @ workbench.desktop.main.js:49
acceptDiff @ workbench.desktop.main.js:648
accept @ workbench.desktop.main.js:9190
accept @ workbench.desktop.main.js:9195
acceptAllDiffs @ workbench.desktop.main.js:34210
acceptAll @ workbench.desktop.main.js:34210
await in acceptAll
onClick @ workbench.desktop.main.js:33070
(anonymous) @ workbench.desktop.main.js:940
workbench.desktop.main.js:34068 [Explicit context] took 7.700000002980232ms
addon-webgl.js:1 Uncaught TypeError: Cannot read properties of undefined (reading 'loadCell')
    at v._updateModel (addon-webgl.js:1:64957)
    at v.renderRows (addon-webgl.js:1:63603)
    at d._renderRows (xterm.js:1:110411)
    at t.RenderDebouncer._renderCallback (xterm.js:1:108389)
    at t.RenderDebouncer._innerRefresh (xterm.js:1:45505)
    at xterm.js:1:45203
workbench.desktop.main.js:34345 [AiCodeTracking] Error scoring 44d3d8b2cd99fc6cc1047adba8b2625d4ff56b1a: Error: spawn git ENOENT
    at Process.ChildProcess._handle.onexit (node:internal/child_process:285:19)
    at onErrorNT (node:internal/child_process:483:16)
    at processTicksAndRejections (node:internal/process/task_queues:90:21)
workbench.desktop.main.js:34345 [AiCodeTracking] Error scoring cda1a2f210e5bc774c93a611eeab97d33f635022: Error: spawn git ENOENT
    at Process.ChildProcess._handle.onexit (node:internal/child_process:285:19)
    at onErrorNT (node:internal/child_process:483:16)
    at processTicksAndRejections (node:internal/process/task_queues:90:21)
workbench.desktop.main.js:34046 [composer] No first token received within 2s Object
_log @ workbench.desktop.main.js:34046
workbench.desktop.main.js:11397 [Extension Host] rejected promise not handled within 1 second: Error: command '_chat.editSessions.accept' not found
GNf @ workbench.desktop.main.js:11397
workbench.desktop.main.js:11397 [Extension Host] stack trace: Error: command '_chat.editSessions.accept' not found
    at Huc._tryExecuteCommand (vscode-file://vscode-app/c:/Program%20Files/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:33968:3343)
    at Huc.executeCommandImpl (vscode-file://vscode-app/c:/Program%20Files/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:33968:2847)
GNf @ workbench.desktop.main.js:11397
workbench.desktop.main.js:34046 [composer] No first token received within 2s {arch: 'x64', platform: 'win32', channel: 'stable', client_version: '2.4.9', requestId: 'ee989309-78ed-4538-af2c-e793624a38fb', …}
_log @ workbench.desktop.main.js:34046
warn @ workbench.desktop.main.js:34046
(anonymous) @ workbench.desktop.main.js:9168
setTimeout
e.setTimeout @ workbench.desktop.main.js:33438
(anonymous) @ workbench.desktop.main.js:9168
submitChatMaybeAbortCurrent @ workbench.desktop.main.js:9168
await in submitChatMaybeAbortCurrent
Hi @ workbench.desktop.main.js:33000
(anonymous) @ workbench.desktop.main.js:32974
Qe @ workbench.desktop.main.js:32974
onClick @ workbench.desktop.main.js:32974
(anonymous) @ workbench.desktop.main.js:9195
workbench.desktop.main.js:34046 [composer] No first token received within 4s {arch: 'x64', platform: 'win32', channel: 'stable', client_version: '2.4.9', requestId: 'ee989309-78ed-4538-af2c-e793624a38fb', …}
_log @ workbench.desktop.main.js:34046
warn @ workbench.desktop.main.js:34046
(anonymous) @ workbench.desktop.main.js:9168
setTimeout
e.setTimeout @ workbench.desktop.main.js:33438
(anonymous) @ workbench.desktop.main.js:9168
submitChatMaybeAbortCurrent @ workbench.desktop.main.js:9168
await in submitChatMaybeAbortCurrent
Hi @ workbench.desktop.main.js:33000
(anonymous) @ workbench.desktop.main.js:32974
Qe @ workbench.desktop.main.js:32974
onClick @ workbench.desktop.main.js:32974
(anonymous) @ workbench.desktop.main.js:9195
workbench.desktop.main.js:11397 [Extension Host] rejected promise not handled within 1 second: Error: command '_chat.editSessions.accept' not found
GNf @ workbench.desktop.main.js:11397
$logExtensionHostMessage @ workbench.desktop.main.js:11397
_doInvokeHandler @ workbench.desktop.main.js:33987
_invokeHandler @ workbench.desktop.main.js:33987
_receiveRequest @ workbench.desktop.main.js:33987
_receiveOneMessage @ workbench.desktop.main.js:33987
(anonymous) @ workbench.desktop.main.js:33987
_deliver @ workbench.desktop.main.js:49
fire @ workbench.desktop.main.js:49
fire @ workbench.desktop.main.js:11414
(anonymous) @ workbench.desktop.main.js:36049
workbench.desktop.main.js:11397 [Extension Host] stack trace: Error: command '_chat.editSessions.accept' not found
    at Huc._tryExecuteCommand (vscode-file://vscode-app/c:/Program%20Files/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:33968:3343)
    at Huc.executeCommandImpl (vscode-file://vscode-app/c:/Program%20Files/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:33968:2847)
addon-webgl.js:1 Uncaught TypeError: Cannot read properties of undefined (reading 'loadCell')
    at v._updateModel (addon-webgl.js:1:64957)
    at v.renderRows (addon-webgl.js:1:63603)
    at d._renderRows (xterm.js:1:110411)
    at t.RenderDebouncer._renderCallback (xterm.js:1:108389)
    at t.RenderDebouncer._innerRefresh (xterm.js:1:45505)
    at xterm.js:1:44844
xterm.js:1 Uncaught TypeError: Cannot read properties of undefined (reading 'setCellFromCodepoint')
    at D.print (xterm.js:1:163160)
    at h._printHandler (xterm.js:1:151027)
    at h.parse (xterm.js:1:249811)
    at D.parse (xterm.js:1:160592)
    at n._action (xterm.js:1:144220)
    at n._innerWrite (xterm.js:1:237370)
    at xterm.js:1:237128

I also received this error in the agent:

workbench.desktop.main.js:34204 [DiffHashTracker] Error tracking NAL edit: Error: SQLITE_ERROR: cannot start a transaction within a transaction
(anonymous) @ workbench.desktop.main.js:34204
Promise.catch
(anonymous) @ workbench.desktop.main.js:34204
_deliver @ workbench.desktop.main.js:49
_deliverQueue @ workbench.desktop.main.js:49
fire @ workbench.desktop.main.js:49
fireDidFinishAiEditToolCall @ workbench.desktop.main.js:645
handleAiEditToolCallFinished @ workbench.desktop.main.js:34215
(anonymous) @ workbench.desktop.main.js:55
wDo @ workbench.desktop.main.js:55
vme @ workbench.desktop.main.js:55
i.value @ workbench.desktop.main.js:55
handleToolCallCompleted @ workbench.desktop.main.js:9115
await in handleToolCallCompleted
handleToolCallCompleted @ workbench.desktop.main.js:9117
sendUpdate @ workbench.desktop.main.js:9118
rpf @ workbench.desktop.main.js:9122
await in rpf
hks @ workbench.desktop.main.js:9122
await in hks
onRetryResuming @ workbench.desktop.main.js:34248
run @ workbench.desktop.main.js:9095
run @ workbench.desktop.main.js:33096
resume @ workbench.desktop.main.js:34199
streamFromAgentBackend @ workbench.desktop.main.js:34248
await in streamFromAgentBackend
getAgentStreamResponse @ workbench.desktop.main.js:34248
submitChatMaybeAbortCurrent @ workbench.desktop.main.js:9168
await in submitChatMaybeAbortCurrent
resumeChat @ workbench.desktop.main.js:9168
zt @ workbench.desktop.main.js:9168
(anonymous) @ workbench.desktop.main.js:940
workbench.desktop.main.js:34046 [transport] Initiating stream AI connect {arch: ‘x64’, platform: ‘win32’, channel: ‘stable’, client_version: ‘2.4.9’, service: ‘agent.v1.AgentService’, …}
workbench.desktop.main.js:34204 [DiffHashTracker] Error tracking NAL edit: Error: SQLITE_ERROR: cannot start a transaction within a transaction
(anonymous) @ workbench.desktop.main.js:34204
Promise.catch
(anonymous) @ workbench.desktop.main.js:34204
_deliver @ workbench.desktop.main.js:49
_deliverQueue @ workbench.desktop.main.js:49
fire @ workbench.desktop.main.js:49
fireDidFinishAiEditToolCall @ workbench.desktop.main.js:645
handleAiEditToolCallFinished @ workbench.desktop.main.js:34215
(anonymous) @ workbench.desktop.main.js:55
wDo @ workbench.desktop.main.js:55
vme @ workbench.desktop.main.js:55
i.value @ workbench.desktop.main.js:55
handleToolCallCompleted @ workbench.desktop.main.js:9115
await in handleToolCallCompleted
handleToolCallCompleted @ workbench.desktop.main.js:9117
sendUpdate @ workbench.desktop.main.js:9118
rpf @ workbench.desktop.main.js:9122
await in rpf
hks @ workbench.desktop.main.js:9122
await in hks
onRetryResuming @ workbench.desktop.main.js:34248
run @ workbench.desktop.main.js:9095
run @ workbench.desktop.main.js:33096
resume @ workbench.desktop.main.js:34199
streamFromAgentBackend @ workbench.desktop.main.js:34248
await in streamFromAgentBackend
getAgentStreamResponse @ workbench.desktop.main.js:34248
submitChatMaybeAbortCurrent @ workbench.desktop.main.js:9168
await in submitChatMaybeAbortCurrent
resumeChat @ workbench.desktop.main.js:9168
zt @ workbench.desktop.main.js:9168
(anonymous) @ workbench.desktop.main.js:940
workbench.desktop.main.js:34046 [composer] No first token received within 2s {arch: ‘x64’, platform: ‘win32’, channel: ‘stable’, client_version: ‘2.4.9’, requestId: ‘2e9c8acb-459d-44b8-b7b6-c42c48cfc08c’, …}

Thanks for the detailed DevTools logs.

I can see a few issues in the logs:

  • spawn git ENOENT means Cursor can’t find git
  • “Shell execution started, but not from a Kilo Code-registered terminal” looks like a terminal registration error
  • Lots of terminal rendering errors (xterm.js)

This looks like a broader regression in 2.4.21 related to terminal integration. A user on macOS (@westin in that thread) noticed Cursor tries to run bin/zsh instead of /bin/zsh, so it might be a similar path issue on Windows.

While the team is looking into it, try these workarounds:

  1. Check that git is available in PATH
    In a normal Windows terminal, run: where git
    If it’s not found, you’ll need to add Git to your system PATH.

  2. Explicitly set the shell in settings
    Settings > Terminal > Integrated: Default Profile > Windows
    Pick a specific shell (PowerShell or Command Prompt), not “null” or “default”.

  3. Reload the window
    CTRL + Shift + P > Developer: Reload Window

  4. If nothing helps, roll back to 2.3.34
    Other users confirmed 2.3.34 is stable, and the issues started in 2.3.35+. You can download it here: Download · Cursor (select a specific version).

One more note, another user reported that 2.4.x breaks backward compatibility with chats from earlier versions, so if you roll back, keep that in mind.

Let me know if any of this helps, or if you want other options.

  1. (base) PS C:\Users\joelb> where.exe git
    C:\Program Files\Git\cmd\git.exe
    C:\Program Files\Git\bin\git.exe
    
  2. image

  3. Reloaded Cursor IDE window and also shut it down and started it back up again.

  4. Same issues are persisting.

  5. Cursor IDE DevTools console logs:

    workbench.desktop.main.js:58   ERR [Extension Host] [otel.error] {“stack”:“OTLPExporterError: Bad Request\n    at IncomingMessage. (c:\Program Files\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 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"}”}
    workbench.desktop.main.js:11397 [Extension Host] [otel.error] {“stack”:“OTLPExporterError: Bad Request\n    at IncomingMessage. (c:\Program Files\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 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"}”}
    workbench.desktop.main.js:58   ERR [Extension Host] [onDidStartTerminalShellExecution] Shell execution started, but not from a Kilo Code-registered terminal:
    {terminal: {…}, shellIntegration: ‘[Circular]’, execution: {…}}
    workbench.desktop.main.js:11397 [Extension Host] [onDidStartTerminalShellExecution] Shell execution started, but not from a Kilo Code-registered terminal:
    {terminal: {…}, shellIntegration: ‘[Circular]’, execution: {…}}
    workbench.desktop.main.js:58   ERR [Extension Host] [onDidEndTerminalShellExecution] Shell execution ended, but not from a Kilo Code-registered terminal:
    {terminal: {…}, shellIntegration: ‘[Circular]’, execution: {…}, exitCode: 0}
    workbench.desktop.main.js:11397 [Extension Host] [onDidEndTerminalShellExecution] Shell execution ended, but not from a Kilo Code-registered terminal:
    {terminal: {…}, shellIntegration: ‘[Circular]’, execution: {…}, exitCode: 0}
    workbench.desktop.main.js:58   ERR [Extension Host] Encountered UnhandledRejection: TypeError [ERR_INVALID_ARG_TYPE]: The “path” argument must be of type string. Received undefined
    workbench.desktop.main.js:11397 [Extension Host] Encountered UnhandledRejection: TypeError [ERR_INVALID_ARG_TYPE]: The “path” argument must be of type string. Received undefined
    workbench.desktop.main.js:58   ERR [Extension Host] [onDidStartTerminalShellExecution] Shell execution started, but not from a Kilo Code-registered terminal:
    {terminal: {…}, shellIntegration: ‘[Circular]’, execution: {…}}
    workbench.desktop.main.js:11397 [Extension Host] [onDidStartTerminalShellExecution] Shell execution started, but not from a Kilo Code-registered terminal:
    {terminal: {…}, shellIntegration: ‘[Circular]’, execution: {…}}
    workbench.desktop.main.js:58   ERR [Extension Host] [otel.error] {“stack”:“OTLPExporterError: Bad Request\n    at IncomingMessage. (c:\Program Files\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 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"}”}
    workbench.desktop.main.js:11397 [Extension Host] [otel.error] {“stack”:“OTLPExporterError: Bad Request\n    at IncomingMessage. (c:\Program Files\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 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"}”}
    workbench.desktop.main.js:11411 [anysphere.cursor-agent-exec]The “path” argument must be of type string. Received undefined
    workbench.desktop.main.js:11411 TypeError: The “path” argument must be of type string. Received undefined
    at Object.join (node:path:528:7)
    at ne (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:2303735)
    at se.execute (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:2306885)
    at te.execute (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:2302669)
    at t.TerminalExecutorWithTerminal.execute (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:1291110)
    at Cd.execute (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:1149711)
    at vd.iterate (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:1153241)
    at _d.execute (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:1156413)
    at B.consume (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:782161)
    workbench.desktop.main.js:58   ERR An unknown error occurred. Please consult the log for more details.
    {code: ‘ERR_INVALID_ARG_TYPE’}
    workbench.desktop.main.js:58   ERR [Extension Host] Encountered UnhandledRejection: TypeError [ERR_INVALID_ARG_TYPE]: The “path” argument must be of type string. Received undefined
    workbench.desktop.main.js:11397 [Extension Host] Encountered UnhandledRejection: TypeError [ERR_INVALID_ARG_TYPE]: The “path” argument must be of type string. Received undefined
    workbench.desktop.main.js:11411 [anysphere.cursor-agent-exec]The “path” argument must be of type string. Received undefined
    workbench.desktop.main.js:11411 TypeError: The “path” argument must be of type string. Received undefined
    at Object.join (node:path:528:7)
    at ne (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:2303735)
    at se.execute (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:2306885)
    at te.execute (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:2302669)
    at t.TerminalExecutorWithTerminal.execute (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:1291110)
    at Cd.execute (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:1149711)
    at vd.iterate (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:1153241)
    at _d.execute (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:1156413)
    at B.consume (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:782161)
    workbench.desktop.main.js:58   ERR An unknown error occurred. Please consult the log for more details.
    {code: ‘ERR_INVALID_ARG_TYPE’}
    workbench.desktop.main.js:58   ERR [Extension Host] Encountered UnhandledRejection: TypeError [ERR_INVALID_ARG_TYPE]: The “path” argument must be of type string. Received undefined
    workbench.desktop.main.js:11397 [Extension Host] Encountered UnhandledRejection: TypeError [ERR_INVALID_ARG_TYPE]: The “path” argument must be of type string. Received undefined
    workbench.desktop.main.js:58   ERR [Extension Host] [otel.error] {“stack”:“OTLPExporterError: Bad Request\n    at IncomingMessage. (c:\Program Files\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 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"}”}
    workbench.desktop.main.js:11397 [Extension Host] [otel.error] {“stack”:“OTLPExporterError: Bad Request\n    at IncomingMessage. (c:\Program Files\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 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"}”}
    workbench.desktop.main.js:11411 [anysphere.cursor-agent-exec]The “path” argument must be of type string. Received undefined
    workbench.desktop.main.js:11411 TypeError: The “path” argument must be of type string. Received undefined
    at Object.join (node:path:528:7)
    at ne (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:2303735)
    at se.execute (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:2306885)
    at te.execute (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:2302669)
    at t.TerminalExecutorWithTerminal.execute (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:1291110)
    at Cd.execute (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:1149711)
    at vd.iterate (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:1153241)
    at _d.execute (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:1156413)
    at B.consume (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:782161)
    workbench.desktop.main.js:58   ERR An unknown error occurred. Please consult the log for more details.
    {code: ‘ERR_INVALID_ARG_TYPE’}
    workbench.desktop.main.js:58   ERR [Extension Host] Encountered UnhandledRejection: TypeError [ERR_INVALID_ARG_TYPE]: The “path” argument must be of type string. Received undefined
    workbench.desktop.main.js:11397 [Extension Host] Encountered UnhandledRejection: TypeError [ERR_INVALID_ARG_TYPE]: The “path” argument must be of type string. Received undefined
    workbench.desktop.main.js:11411 [anysphere.cursor-agent-exec]The “path” argument must be of type string. Received undefined
    workbench.desktop.main.js:11411 TypeError: The “path” argument must be of type string. Received undefined
    at Object.join (node:path:528:7)
    at ne (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:2303735)
    at se.execute (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:2306885)
    at te.execute (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:2302669)
    at t.TerminalExecutorWithTerminal.execute (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:1291110)
    at Cd.execute (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:1149711)
    at vd.iterate (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:1153241)
    at _d.execute (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:1156413)
    at B.consume (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:782161)
    workbench.desktop.main.js:58   ERR An unknown error occurred. Please consult the log for more details.
    {code: ‘ERR_INVALID_ARG_TYPE’}
    workbench.desktop.main.js:58   ERR [Extension Host] Encountered UnhandledRejection: TypeError [ERR_INVALID_ARG_TYPE]: The “path” argument must be of type string. Received undefined
    workbench.desktop.main.js:11397 [Extension Host] Encountered UnhandledRejection: TypeError [ERR_INVALID_ARG_TYPE]: The “path” argument must be of type string. Received undefined
    workbench.desktop.main.js:58   ERR [Extension Host] [otel.error] {“stack”:“OTLPExporterError: Bad Request\n    at IncomingMessage. (c:\Program Files\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 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"}”}
    workbench.desktop.main.js:11397 [Extension Host] [otel.error] {“stack”:“OTLPExporterError: Bad Request\n    at IncomingMessage. (c:\Program Files\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 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"}”}
    workbench.desktop.main.js:11411 [anysphere.cursor-agent-exec]The “path” argument must be of type string. Received undefined
    workbench.desktop.main.js:11411 TypeError: The “path” argument must be of type string. Received undefined
    at Object.join (node:path:528:7)
    at ne (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:2303735)
    at se.execute (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:2306885)
    at te.execute (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:2302669)
    at t.TerminalExecutorWithTerminal.execute (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:1291110)
    at Cd.execute (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:1149711)
    at vd.iterate (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:1153241)
    at _d.execute (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:1156413)
    at B.consume (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:782161)
    workbench.desktop.main.js:58   ERR An unknown error occurred. Please consult the log for more details.
    {code: ‘ERR_INVALID_ARG_TYPE’}
    workbench.desktop.main.js:58   ERR [Extension Host] Encountered UnhandledRejection: TypeError [ERR_INVALID_ARG_TYPE]: The “path” argument must be of type string. Received undefined
    workbench.desktop.main.js:11397 [Extension Host] Encountered UnhandledRejection: TypeError [ERR_INVALID_ARG_TYPE]: The “path” argument must be of type string. Received undefined
    workbench.desktop.main.js:11411 [anysphere.cursor-agent-exec]The “path” argument must be of type string. Received undefined
    workbench.desktop.main.js:11411 TypeError: The “path” argument must be of type string. Received undefined
    at Object.join (node:path:528:7)
    at ne (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:2303735)
    at se.execute (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:2306885)
    at te.execute (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:2302669)
    at t.TerminalExecutorWithTerminal.execute (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:1291110)
    at Cd.execute (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:1149711)
    at vd.iterate (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:1153241)
    at _d.execute (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:1156413)
    at B.consume (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:782161)
    workbench.desktop.main.js:58   ERR An unknown error occurred. Please consult the log for more details.
    {code: ‘ERR_INVALID_ARG_TYPE’}
    addon-webgl.js:1 Uncaught TypeError: Cannot read properties of undefined (reading ‘loadCell’)
    at v._updateModel (addon-webgl.js:1:64957)
    at v.renderRows (addon-webgl.js:1:63603)
    at d._renderRows (xterm.js:1:110411)
    at t.RenderDebouncer._renderCallback (xterm.js:1:108389)
    at t.RenderDebouncer._innerRefresh (xterm.js:1:45505)
    at xterm.js:1:44844
    addon-webgl.js:1 Uncaught TypeError: Cannot read properties of undefined (reading ‘loadCell’)
    at v._updateModel (addon-webgl.js:1:64957)
    at v.renderRows (addon-webgl.js:1:63603)
    at d._renderRows (xterm.js:1:110411)
    at t.RenderDebouncer._renderCallback (xterm.js:1:108389)
    at t.RenderDebouncer._innerRefresh (xterm.js:1:45505)
    at xterm.js:1:45203
    xterm.js:1 Uncaught TypeError: Cannot read properties of undefined (reading ‘setCellFromCodepoint’)
    at D.print (xterm.js:1:163160)
    at h._printHandler (xterm.js:1:151027)
    at h.parse (xterm.js:1:249811)
    at D.parse (xterm.js:1:160592)
    at n._action (xterm.js:1:144220)
    at n._innerWrite (xterm.js:1:237370)
    at xterm.js:1:237128
    workbench.desktop.main.js:58   ERR [Extension Host] [onDidStartTerminalShellExecution] Shell execution started, but not from a Kilo Code-registered terminal:
    {terminal: {…}, shellIntegration: ‘[Circular]’, execution: {…}}
    workbench.desktop.main.js:11397 [Extension Host] [onDidStartTerminalShellExecution] Shell execution started, but not from a Kilo Code-registered terminal:
    {terminal: {…}, shellIntegration: ‘[Circular]’, execution: {…}}
    workbench.desktop.main.js:58   ERR [Extension Host] [otel.error] {“stack”:“OTLPExporterError: Bad Request\n    at IncomingMessage. (c:\Program Files\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 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"}”}
    workbench.desktop.main.js:11397 [Extension Host] [otel.error] {“stack”:“OTLPExporterError: Bad Request\n    at IncomingMessage. (c:\Program Files\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 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"}”}
    workbench.desktop.main.js:58   ERR [Extension Host] Encountered UnhandledRejection: TypeError [ERR_INVALID_ARG_TYPE]: The “path” argument must be of type string. Received undefined
    workbench.desktop.main.js:11397 [Extension Host] Encountered UnhandledRejection: TypeError [ERR_INVALID_ARG_TYPE]: The “path” argument must be of type string. Received undefined
    workbench.desktop.main.js:58   ERR [Extension Host] [onDidEndTerminalShellExecution] Shell execution ended, but not from a Kilo Code-registered terminal:
    {terminal: {…}, shellIntegration: ‘[Circular]’, execution: {…}}
    workbench.desktop.main.js:11397 [Extension Host] [onDidEndTerminalShellExecution] Shell execution ended, but not from a Kilo Code-registered terminal:
    {terminal: {…}, shellIntegration: ‘[Circular]’, execution: {…}}
    workbench.desktop.main.js:58   ERR [Extension Host] [onDidStartTerminalShellExecution] Shell execution started, but not from a Kilo Code-registered terminal:
    {terminal: {…}, shellIntegration: ‘[Circular]’, execution: {…}}
    workbench.desktop.main.js:11397 [Extension Host] [onDidStartTerminalShellExecution] Shell execution started, but not from a Kilo Code-registered terminal:
    {terminal: {…}, shellIntegration: ‘[Circular]’, execution: {…}}
    workbench.desktop.main.js:11411 [anysphere.cursor-agent-exec]The “path” argument must be of type string. Received undefined
    workbench.desktop.main.js:11411 TypeError: The “path” argument must be of type string. Received undefined
    at Object.join (node:path:528:7)
    at ne (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:2303735)
    at se.execute (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:2306885)
    at te.execute (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:2302669)
    at t.TerminalExecutorWithTerminal.execute (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:1291110)
    at Cd.execute (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:1149711)
    at vd.iterate (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:1153241)
    at _d.execute (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:1156413)
    at B.consume (c:\Program Files\cursor\resources\app\extensions\cursor-agent-exec\dist\main.js:2:782161)
    workbench.desktop.main.js:58   ERR An unknown error occurred. Please consult the log for more details.
    {code: ‘ERR_INVALID_ARG_TYPE’}
    workbench.desktop.main.js:58   ERR [Extension Host] [otel.error] {“stack”:“OTLPExporterError: Bad Request\n    at IncomingMessage. (c:\Program Files\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 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"}”}
    workbench.desktop.main.js:11397 [Extension Host] [otel.error] {“stack”:“OTLPExporterError: Bad Request\n    at IncomingMessage. (c:\Program Files\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 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"}”}
    workbench.desktop.main.js:34046 [transport] Agent client stream abort Error: conversation_action_abort
    at R (workbench.desktop.main.js:9095:9166)
    at a.signal.addEventListener.once (workbench.desktop.main.js:9095:9778)
    at ILd.abort (workbench.desktop.main.js:9099:7886)
    at B4t.abort (workbench.desktop.main.js:9094:41600)
    at B4t.composerAbortController.signal.aborted.composerAbortControllerListener (workbench.desktop.main.js:9099:9456)
    at ILd.abort (workbench.desktop.main.js:9099:7886)
    at QM.abortGenerationUUID (workbench.desktop.main.js:9112:3098)
    at Q1.cancelChat (workbench.desktop.main.js:34210:25913)
    at Q1.cancelCurrentStep (workbench.desktop.main.js:34210:26679)
    at RNm.run (workbench.desktop.main.js:33435:6065)
    at workbench.desktop.main.js:55:45049
    at wDo (workbench.desktop.main.js:55:44734)
    at vme (workbench.desktop.main.js:55:44695)
    at i.value (workbench.desktop.main.js:55:45037)
    at handler (workbench.desktop.main.js:57:18354)
    at M4c.invokeFunction (workbench.desktop.main.js:34471:960)
    at workbench.desktop.main.js:33968:3146
    at wDo (workbench.desktop.main.js:55:44734)
    at vme (workbench.desktop.main.js:55:44695)
    at Huc._tryExecuteCommand (workbench.desktop.main.js:33968:2998)
    at Huc.executeCommandImpl (workbench.desktop.main.js:33968:2243)
    at Huc.executeCommand (workbench.desktop.main.js:33968:1896)
    at workbench.desktop.main.js:32974:60137
    at Qe (workbench.desktop.main.js:32974:60723)
    at Object.onClick (workbench.desktop.main.js:32974:76978)
    at HTMLDivElement. (workbench.desktop.main.js:9195:12131)
    
    {arch: ‘x64’, platform: ‘win32’, channel: ‘stable’, client_version: ‘2.4.9’, error: {…}, …}
    workbench.desktop.main.js:34046 [transport] No handler found for server message of type abort undefined
    {arch: ‘x64’, platform: ‘win32’, channel: ‘stable’, client_version: ‘2.4.9’}
    workbench.desktop.main.js:34046 [transport] No handler found for server message of type abort undefined
    {arch: ‘x64’, platform: ‘win32’, channel: ‘stable’, client_version: ‘2.4.9’}
    workbench.desktop.main.js:34046 [transport] No handler found for server message of type abort undefined
    {arch: ‘x64’, platform: ‘win32’, channel: ‘stable’, client_version: ‘2.4.9’}
    workbench.desktop.main.js:34046 [transport] No handler found for server message of type abort undefined
    {arch: ‘x64’, platform: ‘win32’, channel: ‘stable’, client_version: ‘2.4.9’}
    workbench.desktop.main.js:34046 [transport] No handler found for server message of type abort undefined
    {arch: ‘x64’, platform: ‘win32’, channel: ‘stable’, client_version: ‘2.4.9’}
    workbench.desktop.main.js:34046 [transport] No handler found for server message of type abort undefined
    {arch: ‘x64’, platform: ‘win32’, channel: ‘stable’, client_version: ‘2.4.9’}
    workbench.desktop.main.js:34046 [transport] No handler found for server message of type abort undefined
    {arch: ‘x64’, platform: ‘win32’, channel: ‘stable’, client_version: ‘2.4.9’}
    workbench.desktop.main.js:34046 [transport] No handler found for server message of type abort undefined
    {arch: ‘x64’, platform: ‘win32’, channel: ‘stable’, client_version: ‘2.4.9’}
    workbench.desktop.main.js:34046 [transport] No handler found for server message of type abort undefined
    {arch: ‘x64’, platform: ‘win32’, channel: ‘stable’, client_version: ‘2.4.9’}
    workbench.desktop.main.js:34046 [transport] No handler found for server message of type abort undefined
    {arch: ‘x64’, platform: ‘win32’, channel: ‘stable’, client_version: ‘2.4.9’}
    workbench.desktop.main.js:34046 [transport] No handler found for server message of type abort undefined
    {arch: ‘x64’, platform: ‘win32’, channel: ‘stable’, client_version: ‘2.4.9’}
    workbench.desktop.main.js:34046 [transport] No handler found for server message of type abort undefined
    {arch: ‘x64’, platform: ‘win32’, channel: ‘stable’, client_version: ‘2.4.9’}
    workbench.desktop.main.js:34046 [transport] No handler found for server message of type abort undefined
    {arch: ‘x64’, platform: ‘win32’, channel: ‘stable’, client_version: ‘2.4.9’}
    workbench.desktop.main.js:34046 [transport] Stream error reported from extension host ConnectError: [canceled] [aborted] Error
    at yzd.$endAiConnectTransportReportError (workbench.desktop.main.js:11430:32845)
    at v0t._doInvokeHandler (workbench.desktop.main.js:33987:23171)
    at v0t._invokeHandler (workbench.desktop.main.js:33987:22913)
    at v0t._receiveRequest (workbench.desktop.main.js:33987:21545)
    at v0t._receiveOneMessage (workbench.desktop.main.js:33987:20362)
    at ein.value (workbench.desktop.main.js:33987:18389)
    at Oe._deliver (workbench.desktop.main.js:49:2962)
    at Oe.fire (workbench.desktop.main.js:49:3283)
    at C3t.fire (workbench.desktop.main.js:11414:12156)
    at MessagePort. (workbench.desktop.main.js:36049:18408)
    
    {arch: ‘x64’, platform: ‘win32’, channel: ‘stable’, client_version: ‘2.4.9’, error: {…}, …}
    

After some troubleshooting, I found a solution that fixed the problems.

Fixing the npm PATH Issue in Cursor’s Terminal

The Problem

Cursor’s integrated PowerShell terminal doesn’t inherit all Windows environment variables (like PATH and NVM_SYMLINK), so npm and other commands aren’t found.

The Solution

Edit the PowerShell profile to explicitly load environment variables from the Windows registry every time a new terminal opens.


Step-by-Step Instructions

Step 1: Open PowerShell and check if the profile exists

Test-Path $PROFILE
  • If True → profile exists
  • If False → create it with: New-Item -Path $PROFILE -ItemType File -Force

Step 2: Open the profile for editing

notepad $PROFILE

Step 3: Add these lines at the TOP of the file

$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
$env:NVM_SYMLINK = [System.Environment]::GetEnvironmentVariable("NVM_SYMLINK","User")

Step 4: Save and close notepad

Step 5: Open a new terminal in Cursor

Every new PowerShell terminal will now have the full PATH and NVM_SYMLINK loaded.


What Each Line Does

Line Purpose
$env:Path = ... Loads the complete PATH from both Machine and User environment variables in the Windows registry
$env:NVM_SYMLINK = ... Loads the NVM_SYMLINK variable (needed for NVM for Windows to manage Node.js versions)

Why This Works

The PowerShell profile ($PROFILE) runs automatically every time a new PowerShell session starts. By pulling environment variables directly from the Windows registry, this bypasses whatever incomplete environment Cursor passes to the terminal.

Now the Cursor agent uses the terminal and receives the output. Also, there are no more Cursor IDE DevTools console error logs like the logs I previously shared.

The original issue has resurfaced and the agent is receiving empty terminal outputs again.

I see the PowerShell workaround stopped working, which is frustrating given how much time you’ve already spent debugging.

The issue is that the bug in v2.4.21 is deeper than just PATH. In the DevTools logs you can see ERR_INVALID_ARG_TYPE: The "path" argument must be of type string. Received undefined in the cursor-agent-exec extension. That means even with a correct PATH, the extension is getting undefined instead of a path.

The most reliable option right now is to roll back to v2.3.34:

  • Download v2.3.34 from Download · Cursor (pick the specific version)
  • Fully close Cursor before installing
  • After installing, check that agent terminal commands work

Important: If you roll back, keep in mind that v2.4.x may break backward compatibility with chats from earlier versions.

Hi @deanrie, I uninstalled Cursor and installed the v2.3.34 from the download link you shared. As soon as it installed and launched, I opened the DevTools console and found this error:

workbench.desktop.main.js:55 ERR spawn cmd.exe ENOENT: Error: spawn cmd.exe ENOENT
at Process.ChildProcess._handle.onexit (node:internal/child_process:285:19)
at onErrorNT (node:internal/child_process:483:16)
at processTicksAndRejections (node:internal/process/task_queues:90:21) Error: spawn cmd.exe ENOENT
at Process.ChildProcess._handle.onexit (node:internal/child_process:285:19)
at onErrorNT (node:internal/child_process:483:16)
at processTicksAndRejections (node:internal/process/task_queues:90:21)

It’s strange that on v2.3.34 you’re still getting spawn cmd.exe ENOENT. That usually means cmd.exe can’t be found in PATH, which should work by default on Windows.

Can you check a couple things:

  1. Open the normal cmd.exe (not through Cursor) and run:
where cmd.exe
echo %PATH%
  1. How are you launching Cursor, from the Start menu, from a desktop shortcut, or from a terminal? If you’re launching it from a terminal (for example PowerShell), try launching it the normal way from the Start menu.

  2. In Cursor Settings (not Settings > Terminal, but Cursor Settings), can you share a screenshot of the Terminal section?

Another option is to fully reset Cursor config and start fresh (make a backup first):

  • Delete the folder %APPDATA%\Cursor
  • Delete the folder %USERPROFILE%\.cursor
  • Reinstall v2.3.34

The team is aware of a bug with an undefined path in v2.4.21.

  1. (base) PS C:\Users\joelb> where.exe cmd.exe
    C:\Windows\System32\cmd.exe
    (base) PS C:\Users\joelb> echo %PATH%
    %PATH%
    
  2. I’ve been launching Cursor from the Start menu.
  3. I’ve also tried the full Cursor reset option to start fresh. I deleted both folders you mentioned and reinstalled v2.3.34.

Yeah, I see it. Running echo %PATH% in PowerShell prints %PATH% literally, and that’s expected. PowerShell handles environment variables differently.

Try these commands instead, which are the correct PowerShell syntax:

$env:PATH
$PSVersionTable

The first one shows your PATH, the second shows your PowerShell version.

Also try setting PowerShell as the default terminal explicitly:

  • Settings > Terminal > Integrated > Default Profile: Windows
  • Pick “PowerShell” (not “null”)
  • Restart Cursor

If that still doesn’t help, you might have some security software blocking processes. Check your antivirus and firewall since they can block cmd.exe when it’s launched from Cursor.

I set PowserShell as the default terminal explicitly and restarted Cursor IDE, but the problems continue to persist.

I’m also seeing the following:

workbench.desktop.main.js:13975 [AiCodeTracking] Error scoring 7403000b35b6ffa695099ed613b6d1f6f284b574: Error: spawn git ENOENT
    at Process.ChildProcess._handle.onexit (node:internal/child_process:285:19)
    at onErrorNT (node:internal/child_process:483:16)
    at processTicksAndRejections (node:internal/process/task_queues:90:21)

workbench.desktop.main.js:55   ERR i.with is not a function: TypeError: i.with is not a function
    at AMt.normalizePath (vscode-file://vscode-app/c:/Program%20Files/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:50:81714)
    at pVs.asCanonicalUri (vscode-file://vscode-app/c:/Program%20Files/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:15628:109353)
    at ESo.createModelReference (vscode-file://vscode-app/c:/Program%20Files/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:13594:31384)
    at Le (vscode-file://vscode-app/c:/Program%20Files/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:12355:10625) TypeError: i.with is not a function
    at AMt.normalizePath (workbench.desktop.main.js:50:81714)
    at pVs.asCanonicalUri (workbench.desktop.main.js:15628:109353)
    at ESo.createModelReference (workbench.desktop.main.js:13594:31384)
    at Le (workbench.desktop.main.js:12355:10625)

workbench.desktop.main.js:55   ERR command '_chat.editSessions.accept' not found Object

workbench.desktop.main.js:12674 [Extension Host] Encountered UnhandledRejection: Error: command '_chat.editSessions.accept' not found

​

I’m also seeing that the context used amounts are really high when using the agent, even for minimal tasks. As soon as the agent begins performing a task, the context usage will jump to +80%.

A new problem has started happening when the Agent performs web searches. It’s including the entire user prompt in each web search query causing the web search functionality to not work at all.

I see that after rolling back to 2.3.34 the issues are still happening, but with different symptoms. Now it’s spawn cmd.exe ENOENT. That’s strange, because cmd.exe should be available by default on Windows.

Can you try checking:

  1. Correct PATH output in PowerShell (your command didn’t work because echo %PATH% is cmd syntax, not PowerShell):
$env:PATH
$PSVersionTable
  1. Antivirus or firewall: check if something is blocking processes started from Cursor. Try temporarily disabling your antivirus just to test.

  2. Run as admin: try running Cursor as Administrator (right click > “Run as administrator”).

About the new symptoms:

  • i.with is not a function is a new error I haven’t seen before
  • High context usage and the web search issue (it includes the whole prompt) are separate bugs and already logged

Can you share the full logs from Developer Tools after restarting Cursor 2.3.34? We need to understand what’s blocking access to cmd.exe.

From what I’m experiencing, Cursor is having a really rough go of things recently. As much as I love using it, I’ll need to wait until the issues have been repaired. I appreciate you helping me try to work around the issues.

1 Like

Hi @deanrie, because I can’t help myself when there are issues needing to be fixed, I found a solution that fixed my problem of the Agent receiving empty terminal outputs.

I added the following to my settings.json file and restarted Cursor IDE:

  "terminal.integrated.windowsEnableConpty": false,
  "terminal.integrated.defaultProfile.windows": "Git Bash",
  "terminal.integrated.profiles.windows": {
    "Git Bash": {
      "path": "C:\\Program Files\\Git\\bin\\bash.exe",
      "icon": "terminal-bash"
    }
  }​

I should also mention that I applied the changes above to the following version of Cursor IDE but it also fixed my problem in v2.3.34:

Version: 2.4.22 (system setup)
VSCode Version: 1.105.1
Commit: 618c607a249dd7fd2ffc662c6531143833bebd40
Date: 2026-01-26T22:51:47.692Z
Build Type: Stable
Release Track: Default
Electron: 39.2.7
Chromium: 142.0.7444.235
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Windows_NT x64 10.0.26200

2 Likes

@deanrie Ideally, the agent should use "terminal.integrated.automationProfile.linux"not "terminal.integrated.profiles.linux"or the former should have higher priority. Otherwise, if the default profile for user’s interactive sessions is something like a custom command that launches tmux, the agent will break again.

I found the reason why my agent fails to run commands in the terminal is exactly this. I assume one of the recent versions introduced using "terminal.integrated.profiles.linux" as the agent’s terminal.