Skip to content

Store state on remote instead of browser - #7914

Open
Daywin67 wants to merge 1 commit into
coder:mainfrom
Daywin67:main
Open

Store state on remote instead of browser#7914
Daywin67 wants to merge 1 commit into
coder:mainfrom
Daywin67:main

Conversation

@Daywin67

Copy link
Copy Markdown

Fixes #4212

Problem

Workbench state was stored in browser local storage, so it was not shared between browsers or incognito sessions.

Motivation

The goal is to provide the same persistent development experience as using VS Code on a personal computer, with an identical workspace available from anywhere and from any browser.

Persisting the workbench state on the remote server is important to achieve that experience: settings, authenticated accounts, and other state should follow the remote workspace rather than the local browser.

Solution

Store the relevant state on the remote, restoring the behavior expected by code-server users.

Based on @hefanbo fix proposition. Thanks to him. Link

Test

Testing steps:

  • Flush code-server configuration
  • Open blank vscode server on a first browser. Connect Github Account.
  • Close this browser
  • Open a second vsocde on another computer (or just incognito session)
  • Enjoy the Github account already connected

The same behavior also works with a BYOM provider API key configured in GitHub Copilot.

Tested & deployed on my personal vscode-server self hosted instance.

AI assistance and review

This change was developed with the assistance of an AI coding assistant. I reviewed and tested the implementation on my self-hosted code-server instance running on a NAS.

However, I cannot fully assess all possible side effects or interactions with other code-server features. Community review, testing, and criticism are very welcome, especially regarding compatibility, security, and backward compatibility.

@Daywin67
Daywin67 requested a review from a team as a code owner July 30, 2026 14:54
@Daywin67
Daywin67 marked this pull request as draft July 30, 2026 15:00
@Daywin67
Daywin67 marked this pull request as ready for review July 30, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Store state on remote instead of browser

1 participant