Title: Store state on remote instead of browser · Issue #4212 · coder/code-server · GitHub
Open Graph Title: Store state on remote instead of browser · Issue #4212 · coder/code-server
X Title: Store state on remote instead of browser · Issue #4212 · coder/code-server
Description: Edit by @code-asher: Storing the state in the browser has (at least) the two following problems: If you switch to another browser you have to open and configure everything all over again (what this issue was originally about). It is impo...
Open Graph Description: Edit by @code-asher: Storing the state in the browser has (at least) the two following problems: If you switch to another browser you have to open and configure everything all over again (what this...
X Description: Edit by @code-asher: Storing the state in the browser has (at least) the two following problems: If you switch to another browser you have to open and configure everything all over again (what this...
Opengraph URL: https://github.com/coder/code-server/issues/4212
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Store state on remote instead of browser","articleBody":"**Edit by @code-asher:** Storing the state in the browser has (at least) the two following problems:\r\n\r\n1. If you switch to another browser you have to open and configure everything all over again (what this issue was originally about).\r\n2. It is impossible to seed the initial state like you could in native VS Code by writing to the JSON state file.\r\n\r\nOriginal issue content follows.\r\n\r\n\u003c!--\r\n\r\nHi there! 👋\r\n\r\nThanks for reporting a bug.\r\n\r\nPlease search for existing issues before filing, as they may contain additional\r\ninformation about the problem and descriptions of workarounds. Provide as much\r\ninformation as you can, so that we can reproduce the issue. Otherwise, we may\r\nnot be able to help diagnose the problem, and may close the issue as\r\nunreproducible or incomplete. For visual defects, please include screenshots to\r\nhelp us understand the issue.\r\n-->\r\n\r\n## OS/Web Information\r\n\r\n- Web Browser: Chrome v91\r\n- Local OS: Windows 10\r\n- Remote OS: Ubuntu 20.04\r\n- Remote Architecture: Debian\r\n- `code-server --version`: 3.12.0\r\n\r\n## Steps to Reproduce\r\n\r\n1. Open a new code server instance in browser and make some changes (eg : hide remote host).\r\n3. Open the same instance in incognito tab.\r\n4. The changed made above will not be reflected, and you have to make those changes again.\r\n\r\n## Expected\r\nTill v3.11 the state of code-server was maintained across browsers. \r\n\r\n\u003c!-- What should happen? -->\r\n\r\n## Actual\r\nThe state is saved local storage instead of server and hence the changes does not reflect on browser changes.\r\n\r\n\u003c!-- What actually happens? -->\r\n\r\n## Notes\r\n`scope === StorageScope.GLOBAL ? 'global' : this.payload.id;` it is in workbench.web.api.js.map\r\nPerhaps it's related to where the state is saved?\r\nFrom discussion : https://github.com/cdr/code-server/discussions/4185\r\n\u003c!-- If you can reproduce the issue on vanilla VS Code,\r\nplease file the issue at the VS Code repository instead. -->","author":{"url":"https://github.com/abhay-ranawat","@type":"Person","name":"abhay-ranawat"},"datePublished":"2021-09-20T23:17:53Z","url":"https://github.com/coder/code-server/issues/4212"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:894589ca-f36d-d1af-aa7d-ccf4748e1c55 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9F32:1201C:2766FA4:345A4B3:6B01A633 |
| html-safe-nonce | f3303a32ef00f4c999182377cbb501a63928e18da5555cfbf2cd573b5c107f4e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjMyOjEyMDFDOjI3NjZGQTQ6MzQ1QTRCMzo2QjAxQTYzMyIsInZpc2l0b3JfaWQiOiI2MzI2NTk0NDczNTY4NjA5ODQzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 022709023ca21403bf2e05316d6992926ed7ff9184f3f64f29f35ccd094e22b4 |
| hovercard-subject-tag | issue:1001549328 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/code-server/4212/issue_layout |
| twitter:image | https://opengraph.githubassets.com/86dc6a04fc3553a8efd7e6424bb6925dbbdc0a970da4a05ef02c294b55763f48/coder/code-server/issues/4212 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/86dc6a04fc3553a8efd7e6424bb6925dbbdc0a970da4a05ef02c294b55763f48/coder/code-server/issues/4212 |
| og:image:alt | Edit by @code-asher: Storing the state in the browser has (at least) the two following problems: If you switch to another browser you have to open and configure everything all over again (what this... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | abhay-ranawat |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/coder/code-server git https://github.com/coder/code-server.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 172953845 |
| octolytics-dimension-repository_nwo | coder/code-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 172953845 |
| octolytics-dimension-repository_network_root_nwo | coder/code-server |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width