Infinite Reconnect

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

~2hours ago sending anything to the agent chats results in “Planning next steps” for a while, then infinite “Reconnecting…”. Here are the devtools logs:
[transport] Stream connect error in extension host
{name: ‘ConnectError’, rawMessage: ‘Cancellation token requested for stream 1b7fa66e-310a-45ba-92de-df1c45d50cd6’, code: 13, metadata: {…}, details: Array(0), …}
cause
:
“Cancellation token requested for stream 1b7fa66e-310a-45ba-92de-df1c45d50cd6”
code
:
13
details
:

metadata
:
{}
name
:
“ConnectError”
rawMessage
:
“Cancellation token requested for stream 1b7fa66e-310a-45ba-92de-df1c45d50cd6”

[transport] Connect error in stream AI connect ConnectError: [internal] Cancellation token requested for stream 1b7fa66e-310a-45ba-92de-df1c45d50cd6
at wKd.$streamAiConnect (workbench.desktop.main.js:11431:29974)
at async workbench.desktop.main.js:637:32804
at async Object.next (workbench.desktop.main.js:33087:25870)
at async Object.run (workbench.desktop.main.js:33093:2113)
at async l (workbench.desktop.main.js:9096:3520)
at async Promise.allSettled (index 0)
at async hva.runInternal (workbench.desktop.main.js:9096:14980)
at async hva.run (workbench.desktop.main.js:9096:8930)
at async qyt.runAgentLoop (workbench.desktop.main.js:34196:57104)
at async jpc.streamFromAgentBackend (workbench.desktop.main.js:34245:7695)
at async jpc.getAgentStreamResponse (workbench.desktop.main.js:34245:8436)
at async FTe.submitChatMaybeAbortCurrent (workbench.desktop.main.js:9170:14623)
at async Object.Ei [as onSubmit] (workbench.desktop.main.js:32994:3808)
at async workbench.desktop.main.js:32968:60273Caused by: Cancellation token requested for stream 1b7fa66e-310a-45ba-92de-df1c45d50cd6

Steps to Reproduce

  1. Enter any chat
  2. Send any message to an Agent

Operating System

Windows 10/11

Version Information

Cursor IDE 2.4.27

For AI issues: which model did you use?

Opus 4.6

For AI issues: add Request ID with privacy disabled

90cdb7bf-88fe-4799-95eb-2504c7547c51

Additional Information

I live in Russian Federation, use proxy and DPI bypass

Does this stop you from using Cursor

Yes - Cursor is unusable

I’ve just found out that happens only in WSL which i’ve been using for a while. Everything works just fine without the WSL connection

Hey, thanks for the report and for digging deeper yourself. It’s great that you identified WSL as the source of the issue.

That’s an important find. We have a few known edge cases with WSL environments, especially around remote extensions and path resolution, but this specific issue with agent stream cancellation is new.

So the team can investigate properly, could you share a bit more:

  • Which WSL version are you using (WSL1 or WSL2)?
  • Which Linux distro are you using in WSL?
  • Do you have any extensions installed in the WSL environment? You can check in the Extensions view.

For now, the workaround is to work locally without the WSL connection, as you already found. I’ll pass this bug to the team along with your details.

1 Like

I’m using:
WSL2
Ubuntu 22.04

Yes, there are 2 extensions installed:

  • Container Tools
  • Docker
1 Like

Cursor stopped working even without WSL after I tried to send a request to Opus 4.6.

workbench.desktop.main.js:34043 [transport] Connect error in stream AI connect ConnectError: [internal] Cancellation token requested for stream 878eb9a6-e377-4b80-9888-0d82d0c836fe
at wKd.$streamAiConnect (workbench.desktop.main.js:11431:29974)
at async workbench.desktop.main.js:637:32804
at async Object.next (workbench.desktop.main.js:33087:25870)
at async Object.run (workbench.desktop.main.js:33093:2113)
at async l (workbench.desktop.main.js:9096:3520)
at async Promise.allSettled (index 0)

Caused by: Cancellation token requested for stream 878eb9a6-e377-4b80-9888-0d82d0c836fe

  1. Object

    1. arch: “x64”

    2. causeCode: undefined

    3. causeErrno: undefined

    4. causeSyscall: undefined

    5. channel: “stable”

    6. client_version: “2.4.27”

    7. code: 13

    8. error: {message: ‘Cancellation token requested for stream 878eb9a6-e377-4b80-9888-0d82d0c836fe’, stack: ‘ConnectError: [internal] Cancellation token reques…6:3520)\n at async Promise.allSettled (index 0)’, kind: ‘ConnectError’, code: 13}

    9. errorDetails: []

    10. errorDetailsDebug: undefined

    11. errorMessage: “[internal] Cancellation token requested for stream 878eb9a6-e377-4b80-9888-0d82d0c836fe”

    12. errorName: “ConnectError”

    13. method: “Run”

    14. platform: “win32”

    15. requestId: “a2d85ba1-58cf-4fd9-b20a-ff8533c2f453”

    16. service: “agent.v1.AgentService”

    17. streamId: “878eb9a6-e377-4b80-9888-0d82d0c836fe”

    18. timeoutMs: “undefined”

    19. [[Prototype]]: Object

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