code-server icon indicating copy to clipboard operation
code-server copied to clipboard

Workspace not reopened when switching browsers

Open ntimo opened this issue 4 years ago • 15 comments

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

  1. Open workspace file
  2. 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

ntimo avatar Oct 06 '20 06:10 ntimo

I am not sure if this is related to the bug, but opened terminal windows will also be lost :(

ntimo avatar Oct 10 '20 11:10 ntimo

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.

code-asher avatar Dec 02 '20 21:12 code-asher

I was able to reproduce on the latest version.

Screen Shot 2021-01-20 at 1 57 52 PM

Not sure if this is a bug or intended bug. Should code-server prompt me to open the workspace or automatically open it?

nhooyr avatar Jan 20 '21 18:01 nhooyr

Wait actually it worked this time for me? Hold on...

nhooyr avatar Jan 20 '21 19:01 nhooyr

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.

nhooyr avatar Jan 20 '21 19:01 nhooyr

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

ghost avatar Oct 30 '21 05:10 ghost

Hi, This bug is very problematic and defeats the main purpose of anyone using code-server in first place. Any update on this?

bugwheels94 avatar Jan 01 '22 09:01 bugwheels94

@code-asher we fixed this in the upcoming release, right?

Actually, I don't know if we tested switching browsers 🤔 Should this work?

jsjoeio avatar Jan 03 '22 17:01 jsjoeio

I think this should work in the next release.

code-asher avatar Jan 04 '22 16:01 code-asher

Great, we'll test when 4.0.1 comes out.

jsjoeio avatar Jan 04 '22 18:01 jsjoeio

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 avatar Jan 17 '22 10:01 bugwheels94

@bugwheels94 that would be very helpful!

jsjoeio avatar Jan 18 '22 17:01 jsjoeio

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.

stale[bot] avatar Jul 17 '22 21:07 stale[bot]

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.

bosmart avatar Mar 23 '23 07:03 bosmart

We are discussing this in some detail here:

https://github.com/coder/code-server/issues/3061#issuecomment-1749307072

spkane avatar Oct 24 '23 22:10 spkane