- VSCode Version: 1.112.0
- Local OS Version: macOS 26.3.1
- Remote OS Version: Ubuntu
- Remote Extension/Connection Type: Dev Containers
- Logs: See below
Steps to Reproduce: Start container or reload window
Does this issue occur when you try this locally?: N/A
Does this issue occur when you try this locally and all extensions are disabled?: N/A
When you resume or reload a remote container with certain popular VS Code extensions that depend on Node.js, like bradlc.vscode-tailwindcss or graphql.vscode-graphql, the extension host is terminated, resolveAuthority throws the error Reconnect attempt without old result, and the container fails to load.
The problem is reproducible with or without Node.js installed. It does not reproduce on Codespaces.
Minimum reproduction without Node.js installed:
{
"image": "mcr.microsoft.com/devcontainers/base:ubuntu-24.04@sha256:d94c97dd9cacf183d0a6fd12a8e87b526e9e928307674ae9c94139139c0c6eae",
"customizations": {
"vscode": {
"extensions": ["bradlc.vscode-tailwindcss"]
}
}
}
- Build container
- Reload window once or twice
Result: Extension host is terminated, cannot connect to container.
Once the problem happens, the container must be rebuilt.
The problem is still reproducible with Node.js installed and available to all shells. I've configured a container so that sudo su vscode -c "node --version" returns the system Node.js version, and still the issue occurs on window reload.
I've kept my original message below, but at this point I don't think it adds much.
Original text
Sometimes a dev container enters a state where I can no longer connect to it. It can happen when I start the container or when I reload its window. Based on the logs, it looks like the extension host is terminated just after I connect.
Sometimes I see "Cannot reconnect. Please reload the window." Reload always fails with the same message.
Other times there is no error message, the status bar just shows "Disconnected from Dev Container."
I can reconnect with "Reload with Extensions Disabled", but I'm unable to narrow the cause to a single extension. The issue doesn't always reproduce during an extension bisect; if it does, the bisect tool can't make further changes to the list of enabled extensions, I assume because the extension host is gone.
In the logs, it looks like the extension host starts, then terminates, then starts again. Then resolveAuthority throws the error Reconnect attempt without old result..
I've yet to figure out what triggers the problem and what resolves it. The behaviour is very inconsistent.
I'd appreciate any help troubleshooting this, I'm not sure what to try next.
Extension host log on failed reload
2026-03-20 21:29:57.314 [info] Extension host terminating: renderer closed the MessagePort
2026-03-20 21:29:57.318 [info] Extension host with pid 8194 exiting with code 0
2026-03-20 21:29:57.864 [info] Extension host with pid 8275 started
2026-03-20 21:29:57.864 [info] Skipping acquiring lock for /Users/aaronadams/Library/Application Support/Code/User/workspaceStorage/2258215340f796c8bd15aa94794c94bf.
2026-03-20 21:29:57.864 [info] $getCanonicalURI invoked for authority (dev-container)
2026-03-20 21:29:57.892 [info] ExtensionService#_doActivateExtension ms-vscode-remote.remote-containers, startup: false, activationEvent: 'onResolveRemoteAuthority:dev-container'
2026-03-20 21:29:57.971 [error] PendingMigrationError: navigator is now a global in nodejs, please see https://aka.ms/vscode-extensions/navigator for additional info on this error.
at get (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:810:7210)
at vt (/Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:17:11229)
at qn (/Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:17:7601)
at /Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:17:11074
at ou (/Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:18:7625)
at /Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:20:3161
at Object.l [as use] (/Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:18:13883)
at zae (/Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:18:14787)
at Object.l [as watch] (/Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:18:15016)
at pr (/Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:18:15736)
at q.<computed> [as initialize] (/Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:20:2663)
at e.u [as initialize] (/Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:17:20556)
at /Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:20:13725
at dn (/Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:18:23793)
at $.<computed> [as initialize] (/Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:20:13120)
at t.u [as initialize] (/Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:17:20556)
at Array.<anonymous> (/Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:18:27032)
at ee (/Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:17:12439)
at GN (/Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:18:26996)
at Be (/Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:18:41335)
at k.<computed> (/Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:18:37044)
at Object.initialize (/Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:17:19857)
at /Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:18:54646
at dn (/Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:18:23793)
at r.<computed> [as initialize] (/Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:18:54574)
at t.u [as initialize] (/Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:17:20556)
at ule (/Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:294:3630)
at async aq (/Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:294:3857)
2026-03-20 21:29:57.976 [info] [resolveAuthority(dev-container,1)][0ms] activating remote resolvers dev-container+7b227265706f7369746f727950617468223a2268747470733a2f2f6769746875622e636f6d2f6e6973686572657461696c2f7765622d61707073222c22766f6c756d654e616d65223a227765622d617070732d37366435613362656233646364313138383334353638313664653663346466643665366533343235326565646535306638353362633563623561613666663533222c22666f6c646572223a227765622d61707073222c2273657474696e6773223a7b22636f6e74657874223a226465736b746f702d6c696e7578227d2c22636c6f6e65496e666f223a7b2275726c546f436c6f6e65223a2268747470733a2f2f6769746875622e636f6d2f6e6973686572657461696c2f7765622d61707073227d2c22696e7370656374566f6c756d65223a66616c73657d
2026-03-20 21:29:57.976 [info] [resolveAuthority(dev-container,1)][0ms] activating resolver for dev-container+7b227265706f7369746f727950617468223a2268747470733a2f2f6769746875622e636f6d2f6e6973686572657461696c2f7765622d61707073222c22766f6c756d654e616d65223a227765622d617070732d37366435613362656233646364313138383334353638313664653663346466643665366533343235326565646535306638353362633563623561613666663533222c22666f6c646572223a227765622d61707073222c2273657474696e6773223a7b22636f6e74657874223a226465736b746f702d6c696e7578227d2c22636c6f6e65496e666f223a7b2275726c546f436c6f6e65223a2268747470733a2f2f6769746875622e636f6d2f6e6973686572657461696c2f7765622d61707073227d2c22696e7370656374566f6c756d65223a66616c73657d...
2026-03-20 21:29:57.976 [info] [resolveAuthority(dev-container,1)][0ms] invoking final resolve()...
2026-03-20 21:29:58.977 [info] [resolveAuthority(dev-container,1)][1001ms] waiting...
2026-03-20 21:29:59.979 [info] [resolveAuthority(dev-container,1)][2003ms] waiting...
2026-03-20 21:30:00.978 [info] [resolveAuthority(dev-container,1)][3002ms] waiting...
2026-03-20 21:30:01.559 [info] [resolveAuthority(dev-container,1)][3583ms] setting tunnel factory...
2026-03-20 21:30:01.560 [info] [resolveAuthority(dev-container,1)][3584ms] returned 127.0.0.1:36949
2026-03-20 21:30:02.055 [info] Eager extensions activated
2026-03-20 21:30:02.134 [info] ExtensionService#_doActivateExtension vscode.github-authentication, startup: false, activationEvent: 'onAuthenticationRequest:github'
2026-03-20 21:30:02.144 [info] ExtensionService#_doActivateExtension vscode.microsoft-authentication, startup: false, activationEvent: 'onAuthenticationRequest:microsoft'
2026-03-20 21:30:02.326 [info] Extension host terminating: renderer closed the MessagePort
2026-03-20 21:30:02.332 [info] Extension host with pid 8275 exiting with code 0
2026-03-20 21:30:02.606 [info] Extension host with pid 8423 started
2026-03-20 21:30:02.606 [info] Skipping acquiring lock for /Users/aaronadams/Library/Application Support/Code/User/workspaceStorage/2258215340f796c8bd15aa94794c94bf.
2026-03-20 21:30:02.606 [info] [resolveAuthority(dev-container,2)][0ms] activating remote resolvers dev-container+7b227265706f7369746f727950617468223a2268747470733a2f2f6769746875622e636f6d2f6e6973686572657461696c2f7765622d61707073222c22766f6c756d654e616d65223a227765622d617070732d37366435613362656233646364313138383334353638313664653663346466643665366533343235326565646535306638353362633563623561613666663533222c22666f6c646572223a227765622d61707073222c2273657474696e6773223a7b22636f6e74657874223a226465736b746f702d6c696e7578227d2c22636c6f6e65496e666f223a7b2275726c546f436c6f6e65223a2268747470733a2f2f6769746875622e636f6d2f6e6973686572657461696c2f7765622d61707073227d2c22696e7370656374566f6c756d65223a66616c73657d
2026-03-20 21:30:02.606 [info] [resolveAuthority(dev-container,2)][0ms] activating resolver for dev-container+7b227265706f7369746f727950617468223a2268747470733a2f2f6769746875622e636f6d2f6e6973686572657461696c2f7765622d61707073222c22766f6c756d654e616d65223a227765622d617070732d37366435613362656233646364313138383334353638313664653663346466643665366533343235326565646535306638353362633563623561613666663533222c22666f6c646572223a227765622d61707073222c2273657474696e6773223a7b22636f6e74657874223a226465736b746f702d6c696e7578227d2c22636c6f6e65496e666f223a7b2275726c546f436c6f6e65223a2268747470733a2f2f6769746875622e636f6d2f6e6973686572657461696c2f7765622d61707073227d2c22696e7370656374566f6c756d65223a66616c73657d...
2026-03-20 21:30:02.610 [info] ExtensionService#_doActivateExtension ms-vscode-remote.remote-containers, startup: false, activationEvent: 'onResolveRemoteAuthority:dev-container'
2026-03-20 21:30:02.675 [info] ExtensionService#_doActivateExtension vscode.github-authentication, startup: false, activationEvent: 'onAuthenticationRequest:github'
2026-03-20 21:30:02.682 [info] ExtensionService#_doActivateExtension vscode.microsoft-authentication, startup: false, activationEvent: 'onAuthenticationRequest:microsoft'
2026-03-20 21:30:02.740 [info] [resolveAuthority(dev-container,2)][136ms] invoking final resolve()...
2026-03-20 21:30:02.741 [error] [resolveAuthority(dev-container,2)][136ms] returned an error Reconnect attempt without old result.
2026-03-20 21:30:03.045 [info] Eager extensions activated
Extension host log on successful reload with extensions disabled
2026-03-21 09:45:22.390 [info] Extension host terminating: renderer closed the MessagePort
2026-03-21 09:45:22.396 [info] Extension host with pid 77098 exiting with code 0
2026-03-21 09:45:22.920 [info] Extension host with pid 78223 started
2026-03-21 09:45:22.920 [info] Skipping acquiring lock for /Users/aaronadams/Library/Application Support/Code/User/workspaceStorage/b7c7afa7272bbb8330331e7c8a45d409.
2026-03-21 09:45:22.920 [info] $getCanonicalURI invoked for authority (dev-container)
2026-03-21 09:45:22.923 [info] ExtensionService#_doActivateExtension ms-vscode-remote.remote-containers, startup: false, activationEvent: 'onResolveRemoteAuthority:dev-container'
2026-03-21 09:45:22.999 [error] PendingMigrationError: navigator is now a global in nodejs, please see https://aka.ms/vscode-extensions/navigator for additional info on this error.
at get (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:810:7210)
at vt (/Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:17:11229)
at qn (/Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:17:7601)
at /Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:17:11074
at ou (/Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:18:7625)
at /Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:20:3161
at Object.l [as use] (/Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:18:13883)
at zae (/Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:18:14787)
at Object.l [as watch] (/Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:18:15016)
at pr (/Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:18:15736)
at q.<computed> [as initialize] (/Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:20:2663)
at e.u [as initialize] (/Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:17:20556)
at /Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:20:13725
at dn (/Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:18:23793)
at $.<computed> [as initialize] (/Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:20:13120)
at t.u [as initialize] (/Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:17:20556)
at Array.<anonymous> (/Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:18:27032)
at ee (/Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:17:12439)
at GN (/Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:18:26996)
at Be (/Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:18:41335)
at k.<computed> (/Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:18:37044)
at Object.initialize (/Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:17:19857)
at /Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:18:54646
at dn (/Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:18:23793)
at r.<computed> [as initialize] (/Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:18:54574)
at t.u [as initialize] (/Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:17:20556)
at ule (/Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:294:3630)
at async aq (/Users/aaronadams/.vscode/extensions/ms-vscode-remote.remote-containers-0.447.0/dist/extension/extension.js:294:3857)
2026-03-21 09:45:23.004 [info] [resolveAuthority(dev-container,1)][0ms] activating remote resolvers dev-container+7b227265706f7369746f727950617468223a2268747470733a2f2f6769746875622e636f6d2f6e6973686572657461696c2f7765622d61707073222c22766f6c756d654e616d65223a227765622d617070732d37366435613362656233646364313138383334353638313664653663346466643665366533343235326565646535306638353362633563623561613666663533222c22666f6c646572223a227765622d61707073222c2273657474696e6773223a7b22636f6e74657874223a226465736b746f702d6c696e7578227d2c22696e7370656374566f6c756d65223a66616c73657d
2026-03-21 09:45:23.004 [info] [resolveAuthority(dev-container,1)][0ms] activating resolver for dev-container+7b227265706f7369746f727950617468223a2268747470733a2f2f6769746875622e636f6d2f6e6973686572657461696c2f7765622d61707073222c22766f6c756d654e616d65223a227765622d617070732d37366435613362656233646364313138383334353638313664653663346466643665366533343235326565646535306638353362633563623561613666663533222c22666f6c646572223a227765622d61707073222c2273657474696e6773223a7b22636f6e74657874223a226465736b746f702d6c696e7578227d2c22696e7370656374566f6c756d65223a66616c73657d...
2026-03-21 09:45:23.004 [info] [resolveAuthority(dev-container,1)][0ms] invoking final resolve()...
2026-03-21 09:45:24.007 [info] [resolveAuthority(dev-container,1)][1003ms] waiting...
2026-03-21 09:45:25.008 [info] [resolveAuthority(dev-container,1)][2004ms] waiting...
2026-03-21 09:45:26.007 [info] [resolveAuthority(dev-container,1)][3003ms] waiting...
2026-03-21 09:45:26.101 [info] [resolveAuthority(dev-container,1)][3097ms] setting tunnel factory...
2026-03-21 09:45:26.101 [info] [resolveAuthority(dev-container,1)][3097ms] returned 127.0.0.1:36239
2026-03-21 09:45:26.303 [info] Eager extensions activated
2026-03-21 09:45:26.340 [info] ExtensionService#_doActivateExtension vscode.github-authentication, startup: false, activationEvent: 'onAuthenticationRequest:github'
2026-03-21 09:45:26.353 [info] ExtensionService#_doActivateExtension vscode.microsoft-authentication, startup: false, activationEvent: 'onAuthenticationRequest:microsoft'
2026-03-21 09:45:32.173 [error] Shell server terminated (code: 1, signal: null)
Error response from daemon: No such container: 4a13235c795ad638f35f1a4744bf4657f78df9c4adf6697681762378b6419730
Process list with extensions disabled
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 07:50 ? 00:00:00 /bin/sh -c echo Container started trap "exit 0" 15 exec "$@" while sleep 1 & wait $!; do :; done -
root 21 0 0 07:50 ? 00:00:00 /bin/sh -c echo "New container started. Keep-alive process started." ; export VSCODE_REMOTE_CONTAINERS_SESSION=ee42efd1-71aa-41b9-af35-4e16a48f08f217740
vscode 27 0 0 07:50 ? 00:00:00 /bin/sh
root 33 21 0 07:50 ? 00:00:00 /bin/sh
root 106 0 0 07:50 ? 00:00:00 /bin/sh
vscode 112 0 0 07:50 ? 00:00:00 /bin/sh
vscode 148 112 0 07:50 ? 00:00:00 /home/vscode/.vscode-server/bin/07ff9d6178ede9a1bd12ad3399074d726ebe6e43/node /tmp/vscode-remote-containers-server-1a7e1169-a953-4672-9e27-78c1bb82fe0c.
vscode 210 0 0 07:50 ? 00:00:00 sh /home/vscode/.vscode-server/bin/07ff9d6178ede9a1bd12ad3399074d726ebe6e43/bin/code-server --log debug --force-disable-user-env --server-data-dir /home
vscode 224 210 2 07:50 ? 00:00:02 /vscode/vscode-server/bin/linux-arm64/07ff9d6178ede9a1bd12ad3399074d726ebe6e43/node /vscode/vscode-server/bin/linux-arm64/07ff9d6178ede9a1bd12ad3399074d
vscode 292 0 0 07:50 ? 00:00:00 /home/vscode/.vscode-server/bin/07ff9d6178ede9a1bd12ad3399074d726ebe6e43/node -e ????const net = require('net'); ????const fs = require('fs'); ????proc
vscode 319 0 0 07:50 ? 00:00:00 /home/vscode/.vscode-server/bin/07ff9d6178ede9a1bd12ad3399074d726ebe6e43/node -e ????const net = require('net'); ????const fs = require('fs'); ????proc
vscode 331 224 3 07:50 ? 00:00:03 /vscode/vscode-server/bin/linux-arm64/07ff9d6178ede9a1bd12ad3399074d726ebe6e43/node /vscode/vscode-server/bin/linux-arm64/07ff9d6178ede9a1bd12ad3399074d
vscode 373 224 2 07:50 ? 00:00:02 /vscode/vscode-server/bin/linux-arm64/07ff9d6178ede9a1bd12ad3399074d726ebe6e43/node --dns-result-order=ipv4first /vscode/vscode-server/bin/linux-arm64/0
vscode 401 373 0 07:50 ? 00:00:00 /vscode/vscode-server/bin/linux-arm64/07ff9d6178ede9a1bd12ad3399074d726ebe6e43/node /vscode/vscode-server/bin/linux-arm64/07ff9d6178ede9a1bd12ad3399074d
vscode 446 224 0 07:50 ? 00:00:00 /vscode/vscode-server/bin/linux-arm64/07ff9d6178ede9a1bd12ad3399074d726ebe6e43/node /vscode/vscode-server/bin/linux-arm64/07ff9d6178ede9a1bd12ad3399074d
vscode 465 446 0 07:50 pts/0 00:00:00 /usr/bin/zsh -i
root 1044 1 0 07:51 ? 00:00:00 sleep 1
vscode 1052 465 0 07:51 pts/0 00:00:00 ps -ef
Dev container config
{
"name": "web-apps",
"image": "mcr.microsoft.com/devcontainers/base:ubuntu-24.04@sha256:d94c97dd9cacf183d0a6fd12a8e87b526e9e928307674ae9c94139139c0c6eae",
"runArgs": ["--sysctl", "net.ipv6.conf.all.disable_ipv6=1"],
"customizations": {
"vscode": {
"extensions": [
"anthropic.claude-code",
"bierner.github-markdown-preview",
"bradlc.vscode-tailwindcss",
"dbaeumer.vscode-eslint",
"github.vscode-github-actions",
"graphql.vscode-graphql",
"irongeek.vscode-env",
"ms-fast.fast-tagged-templates",
"oxc.oxc-vscode",
"redhat.vscode-yaml",
"tamasfe.even-better-toml",
"timonwong.shellcheck",
"unifiedjs.vscode-mdx"
]
}
},
"containerEnv": {
"VOLTA_FEATURE_PNPM": "1"
},
"features": {
"ghcr.io/jakejarvis/devcontainer-features/volta:1.0.0": {}
},
"updateContentCommand": "volta install node pnpm"
}
Steps to Reproduce: Start container or reload window
Does this issue occur when you try this locally?: N/A
Does this issue occur when you try this locally and all extensions are disabled?: N/A
When you resume or reload a remote container with certain popular VS Code extensions that depend on Node.js, like bradlc.vscode-tailwindcss or graphql.vscode-graphql, the extension host is terminated,
resolveAuthoritythrows the errorReconnect attempt without old result, and the container fails to load.The problem is reproducible with or without Node.js installed. It does not reproduce on Codespaces.
Minimum reproduction without Node.js installed:
{ "image": "mcr.microsoft.com/devcontainers/base:ubuntu-24.04@sha256:d94c97dd9cacf183d0a6fd12a8e87b526e9e928307674ae9c94139139c0c6eae", "customizations": { "vscode": { "extensions": ["bradlc.vscode-tailwindcss"] } } }Result: Extension host is terminated, cannot connect to container.
Once the problem happens, the container must be rebuilt.
The problem is still reproducible with Node.js installed and available to all shells. I've configured a container so that
sudo su vscode -c "node --version"returns the system Node.js version, and still the issue occurs on window reload.I've kept my original message below, but at this point I don't think it adds much.
Original text
Sometimes a dev container enters a state where I can no longer connect to it. It can happen when I start the container or when I reload its window. Based on the logs, it looks like the extension host is terminated just after I connect.
Sometimes I see "Cannot reconnect. Please reload the window." Reload always fails with the same message.
Other times there is no error message, the status bar just shows "Disconnected from Dev Container."
I can reconnect with "Reload with Extensions Disabled", but I'm unable to narrow the cause to a single extension. The issue doesn't always reproduce during an extension bisect; if it does, the bisect tool can't make further changes to the list of enabled extensions, I assume because the extension host is gone.
In the logs, it looks like the extension host starts, then terminates, then starts again. Then
resolveAuthoritythrows the errorReconnect attempt without old result..I've yet to figure out what triggers the problem and what resolves it. The behaviour is very inconsistent.
I'd appreciate any help troubleshooting this, I'm not sure what to try next.
Extension host log on failed reload
Extension host log on successful reload with extensions disabled
Process list with extensions disabled
Dev container config
{ "name": "web-apps", "image": "mcr.microsoft.com/devcontainers/base:ubuntu-24.04@sha256:d94c97dd9cacf183d0a6fd12a8e87b526e9e928307674ae9c94139139c0c6eae", "runArgs": ["--sysctl", "net.ipv6.conf.all.disable_ipv6=1"], "customizations": { "vscode": { "extensions": [ "anthropic.claude-code", "bierner.github-markdown-preview", "bradlc.vscode-tailwindcss", "dbaeumer.vscode-eslint", "github.vscode-github-actions", "graphql.vscode-graphql", "irongeek.vscode-env", "ms-fast.fast-tagged-templates", "oxc.oxc-vscode", "redhat.vscode-yaml", "tamasfe.even-better-toml", "timonwong.shellcheck", "unifiedjs.vscode-mdx" ] } }, "containerEnv": { "VOLTA_FEATURE_PNPM": "1" }, "features": { "ghcr.io/jakejarvis/devcontainer-features/volta:1.0.0": {} }, "updateContentCommand": "volta install node pnpm" }