René's URL Explorer Experiment


Title: ntermittent dead renderer-to-extension-host RPC on load: restored workbench state (browser storage) races the web-worker exthost handshake; incognito always healthy · Issue #8051 · coder/code-server · GitHub

Open Graph Title: ntermittent dead renderer-to-extension-host RPC on load: restored workbench state (browser storage) races the web-worker exthost handshake; incognito always healthy · Issue #8051 · coder/code-server

X Title: ntermittent dead renderer-to-extension-host RPC on load: restored workbench state (browser storage) races the web-worker exthost handshake; incognito always healthy · Issue #8051 · coder/code-server

Description: Is there an existing issue for this? I have searched the existing issues OS/Web Information Web Browser: Microsoft Edge (Chromium) on Windows 11 x64 Local OS: Windows 11 x64 Remote OS: Linux (cloud VM) Remote Architecture: x86_64 code-se...

Open Graph Description: Is there an existing issue for this? I have searched the existing issues OS/Web Information Web Browser: Microsoft Edge (Chromium) on Windows 11 x64 Local OS: Windows 11 x64 Remote OS: Linux (cloud...

X Description: Is there an existing issue for this? I have searched the existing issues OS/Web Information Web Browser: Microsoft Edge (Chromium) on Windows 11 x64 Local OS: Windows 11 x64 Remote OS: Linux (cloud...

Opengraph URL: https://github.com/coder/code-server/issues/8051

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ntermittent dead renderer-to-extension-host RPC on load: restored workbench state (browser storage) races the web-worker exthost handshake; incognito always healthy","articleBody":"### Is there an existing issue for this?\n\n- [x] I have searched the existing issues\n\n### OS/Web Information\n\n- Web Browser: Microsoft Edge (Chromium) on Windows 11 x64\n- Local OS: Windows 11 x64\n- Remote OS: Linux (cloud VM)\n- Remote Architecture: x86_64\n- code-server --version: 4.140.0\n\n\n### Steps to Reproduce\n\n1. Use a long-lived normal browser profile that has accumulated site data for the code-server origin (approx 4 MB IndexedDB, actively rewritten during use).\n2. Open or reload http://HOST:10029/?folder=WORKSPACE.\n3. Wait 30-45 s for the workbench to boot.\n4. Broken load: explorer tree and previously open editors are restored, but opening any file fails with \"Cannot open editor because the file cannot be found\"; no extension activates (clangd stops at creating its output channel).\n5. Reload: the next load rolls again and may be healthy; a healthy load then stays healthy.\n6. Open the same URL in incognito (no stored site data): first load is healthy and stays healthy.\n7. Server-side during a broken load: exthost process alive and streaming, eager=0; during a healthy load eager=1. Same server, same minute.\n\n### Expected\n\nEvery page load establishes a working renderer-to-extension-host RPC channel: restored editors open their files and all extensions activate, regardless of how much session state the browser profile holds.\n\n### Actual\n\nOn most loads in a state-rich profile the renderer never answers exthost-initiated RPC for the whole session: extensions hang at activation step 1 and restored editors fail with file-not-found, while the explorer tree (restored from cache) is populated. Loads in incognito/fresh profiles are consistently healthy. Per-load outcome is independent (a race), not persistent corruption.\n\n### Logs\n\n```shell\nBrowser console (broken load):\n[WARNING] The web worker extension host is started in a same-origin iframe!\n[INFO] Creating a socket (renderer-ExtensionHost-...) was successful after 190 ms.\n[INFO] [AgentHost:remote] Connected; clientId=...\n[INFO] [RemoteAgentHost] Reconciling: desired=[], current=[]\n[ERROR] (empty message)   x3\n\nServer side: exthost alive, bidirectional traffic flowing, renderer never replies;\neager=0 (broken) vs eager=1 (healthy).\n\nStatistics, normal profile, single client: 5 loads -> 4 broken\n(20:22, 20:25:27, 20:33, 20:42) / 1 healthy (20:25:13);\nhistorical single-connection sessions 31 broken vs 13 healthy;\nincognito first load healthy.\n\nClient storage: origin IndexedDB approx 4 MB, log file rewritten during use;\nclearing site data produced a healthy run.\n```\n\n### Screenshot/Video\n\n_No response_\n\n### Does this bug reproduce in native VS Code?\n\nI did not test native VS Code\n\n### Does this bug reproduce in VS Code web?\n\nI did not test VS Code web\n\n### Does this bug reproduce in GitHub Codespaces?\n\nI did not test GitHub Codespaces\n\n### Are you accessing code-server over a secure context?\n\n- [ ] I am using a secure context.\n\n### Notes\n\nHypothesis: at boot the workbench (a) wires the message channel to the web-worker extension host (same-origin iframe) and (b) replays restored session state from browser storage; these are not ordered. With a thick restore payload the restore path issues exthost-dependent requests before the renderer reply path is ready and the handshake/reply wiring is lost for that load; the exthost keeps sending RPC nobody answers (eager=0). Without restore state (incognito, fresh profile, after Clear site data) boot does essentially only the handshake and wins consistently.\n\nWorkarounds that change the odds: clear site data for the origin (after saving files); close all editors (Ctrl+K W) before closing/reloading; dedicated lightweight browser profile; wait 30-45 s before judging a reload (fast reloads kill healthy exthosts, observed a host killed at ~11 s).\n\nRelated: #4212 and #7914 (workbench state in browser storage; v4.141.0 adds opt-in --enable-remote-storage). Question: does enabling it remove this trigger, and does it cover extension-owned browser storage (language-server caches, dirty-file backups) as well? Also #7384 (restore triggers unexpected reloads, closed not_planned) and #7391 / #3140 (extensions unusable / unable to activate) look like downstream symptoms.\n\nRequested: order/queue restore-path requests until the reply channel is ready (or retry), and make handshake failure detectable and self-healing instead of a silently dead channel.\n\nCaveat: not tested in native VS Code, vscode web or Codespaces; the three dropdowns are set to \"No\" meaning observed only in code-server.\n\nHappy to provide paired healthy/broken client console logs and server exthost logs with eager values and timelines.","author":{"url":"https://github.com/gkwfhv","@type":"Person","name":"gkwfhv"},"datePublished":"2026-10-09T16:16:32Z","url":"https://github.com/coder/code-server/issues/8051"}

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/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:b4a655da-7219-ae0d-a0ef-efa5d014bc11
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDBA2:19B6A2:84914E:AF1E93:6B01AF05
html-safe-nonce8f0274b8157a1a00f97d951961f57645cff2b398231f01bcb1b73aca7aa9dbe7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQkEyOjE5QjZBMjo4NDkxNEU6QUYxRTkzOjZCMDFBRjA1IiwidmlzaXRvcl9pZCI6IjQwMzMzOTU5ODEyMTgzMjgzMjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac5fce2d0ec5da14d8eb8cec3c3e54c77356f619806c60eb7cc8974d1eb57a748b
hovercard-subject-tagissue:5781217184
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/code-server/8051/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b8f917809ebf210692ce298df14bee6b2856fcdf556e4c34977fb8b0d9c1d569/coder/code-server/issues/8051
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b8f917809ebf210692ce298df14bee6b2856fcdf556e4c34977fb8b0d9c1d569/coder/code-server/issues/8051
og:image:altIs there an existing issue for this? I have searched the existing issues OS/Web Information Web Browser: Microsoft Edge (Chromium) on Windows 11 x64 Local OS: Windows 11 x64 Remote OS: Linux (cloud...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegkwfhv
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/coder/code-server/issues/8051#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcode-server%2Fissues%2F8051
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%2Fissues%2F8051
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=coder%2Fcode-server
Reloadhttps://github.com/coder/code-server/issues/8051
Reloadhttps://github.com/coder/code-server/issues/8051
Reloadhttps://github.com/coder/code-server/issues/8051
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
https://github.com/coder/code-server
New issuehttps://github.com/login?return_to=https://github.com/coder/code-server/issues/8051
New issuehttps://github.com/login?return_to=https://github.com/coder/code-server/issues/8051
ntermittent dead renderer-to-extension-host RPC on load: restored workbench state (browser storage) races the web-worker exthost handshake; incognito always healthyhttps://github.com/coder/code-server/issues/8051#top
bugSomething isn't workinghttps://github.com/coder/code-server/issues?q=state%3Aopen%20label%3A%22bug%22
code-serverhttps://github.com/coder/code-server/issues?q=state%3Aopen%20label%3A%22code-server%22
triageThis issue needs to be triaged by a maintainerhttps://github.com/coder/code-server/issues?q=state%3Aopen%20label%3A%22triage%22
https://github.com/gkwfhv
gkwfhvhttps://github.com/gkwfhv
on Oct 9, 2026https://github.com/coder/code-server/issues/8051#issue-5781217184
http://HOST:10029/?folder=WORKSPACEhttp://HOST:10029/?folder=WORKSPACE
#4212https://github.com/coder/code-server/issues/4212
#7914https://github.com/coder/code-server/pull/7914
#7384https://github.com/coder/code-server/issues/7384
#7391https://github.com/coder/code-server/issues/7391
#3140https://github.com/coder/code-server/issues/3140
gkwfhvhttps://github.com/gkwfhv
bugSomething isn't workinghttps://github.com/coder/code-server/issues?q=state%3Aopen%20label%3A%22bug%22
triageThis issue needs to be triaged by a maintainerhttps://github.com/coder/code-server/issues?q=state%3Aopen%20label%3A%22triage%22
on Oct 9, 2026https://github.com/coder/code-server/issues/8051#event-32891218176
https://github.com/apps/linear-code
linear-codehttps://github.com/apps/linear-code
on Oct 9, 2026https://github.com/coder/code-server/issues/8051#issuecomment-6084779303
Linear Codehttps://linear.app
CODE-78https://linear.app/codercom/issue/CODE-78
https://github.com/code-asher
code-asherhttps://github.com/code-asher
on Oct 9, 2026https://github.com/coder/code-server/issues/8051#issuecomment-6090928620
jeremyruppelhttps://github.com/jeremyruppel
code-serverhttps://github.com/coder/code-server/issues?q=state%3Aopen%20label%3A%22code-server%22
on Oct 12, 2026https://github.com/coder/code-server/issues/8051#event-33059700328
Sign up for freehttps://github.com/signup?return_to=https://github.com/coder/code-server/issues/8051
Sign in to commenthttps://github.com/login?return_to=https://github.com/coder/code-server/issues/8051
bugSomething isn't workinghttps://github.com/coder/code-server/issues?q=state%3Aopen%20label%3A%22bug%22
code-serverhttps://github.com/coder/code-server/issues?q=state%3Aopen%20label%3A%22code-server%22
triageThis issue needs to be triaged by a maintainerhttps://github.com/coder/code-server/issues?q=state%3Aopen%20label%3A%22triage%22
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.