René's URL Explorer Experiment


Title: Extension webview can freeze workbench under large Vite modulepreload burst · Issue #7867 · coder/code-server · GitHub

Open Graph Title: Extension webview can freeze workbench under large Vite modulepreload burst · Issue #7867 · coder/code-server

X Title: Extension webview can freeze workbench under large Vite modulepreload burst · Issue #7867 · coder/code-server

Description: Summary An extension webview that eagerly preloads hundreds of local Vite chunks can freeze the code-server workbench on desktop Chromium-based browsers. I originally investigated this as an OpenAI Codex extension issue: openai/codex#287...

Open Graph Description: Summary An extension webview that eagerly preloads hundreds of local Vite chunks can freeze the code-server workbench on desktop Chromium-based browsers. I originally investigated this as an OpenAI...

X Description: Summary An extension webview that eagerly preloads hundreds of local Vite chunks can freeze the code-server workbench on desktop Chromium-based browsers. I originally investigated this as an OpenAI...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Extension webview can freeze workbench under large Vite modulepreload burst","articleBody":"## Summary\n\nAn extension webview that eagerly preloads hundreds of local Vite chunks can freeze the code-server workbench on desktop Chromium-based browsers.\n\nI originally investigated this as an OpenAI Codex extension issue:\n\n- https://github.com/openai/codex/issues/28726\n- final Codex-side follow-up: https://github.com/openai/codex/issues/28726#issuecomment-4762217105\n\nThe local workaround was applied inside the Codex extension bundle, but the failure path appears to involve code-server's webview resource loading bridge as well. I am filing this here as a closed informational issue because the same class of problem may affect other large extension webviews.\n\n## Environment\n\n- Server OS: Arch Linux\n- code-server: 4.123.0 / VS Code base 1.123.0 at the time of local testing\n- Extension involved: `openai.chatgpt@26.609.30741`, linux-x64\n- Affected clients:\n  - Windows Edge / Chromium-based browsers\n  - Arch Linux Chromium / Chrome-family browsers\n- Less affected client:\n  - Android Samsung Internet against the same code-server instance\n\n## Symptom\n\nOpening the Codex sidebar in code-server caused the browser/workbench UI to freeze shortly after the webview iframe was mounted, before opening any specific thread.\n\nRemoving the extension avoided the freeze.\n\n## Relevant browser console / server log signals\n\nBrowser DevTools showed the freeze path going through workbench webview/resource loading:\n\n```text\npotential listener LEAK detected\ndoReadFileStream\nreadFileStream\nloadResource\n```\n\nThe code-server server log also repeatedly showed:\n\n```text\nRequestStore#acceptReply was called without receiving a matching request\n```\n\nThese messages appeared at the time the sidebar webview was opened.\n\n## Local diagnosis\n\nThe generated Codex webview entry file contained a large Vite dependency preload list:\n\n```text\n~/.local/share/code-server/extensions/openai.chatgpt-26.609.30741-linux-x64/webview/assets/index-CaOlcDW2.js\n```\n\nThe relevant pattern was:\n\n```js\nawait e(() => import(\"./app-main-FqROzk9D.js\"), __vite__mapDeps([0, 1, 2, ... 486]), import.meta.url)\n```\n\nThat meant the extension webview attempted to preload hundreds of local JS/CSS assets as soon as the sidebar webview was mounted.\n\nIn code-server, those local webview asset requests flow through the browser/workbench resource bridge and extension file loading path. On desktop Chromium clients, this appeared to trigger the `readFileStream` / `loadResource` listener leak and `RequestStore#acceptReply` mismatch, then the workbench froze.\n\n## Workaround that fixed the freeze locally\n\nI patched the generated extension webview entry so that only CSS chunks were preloaded, while the hundreds of JS chunks were no longer eagerly preloaded:\n\n```js\n__vite__mapDeps([48,94,136,137,166,189,202,210,232,264,315,320,329,384,387,421,469,484,485,486])\n```\n\nI also removed four static `modulepreload` links from the extension's `webview/index.html`.\n\nResults:\n\n- Desktop Chromium / Edge no longer froze when opening the webview.\n- Android Samsung Internet still rendered the UI correctly.\n- Removing the preload list entirely avoided the desktop freeze but broke the UI on Android because CSS chunks were not loaded early enough.\n- Keeping only CSS preloads preserved rendering while avoiding the desktop freeze.\n\n## Why this may matter for code-server\n\nThis was triggered by the Codex extension, but the hard-freeze failure mode seems broader:\n\n- A large extension webview can issue a burst of hundreds of local asset requests.\n- code-server's webview resource bridge appears able to enter a listener leak / request mismatch / freeze state under that burst.\n- Other large Vite/React extension webviews could potentially hit the same path.\n\nPossible code-server-side mitigations might include:\n\n- throttling or batching webview local-resource requests,\n- improving listener cleanup around `readFileStream` / `loadResource`,\n- making `RequestStore#acceptReply` mismatches fail gracefully,\n- avoiding full workbench freezes when an extension webview preloads too many local resources at once.\n\n## Closing note\n\nI am closing this issue myself because I have a local workaround and cannot provide a minimal standalone reproducer right now. I am leaving the report in case it helps future investigation of code-server's webview resource bridge under large modulepreload bursts.\n","author":{"url":"https://github.com/SMOKE-19","@type":"Person","name":"SMOKE-19"},"datePublished":"2026-06-21T14:34:50Z","url":"https://github.com/coder/code-server/issues/7867"}

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:ac7a790b-fe40-705d-3002-662cd66cd3e1
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCC00:313BCB:E8F3D:142053:6B042F01
html-safe-nonce0acac44818b306b5aa0d515f2a386d5db6493542695c12d2a1aaed66ec4ee9d1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQzAwOjMxM0JDQjpFOEYzRDoxNDIwNTM6NkIwNDJGMDEiLCJ2aXNpdG9yX2lkIjoiNTQ4MTkxMzI5NzA5Nzk5Mzk4NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacf54af171e3546815f83eb22e846d2fa43a5f1ed4f971758e7650ccd2f58be67c
hovercard-subject-tagissue:4710831100
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/7867/issue_layout
twitter:imagehttps://opengraph.githubassets.com/6fd0406fd968526a6264c30dfeb95b618452c1dbcc5121c3c6d2723c6d87c621/coder/code-server/issues/7867
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6fd0406fd968526a6264c30dfeb95b618452c1dbcc5121c3c6d2723c6d87c621/coder/code-server/issues/7867
og:image:altSummary An extension webview that eagerly preloads hundreds of local Vite chunks can freeze the code-server workbench on desktop Chromium-based browsers. I originally investigated this as an OpenAI...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameSMOKE-19
hostnamegithub.com
expected-hostnamegithub.com
Noneb7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e
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
releasec3dd496c3da6ea6b77e69c09279d2b81604654f1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/coder/code-server/issues/7867#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcode-server%2Fissues%2F7867
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%2F7867
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/7867
Reloadhttps://github.com/coder/code-server/issues/7867
Reloadhttps://github.com/coder/code-server/issues/7867
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 requests15 (15)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/7867
New issuehttps://github.com/login?return_to=https://github.com/coder/code-server/issues/7867
Extension webview can freeze workbench under large Vite modulepreload bursthttps://github.com/coder/code-server/issues/7867#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
needs-investigationThis issue needs to be further investigatedhttps://github.com/coder/code-server/issues?q=state%3Aopen%20label%3A%22needs-investigation%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/SMOKE-19
SMOKE-19https://github.com/SMOKE-19
on Jun 21, 2026https://github.com/coder/code-server/issues/7867#issue-4710831100
Codex IDE extension freezes code-server sidebar on desktop Chromium browsers openai/codex#28726https://github.com/openai/codex/issues/28726
Codex IDE extension freezes code-server sidebar on desktop Chromium browsers openai/codex#28726 (comment)https://github.com/openai/codex/issues/28726#issuecomment-4762217105
https://github.com/apps/linear-code
linear-codehttps://github.com/apps/linear-code
on Jun 21, 2026https://github.com/coder/code-server/issues/7867#issuecomment-4762297554
Linear Codehttps://linear.app
DEVEX-504https://linear.app/codercom/issue/DEVEX-504
https://github.com/SMOKE-19
SMOKE-19https://github.com/SMOKE-19
on Jun 21, 2026https://github.com/coder/code-server/issues/7867#issuecomment-4762297735
SMOKE-19https://github.com/SMOKE-19
completedhttps://github.com/coder/code-server/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jun 21, 2026https://github.com/coder/code-server/issues/7867#event-27010428966
coder-labelerhttps://github.com/apps/coder-labeler
bugSomething isn't workinghttps://github.com/coder/code-server/issues?q=state%3Aopen%20label%3A%22bug%22
needs-investigationThis issue needs to be further investigatedhttps://github.com/coder/code-server/issues?q=state%3Aopen%20label%3A%22needs-investigation%22
triageThis issue needs to be triaged by a maintainerhttps://github.com/coder/code-server/issues?q=state%3Aopen%20label%3A%22triage%22
on Jun 21, 2026https://github.com/coder/code-server/issues/7867#event-27010428975
https://github.com/SMOKE-19
SMOKE-19https://github.com/SMOKE-19
on Jun 21, 2026https://github.com/coder/code-server/issues/7867#issuecomment-4763624407
openai/codex#28726https://github.com/openai/codex/issues/28726
SMOKE-19https://github.com/SMOKE-19
on Jun 21, 2026https://github.com/coder/code-server/issues/7867#event-27017443191
zenithwolf1000https://github.com/zenithwolf1000
code-serverhttps://github.com/coder/code-server/issues?q=state%3Aopen%20label%3A%22code-server%22
on Jun 22, 2026https://github.com/coder/code-server/issues/7867#event-27050317854
https://github.com/code-asher
code-asherhttps://github.com/code-asher
on Jun 22, 2026https://github.com/coder/code-server/issues/7867#issuecomment-4773273429
Sign up for freehttps://github.com/signup?return_to=https://github.com/coder/code-server/issues/7867
Sign in to commenthttps://github.com/login?return_to=https://github.com/coder/code-server/issues/7867
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
needs-investigationThis issue needs to be further investigatedhttps://github.com/coder/code-server/issues?q=state%3Aopen%20label%3A%22needs-investigation%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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.