code-server
code-server copied to clipboard
Workspace not reopened when switching browsers
Description:
When opening a workspace file in code server and then switching to another browser or device code server will not reopen the exact same workspace.
Reproduce
- Open workspace file
- Open code server in a different browser
- Web Browser: Chrome, Safari
- Local OS: macOS 10.15.7 (19H2)
- Remote OS: Ubuntu Server 20.04
- Remote Architecture: amd64
-
code-server --version
: 3.5.0 de41646fc402b968ca6d555fdf2da7de9554d28a
Relates to: https://github.com/cdr/code-server/discussions/2154
I am not sure if this is related to the bug, but opened terminal windows will also be lost :(
Does this still happen in the latest release? I'm not able to reproduce.
Check out https://github.com/cdr/code-server/issues/2276 for persisting terminals.
I was able to reproduce on the latest version.

Not sure if this is a bug or intended bug. Should code-server prompt me to open the workspace or automatically open it?
Wait actually it worked this time for me? Hold on...
Yea nvm I was confused, I tested and it works well.
@ntimo let us know if you can still reproduce on the latest release and I'll reopen.
I can easily reproduce it. When i open it in same browser then it works. Different Profiles in mac or different browsers or different devices it remembers nothing.
OS: Mac Monterey
https://user-images.githubusercontent.com/77270664/139521417-7cfeae99-6e8c-4396-9c7b-3d89d87badaa.mp4
Hi, This bug is very problematic and defeats the main purpose of anyone using code-server in first place. Any update on this?
@code-asher we fixed this in the upcoming release, right?
Actually, I don't know if we tested switching browsers 🤔 Should this work?
I think this should work in the next release.
Great, we'll test when 4.0.1 comes out.
I am pretty sure that I can still reproduce this bug in 4.0.1 too. Let me know if screen record is needed
@bugwheels94 that would be very helpful!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no activity occurs in the next 5 days.
I still have this problem in the latest version 4.11.0. I have a workspace open with terminal windows etc., when I try to access in another browser and the windows/terminals are no longer there.
We are discussing this in some detail here:
https://github.com/coder/code-server/issues/3061#issuecomment-1749307072