claude-code - 💡(How to fix) Fix Cursor/VS Code extension: teleport fails for active remote-control sessions [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#45535Fetched 2026-04-09 08:03:08
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Author
Participants
Timeline (top)
labeled ×4

The Claude Code extension for Cursor (and VS Code) shows remote remote-control sessions in the Web tab of the session picker. However, clicking on an active session fails with:

Error: Query closed before response received

The extension "teleports" the session (downloads history + resumes locally) instead of live-connecting to the remote-control server. This makes the Web tab unusable for its primary use case: interacting with a persistent claude remote-control session running on a remote server.

Error Message

LSP server manager shut down successfully Error spawning Claude (on channel nftorcyc7up): Error: Query closed before response received

Root Cause

Root causes

Code Example

Teleport started for session session_01JDmke1vP4tH7MwvDmRMUUY
Fetched 0 log entries for session session_01JDmke1vP4tH7MwvDmRMUUY
Saved teleported session 797c2b62-d1e9-4407-a5cf-f9c1c5ac6a5b with 0 messages
Teleport succeeded for session session_01JDmke1vP4tH7MwvDmRMUUY in 409ms (0 messages)

---

Spawning Claude with SDK query function - cwd: /Users/gustavo_saborio, resume: 797c2b62-d1e9-4407-a5cf-f9c1c5ac6a5b

---

LSP server manager shut down successfully
Error spawning Claude (on channel nftorcyc7up): Error: Query closed before response received
RAW_BUFFERClick to expand / collapse

Description

The Claude Code extension for Cursor (and VS Code) shows remote remote-control sessions in the Web tab of the session picker. However, clicking on an active session fails with:

Error: Query closed before response received

The extension "teleports" the session (downloads history + resumes locally) instead of live-connecting to the remote-control server. This makes the Web tab unusable for its primary use case: interacting with a persistent claude remote-control session running on a remote server.

Setup

  • Remote server: Ubuntu 24.04 VPS running Claude Code v2.1.97
  • Session command: claude remote-control --name vps-claude-session --permission-mode acceptEdits (inside tmux)
  • Local client: Cursor with Claude Code extension v2.1.96 on macOS (Apple Silicon)
  • Web access: Works perfectly via claude.ai/code — can interact with the session in real-time

Reproduction

  1. Start claude remote-control --name "my-session" on a remote Linux server
  2. Verify the session works at claude.ai/code (it does)
  3. Open Cursor → Claude Code extension → click clock icon (session history) → Web tab
  4. The session appears in the list
  5. Click on it → "Error: Query closed before response received"

What happens (from output logs)

Teleport started for session session_01JDmke1vP4tH7MwvDmRMUUY
Fetched 0 log entries for session session_01JDmke1vP4tH7MwvDmRMUUY
Saved teleported session 797c2b62-d1e9-4407-a5cf-f9c1c5ac6a5b with 0 messages
Teleport succeeded for session session_01JDmke1vP4tH7MwvDmRMUUY in 409ms (0 messages)

Then the extension tries to resume locally:

Spawning Claude with SDK query function - cwd: /Users/gustavo_saborio, resume: 797c2b62-d1e9-4407-a5cf-f9c1c5ac6a5b

The local Claude process starts, initializes, then immediately shuts down:

LSP server manager shut down successfully
Error spawning Claude (on channel nftorcyc7up): Error: Query closed before response received

Root causes

  1. Teleport fetches 0 messages from an active session — it can't clone a live session
  2. Tries to resume locally on macOS instead of connecting to the remote server — wrong cwd (/Users/... vs /root), wrong OS, no access to remote filesystem
  3. No live-connect capability — the extension only supports download-and-replay, not bridging to a running remote-control server

Expected behavior

Clicking a remote-control session in the Web tab should live-connect to the remote session (similar to how claude.ai/code does it), not teleport/download it. The remote-control protocol already supports this — the web app proves it works.

Alternatively, if live-connect isn't feasible in the extension, the Web tab should either:

  • Clearly indicate that active sessions can't be teleported
  • Open claude.ai/code in the browser for that session

Environment

  • Extension version: 2.1.96 (Cursor, darwin-arm64)
  • Remote CLI version: 2.1.97
  • OS: macOS (client) / Ubuntu 24.04 (server)

extent analysis

TL;DR

The Claude Code extension should be updated or modified to support live-connecting to remote-control sessions instead of attempting to teleport them.

Guidance

  • Verify that the remote-control session is correctly configured and accessible via claude.ai/code to ensure the issue is with the extension.
  • Check the extension's documentation and settings to see if there are any options for enabling live-connect or bridging to remote-control servers.
  • Consider updating the extension to the latest version or waiting for a patch that addresses this issue, as the remote CLI version is already newer than the extension version.
  • If live-connect is not feasible, the extension could be modified to clearly indicate that active sessions can't be teleported or to open claude.ai/code in the browser for that session.

Example

No code snippet is provided as the issue seems to be related to the extension's functionality and configuration rather than a specific code error.

Notes

The issue seems to be related to the extension's limitation in handling remote-control sessions, and a fix might require updates to the extension's code or configuration. The fact that the web app (claude.ai/code) can live-connect to the remote-control session suggests that the protocol supports this functionality.

Recommendation

Apply a workaround by using claude.ai/code in the browser for interacting with remote-control sessions until the extension is updated to support live-connecting. This ensures that users can still access and interact with their remote sessions while the extension issue is being addressed.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

Clicking a remote-control session in the Web tab should live-connect to the remote session (similar to how claude.ai/code does it), not teleport/download it. The remote-control protocol already supports this — the web app proves it works.

Alternatively, if live-connect isn't feasible in the extension, the Web tab should either:

  • Clearly indicate that active sessions can't be teleported
  • Open claude.ai/code in the browser for that session

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING