Codespace keeps disconnecting every few minutes during active development #191556
-
🏷️ Discussion TypeBug BodyMy GitHub Codespace keeps disconnecting randomly every few minutes even when I am actively working in it. This started happening recently and is making it impossible to work on my project consistently. Environment:
What happens: Steps to reproduce:
Expected behavior: Actual behavior: What I have already tried:
Has anyone else experienced this recently or is there a known fix? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
|
Hey! I've seen this issue come up a few times and it's usually one of these causes: 1. Check your Codespace timeout settings Go to your GitHub settings and make sure the idle timeout is set high enough:
Set it to at least 30 minutes to rule out premature disconnections. 2. Try the VS Code Desktop app instead of browser Browser-based Codespaces are more sensitive to network fluctuations. Install VS Code locally and connect via the GitHub Codespaces extension instead: # Install the GitHub Codespaces extension in VS Code desktop
ext install GitHub.codespacesThis alone fixes the disconnection issue for most people. 3. Check your network stability Even if you switched networks, the issue might be packet loss rather than full disconnection. Run this while the codespace is open: ping github.com -tIf you see any request timeouts, your network is dropping packets which breaks the WebSocket connection Codespaces relies on. 4. Disable browser extensions Ad blockers and VPN extensions sometimes interfere with WebSocket connections. Try opening the Codespace in a clean browser profile with no extensions. If none of these work, I'd recommend opening a support ticket directly at github.com/support with your Codespace logs attached since it might be an infrastructure issue on GitHub's end. |
Beta Was this translation helpful? Give feedback.
Hey! I've seen this issue come up a few times and it's usually one of these causes:
1. Check your Codespace timeout settings
Go to your GitHub settings and make sure the idle timeout is set high enough:
Settings → Codespaces → Default idle timeoutSet it to at least 30 minutes to rule out premature disconnections.
2. Try the VS Code Desktop app instead of browser
Browser-based Codespaces are more sensitive to network fluctuations. Install VS Code locally and connect via the GitHub Codespaces extension instead:
# Install the GitHub Codespaces extension in VS Code desktop ext install GitHub.codespacesThis alone fixes the disconnection issue for most people.
3. Check your network stability
E…