Title: Webview asset requests escape to vscode-cdn.net (real DNS) instead of being service-worker-intercepted; renderer-internal retry flood crashes the render process, freezing all same-site tabs · Issue #7892 · coder/code-server · GitHub
Open Graph Title: Webview asset requests escape to vscode-cdn.net (real DNS) instead of being service-worker-intercepted; renderer-internal retry flood crashes the render process, freezing all same-site tabs · Issue #7892 · coder/code-server
X Title: Webview asset requests escape to vscode-cdn.net (real DNS) instead of being service-worker-intercepted; renderer-internal retry flood crashes the render process, freezing all same-site tabs · Issue #7892 · coder/code-server
Description: Is there an existing issue for this? I have searched the existing issues (closest related: #3410 — webview resources stuck pending in some browser/OS combos; overlapping symptom but no renderer-crash chain) OS/Web Information Web Browser...
Open Graph Description: Is there an existing issue for this? I have searched the existing issues (closest related: #3410 — webview resources stuck pending in some browser/OS combos; overlapping symptom but no renderer-cra...
X Description: Is there an existing issue for this? I have searched the existing issues (closest related: #3410 — webview resources stuck pending in some browser/OS combos; overlapping symptom but no renderer-cra...
Opengraph URL: https://github.com/coder/code-server/issues/7892
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Webview asset requests escape to vscode-cdn.net (real DNS) instead of being service-worker-intercepted; renderer-internal retry flood crashes the render process, freezing all same-site tabs","articleBody":"## Is there an existing issue for this?\n\n- [x] I have searched the existing issues (closest related: #3410 — webview resources stuck pending in some browser/OS combos; overlapping symptom but no renderer-crash chain)\n\n## OS/Web Information\n\n- Web Browser: Brave 150.1.92.139 (official build, Chromium 150, Wayland)\n- Local OS: Pop!_OS Linux (kernel 7.0.11-76070011-generic, x86_64)\n- Remote OS: Linux (Podman container, behind Caddy reverse proxy, HTTPS/wss)\n- Remote Architecture: amd64\n- `code-server --version`: 1.127.0 1e6ed874e3138141a5636f6e0dbe8570aa6cd001\n\n## Summary\n\nIntermittently — apparently a race — webview resource requests are **not intercepted by the webview service worker** and instead go to the virtual hostname `vscode-cdn.net` (`main.vscode-cdn.net` at the network layer, `vscode-resource.vscode-cdn.net` in console captures) via **real DNS**, failing with `net::ERR_NAME_NOT_RESOLVED`. The failed requests retry in a tight loop inside the renderer, the shared render process's pending-request pool exhausts (`FetchEvent ... resulted in a network error response: insufficient resources` for *all* fetches), and the render process eventually **crashes** (\"Render process gone\" in DevTools). Because all same-site code-server tabs share that render process, every open tab freezes simultaneously.\n\nThe trigger extension in our setup is OpenAI Codex (`openai.chatgpt`, 26.5707.31428 and 26.5707.41301) — the heaviest webview here, auto-opening its panel in every window — but the interception failure appears to be host-side. We are filing a companion report against the extension for its unbounded retry behavior.\n\n## Steps to Reproduce\n\n1. Codex extension enabled; its panel webview auto-opens per window.\n2. Open ~6 concurrent tabs to the same code-server host in one Chromium profile (same-site → shared render process).\n3. On the 6th tab: renderer dies; all tabs freeze. DevTools on any of them reports \"Debugging connection was closed. Reason: Render process gone.\"\n\nAlso reproduces spontaneously with fewer long-lived tabs after hours (race-dependent), and enabling the extension in a live window has frozen all tabs instantly. With the extension disabled, the same workload is stable indefinitely (A/B verified both directions).\n\n## Expected\n\nWebview asset requests are always served by the webview service worker / same-origin route; a webview-heavy extension cannot take down the shared render process for every tab.\n\n## Actual\n\nWebview asset requests intermittently escape to `vscode-cdn.net` via real DNS and fail; the renderer-internal retry flood exhausts the process and crashes it, freezing all same-site tabs at once.\n\n## Evidence\n\n- **Browser-process netlog (`chrome://net-export`) spanning a deterministic crash** (survives renderer death): real DNS lookups for `main.vscode-cdn.net` — a virtual hostname that should never reach DNS — failing `ERR_NAME_NOT_RESOLVED` at the crash moment and recurring from the zombie tab afterward; 6 webview `pre/index.html` spinups in ~30 s preceding the crash. Notably the netlog shows **no network-service-level flood and zero `ERR_INSUFFICIENT_RESOURCES`** — the exhaustion is renderer-internal (fetch/SW layer). Server logs during the same window are clean (connections establish, extension hosts launch) — the freeze is entirely client-side. Can share the netlog on request (will scrub cookies/headers).\n- Frozen-tab console capture: storm of `FetchEvent for \u003curl> resulted in a network error response: insufficient resources` (Chromium per-process pending-request cap; cf. GoogleChrome/workbox#2528).\n- Earlier capture during degradation: webview assets failing to `vscode-resource.vscode-cdn.net` with `ERR_NAME_NOT_RESOLVED`, and a `loadResource` listener count growing 175→615+.\n- Healthy-baseline HAR for contrast: **zero** requests to vscode-cdn.net — webview SW intercepting normally (webview `pre/index.html` 200, assets served same-origin).\n- DevTools screenshot of \"Render process gone\" at the moment of freeze.\n- Operational note: restarting code-server to \"fix\" frozen tabs makes it worse — stranded tabs flood `Unknown reconnection token (never seen)` and the reconnect storm re-triggers the exhaustion. Recovery that works: close other same-site tabs first, then reload one.\n\n## Does this bug reproduce in native VS Code?\n\nNot applicable — the failure path (browser webview service worker + shared same-site render process) only exists in web deployments; desktop VS Code doesn't use it.\n\n## Questions for maintainers\n\n- Is there a known race where the webview SW loses registration/claim (or is evicted in long-lived tabs), letting resource requests fall through to the vscode-cdn.net default?\n- Any recommended mitigation (SW re-registration, request retry cap) we can apply server-side?\n","author":{"url":"https://github.com/oohhddaanngg","@type":"Person","name":"oohhddaanngg"},"datePublished":"2026-07-11T20:07:45Z","url":"https://github.com/coder/code-server/issues/7892"}
| 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:d697338e-b6ed-5dba-ce47-c4aade8a915d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9028:25A901:5E2D44:7F82DF:6B044024 |
| html-safe-nonce | 06a6e38f3be1fead0b40aff57b1dbe25dfaef07533efa891ad2341eb89c3e5d7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDI4OjI1QTkwMTo1RTJENDQ6N0Y4MkRGOjZCMDQ0MDI0IiwidmlzaXRvcl9pZCI6Ijc4MjMxMDExNzI3Mzg0NDEyNTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | fdd9b7dc8f2b442f59295a4222e4b4d658636c77fb3994b2227438242f7ea2cd |
| hovercard-subject-tag | issue:4863979789 |
| 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/7892/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2e28ad8da6fc7ce34ce31a6db6f5a70aea22e4b7c219285bdf7b58c94f1db3a3/coder/code-server/issues/7892 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2e28ad8da6fc7ce34ce31a6db6f5a70aea22e4b7c219285bdf7b58c94f1db3a3/coder/code-server/issues/7892 |
| og:image:alt | Is there an existing issue for this? I have searched the existing issues (closest related: #3410 — webview resources stuck pending in some browser/OS combos; overlapping symptom but no renderer-cra... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | oohhddaanngg |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64 |
| 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 | 06dc448a76fe4751ac1db26524aefa3aa3e889a8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width