Agent Chat hang after Agent Terminal hang

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

I left the Agent on GPT-5-high for a while, and when I returned, I noticed an open working terminal. I tried opening it and closing it, but neither KeyboardInterrupt nor Q gave any result. When I killed the terminal, the Chat Agent was stuck in a state where it seemed to be continuing to work, but in fact it just froze.

When I finished the previous paragraph, “Connection failed” appeared and the chat aborted. See Additional Information.

Steps to Reproduce

Set the task to develop and debug a project on PyQt6

Screenshots / Screen Recordings

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.6.14 (user setup)
VSCode Version: 1.99.3
Commit: 64b72c9cd7e38203078327f881d5fe74930b2600
Date: 2025-09-11T21:41:40.820Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.22631

For AI issues: which model did you use?

GPT-5-high

Additional Information

Request ID: 98a7e2a6-1ea9-4f26-9e8b-ffead9357711
ConnectError: [aborted] read ECONNRESET
at xyl.$endAiConnectTransportReportError (vscode-file://vscode-app/c:/Users/Artem/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:4910:338991)
at Qvr._doInvokeHandler (vscode-file://vscode-app/c:/Users/Artem/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:487:36019)
at Qvr._invokeHandler (vscode-file://vscode-app/c:/Users/Artem/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:487:35761)
at Qvr._receiveRequest (vscode-file://vscode-app/c:/Users/Artem/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:487:34526)
at Qvr._receiveOneMessage (vscode-file://vscode-app/c:/Users/Artem/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:487:33348)
at BCt.value (vscode-file://vscode-app/c:/Users/Artem/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:487:31442)
at ye._deliver (vscode-file://vscode-app/c:/Users/Artem/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:49:2962)
at ye.fire (vscode-file://vscode-app/c:/Users/Artem/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:49:3283)
at Wot.fire (vscode-file://vscode-app/c:/Users/Artem/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:4895:12154)
at MessagePort. (vscode-file://vscode-app/c:/Users/Artem/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:7028:18292)

Does this stop you from using Cursor

No - Cursor works, but with this issue

Update: the problem is that killing the terminal does not signal to the Agent that the terminal has stopped working.

1 Like