René's URL Explorer Experiment


Title: Store state on remote instead of browser by Daywin67 · Pull Request #7914 · coder/code-server · GitHub

Open Graph Title: Store state on remote instead of browser by Daywin67 · Pull Request #7914 · coder/code-server

X Title: Store state on remote instead of browser by Daywin67 · Pull Request #7914 · coder/code-server

Description: 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.

Open Graph Description: 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 developme...

X Description: 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 developme...

Opengraph URL: https://github.com/coder/code-server/pull/7914

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:ea2173e8-a15e-50a2-195f-8fe37e339abc
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCD90:3DA1E8:8FCAC7:BF8104:6B01B4EE
html-safe-nonce63ef92fe5734375cb13b41ea0595743424b05b4ac52c8f3f2a815c83c3076bd5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRDkwOjNEQTFFODo4RkNBQzc6QkY4MTA0OjZCMDFCNEVFIiwidmlzaXRvcl9pZCI6IjcwOTg1OTI5NjY0NjEyMDc3OTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac01ca3b43f493397b2138e2d22567fd0d4b7781c3b5439f98574255c91694dc04
hovercard-subject-tagpull_request:4170466710
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/coder/code-server/pull/7914/files
twitter:imagehttps://avatars.githubusercontent.com/u/57551491?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/57551491?s=400&v=4
og:image:altFixes #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 developme...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/coder/code-server git https://github.com/coder/code-server.git
octolytics-dimension-user_id95932066
octolytics-dimension-user_logincoder
octolytics-dimension-repository_id172953845
octolytics-dimension-repository_nwocoder/code-server
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id172953845
octolytics-dimension-repository_network_root_nwocoder/code-server
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/coder/code-server/pull/7914/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcode-server%2Fpull%2F7914%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcode-server%2Fpull%2F7914%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=coder%2Fcode-server
Reloadhttps://github.com/coder/code-server/pull/7914/files
Reloadhttps://github.com/coder/code-server/pull/7914/files
Reloadhttps://github.com/coder/code-server/pull/7914/files
coderhttps://github.com/coder
code-serverhttps://github.com/coder/code-server
Codehttps://github.com/coder/code-server
Issues147 (147)https://github.com/coder/code-server/issues
Pull requests17 (17)https://github.com/coder/code-server/pulls
Discussionshttps://github.com/coder/code-server/discussions
Actionshttps://github.com/coder/code-server/actions
Projectshttps://github.com/coder/code-server/projects
Security and quality3 (3)https://github.com/coder/code-server/security
Insightshttps://github.com/coder/code-server/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fcoder%2Fcode-server%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fcoder%2Fcode-server%2Fissues%2Fnew%2Fchoose
code-asherhttps://github.com/code-asher
coder:mainhttps://github.com/coder/code-server/tree/main
Daywin67:mainhttps://github.com/Daywin67/code-server/tree/main
Conversation 11 https://github.com/coder/code-server/pull/7914
Commits 1 https://github.com/coder/code-server/pull/7914/commits
Checks 13 https://github.com/coder/code-server/pull/7914/checks
Files changed https://github.com/coder/code-server/pull/7914/files
Please reload this pagehttps://github.com/coder/code-server/pull/7914/files
Store state on remote instead of browser https://github.com/coder/code-server/pull/7914/files#top
Show all changes 1 commit https://github.com/coder/code-server/pull/7914/files
2cffe5b feat: store state on remote instead of browser Daywin67 Sep 8, 2026 https://github.com/coder/code-server/pull/7914/commits/2cffe5b22debddf98400a02352f13fbbedf1c7b2
Clear filters https://github.com/coder/code-server/pull/7914/files
Please reload this pagehttps://github.com/coder/code-server/pull/7914/files
Please reload this pagehttps://github.com/coder/code-server/pull/7914/files
remote-secret-storage.diff https://github.com/coder/code-server/pull/7914/files#diff-f306f5d31197716227b53a44640af56dc7d66050c6dd27747fbb35daba1a348a
remote-storage.diff https://github.com/coder/code-server/pull/7914/files#diff-99fbfd819ca6d5678a38ccd2e393d68700fdd51f09bdc78f031eac6039e802a8
series https://github.com/coder/code-server/pull/7914/files#diff-d6f19469bd3dd1daec926b99bf179ec128fff3631356f24af05320c1827f1e46
cli.ts https://github.com/coder/code-server/pull/7914/files#diff-e1f89aee8992fa7022cc43adb93042f9bbb4b223f0d6cd0e70719cf4b795afa4
cli.test.ts https://github.com/coder/code-server/pull/7914/files#diff-259502f3217ff57aa0efe8405a96d85558f638b6a1a27a3f772f7dda96ddc8f2
https://github.com/coder/code-server/blob/main/.github/CODEOWNERS#L1
patches/remote-secret-storage.diffhttps://github.com/coder/code-server/pull/7914/files#diff-f306f5d31197716227b53a44640af56dc7d66050c6dd27747fbb35daba1a348a
View file https://github.com/Daywin67/code-server/blob/2cffe5b22debddf98400a02352f13fbbedf1c7b2/patches/remote-secret-storage.diff
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/code-server/pull/7914/{{ revealButtonHref }}
https://github.com/coder/code-server/blob/main/.github/CODEOWNERS#L1
patches/remote-storage.diffhttps://github.com/coder/code-server/pull/7914/files#diff-99fbfd819ca6d5678a38ccd2e393d68700fdd51f09bdc78f031eac6039e802a8
View file https://github.com/Daywin67/code-server/blob/2cffe5b22debddf98400a02352f13fbbedf1c7b2/patches/remote-storage.diff
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/code-server/pull/7914/{{ revealButtonHref }}
https://github.com/coder/code-server/blob/main/.github/CODEOWNERS#L1
patches/serieshttps://github.com/coder/code-server/pull/7914/files#diff-d6f19469bd3dd1daec926b99bf179ec128fff3631356f24af05320c1827f1e46
View file https://github.com/Daywin67/code-server/blob/2cffe5b22debddf98400a02352f13fbbedf1c7b2/patches/series
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/code-server/pull/7914/{{ revealButtonHref }}
https://github.com/coder/code-server/pull/7914/files#diff-d6f19469bd3dd1daec926b99bf179ec128fff3631356f24af05320c1827f1e46
https://github.com/coder/code-server/blob/main/.github/CODEOWNERS#L1
src/node/cli.tshttps://github.com/coder/code-server/pull/7914/files#diff-e1f89aee8992fa7022cc43adb93042f9bbb4b223f0d6cd0e70719cf4b795afa4
View file https://github.com/Daywin67/code-server/blob/2cffe5b22debddf98400a02352f13fbbedf1c7b2/src/node/cli.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/code-server/pull/7914/{{ revealButtonHref }}
https://github.com/coder/code-server/pull/7914/files#diff-e1f89aee8992fa7022cc43adb93042f9bbb4b223f0d6cd0e70719cf4b795afa4
https://github.com/coder/code-server/pull/7914/files#diff-e1f89aee8992fa7022cc43adb93042f9bbb4b223f0d6cd0e70719cf4b795afa4
https://github.com/coder/code-server/pull/7914/files#diff-e1f89aee8992fa7022cc43adb93042f9bbb4b223f0d6cd0e70719cf4b795afa4
https://github.com/coder/code-server/pull/7914/files#diff-e1f89aee8992fa7022cc43adb93042f9bbb4b223f0d6cd0e70719cf4b795afa4
https://github.com/coder/code-server/blob/main/.github/CODEOWNERS#L1
test/unit/node/cli.test.tshttps://github.com/coder/code-server/pull/7914/files#diff-259502f3217ff57aa0efe8405a96d85558f638b6a1a27a3f772f7dda96ddc8f2
View file https://github.com/Daywin67/code-server/blob/2cffe5b22debddf98400a02352f13fbbedf1c7b2/test/unit/node/cli.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/code-server/pull/7914/{{ revealButtonHref }}
https://github.com/coder/code-server/pull/7914/files#diff-259502f3217ff57aa0efe8405a96d85558f638b6a1a27a3f772f7dda96ddc8f2
https://github.com/coder/code-server/pull/7914/files#diff-259502f3217ff57aa0efe8405a96d85558f638b6a1a27a3f772f7dda96ddc8f2
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.