Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VS Code keeps disconnecting if the client device sleeps #413

Open
matifali opened this issue Dec 30, 2024 · 7 comments
Open

VS Code keeps disconnecting if the client device sleeps #413

matifali opened this issue Dec 30, 2024 · 7 comments

Comments

@matifali
Copy link
Member

Hi Team! When using Cursor/VSCode desktop, whenever we close and reopen laptop even for a few seconds, we see a popup Cannot reconnect. Please reload the window. I was wondering if this is expected behavior and if you might be aware of some settings that would make VSCode reconnect more smoothly? I tried changing connect timeout and max reconnection attempts so far but didn't see a difference.

VSCode connection often disconnects even for a slight network issue or if the device sleeps. I am unsure if this is caused by how VSCode handles remote connections as coder ssh <workspace> survives device sleep.

@coder-labeler coder-labeler bot added the help wanted Extra attention is needed label Dec 30, 2024
@matifali matifali added must-do and removed help wanted Extra attention is needed labels Feb 3, 2025
@f0ssel
Copy link
Contributor

f0ssel commented Feb 10, 2025

It is possible that #420 may have solved this issue. @bcpeinhardt said he's going to try to see if he can repro and confirm if this change fixes things.

@f0ssel f0ssel assigned f0ssel and bcpeinhardt and unassigned f0ssel Feb 10, 2025
@bcpeinhardt
Copy link
Collaborator

@bpmct curious why this is marked as blocked?

@bcpeinhardt
Copy link
Collaborator

Leaving as todo in Bugs Board because it doesn't seem to have a Blocked status available.

@bpmct
Copy link
Member

bpmct commented Feb 14, 2025

@matifali told me we are are unable to reproduce and waiting on a user. If we are able to repro, this feel pretty important so don't mean to arbitrarily "block" anything

@matifali matifali assigned Emyrk and unassigned Emyrk Feb 24, 2025
@bcpeinhardt
Copy link
Collaborator

After attempting and failing to reproduce, I'm moving it back to blocked (where it was in the first place) and reaching back out to the customer.

@csibe17
Copy link

csibe17 commented Mar 3, 2025

We are also seeing this problem constantly.
Usually it happens when the device goes to sleep and then wakes up and you try to continue working.
This does not happen with web based VSCode at all, that can immediately reconnect.

Image

@Mikescops
Copy link

I confirm I have the same issue for the past weeks, still going on on 1.5.0. Have to reload the window whenever I leave my computer 5 minutes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants