Skip to content

Webviews blank in WSL window after 1.141.1 (401 on vscode-resource requests); works on 1.140 #11906

Closed as duplicate

Description

@sdrroberts

Title: Webviews blank in WSL window after 1.141.1 (401 on vscode-resource requests); works on 1.140

  • VSCode Version: 1.141.1 (broken); 1.140 works. Server commit in the broken state: 7baac39ec3ca969dab74ac12c097f6a486e46593. Client commit: About, if you have it>
  • Local OS Version: Windows 10.0.26200
  • Remote OS Version: Ubuntu 24.04.1 LTS, WSL2 6.18.54.1-microsoft-standard-WSL2
  • Remote Extension/Connection Type: WSL (Remote - WSL 0.104.3, distro "Ubuntu")
  • Logs: see below. Screenshot of the webview developer tools console attached.

Summary

After VS Code auto-updated to 1.141.1, all webviews in a WSL window render blank: the built-in Markdown preview and the Claude Code extension panel. Rolling back to 1.140 fixes it with no other change.

The webview developer tools console shows net::ERR_ABORTED 401 (Unauthorized) for every resource request from vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net, for both built-in and third-party extension files, for example:

  • .../extensions/markdown-language-features/media/markdown.css
  • .../extensions/markdown-language-features/media/index.js
  • .../extensions/markdown-math/notebook-out/katex.min.js
  • .../extensions/anthropic.claude-code-2.1.296-linux-x64/webview/index.js

The requests target the correct, running server commit (7baac39...), so this does not look like a wrong-path or stale-server problem.

Steps to Reproduce:

  1. On Windows with VS Code 1.141.1, run code . from a WSL shell to open a WSL window.
  2. Open any .md file and run "Markdown: Open Preview" (or open any other extension webview).
  3. The preview is blank. Open "Developer: Open Webview Developer Tools" and see the 401 errors above.

What I tried (no change):

  • Deleted Cache, CachedData, and GPUCache in %APPDATA%\Code
  • Renamed %APPDATA%\Code to get a fresh Windows profile
  • Renamed ~/.vscode-server to get a fresh server install
  • pgrep -af vscode-server shows a single server, a single connection token, and no stale processes
  • wsl --shutdown and relaunch; WSL is up to date; no .wslconfig file

Does this issue occur when you try this locally?: No. A plain Windows window on a Windows folder (code . from cmd) renders the Markdown preview correctly on 1.141.1.

Does this issue occur when you try this locally and all extensions are disabled?: N/A, it works locally with extensions enabled.

Other notes:

  • Not yet tested in the Insiders build.
  • Not yet tested with all extensions disabled in the WSL window.
  • 1.141.1 is the security-fix release for 1.141. I don't know whether the cause is in 1.141.0 or only in 1.141.1.
Image

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions