Skip to content

# Codex extension fails to start: "The extension couldn't load its resources" #37458

Closed

Description

@YeNai-ShaoXianChao

Description

The Codex panel fails to start after opening VSCode and shows:

Codex could not start. The extension couldn't load its resources.

Environment

  • OS: Windows x64
  • VSCode: 1.132.0 (commit df53daabb18cd157bdb08c7f01c34df936cf12f4)
  • Extension: openai.chatgpt 26.803.41515 (win32-x64)
  • Extension installed/updated: 2026-08-07

Steps to reproduce

  1. Open VSCode.
  2. Open the Codex sidebar or panel.
  3. Wait about 30 seconds; the error "Codex couldn't load its resources." appears.

Console output (Developer Tools)

Key error lines:

index.html?id=...&extensionId=openai.chatgpt...
Loading the font 'data:font/woff2;base64,...' violates the following Content Security Policy directive: "font-src 'self' https://*.vscode-cdn.net". The action has been blocked.
...
Codex couldn't load its resources.

Troubleshooting already tried

  • Developer: Reload Window
  • Fully quit and restart VSCode
  • Uninstall and reinstall the Codex extension
  • Cleared %APPDATA%\Code\Service Worker\CacheStorage and ScriptCache
  • Tried to roll back the extension version, but "Install Another Version..." failed with "Error while downloading VSIX: Canceled"

Additional analysis

From the extension source, initializeWebview sets a 30-second startup timeout for the webview and requires a ready message within that window. If VSCode's CSP blocks the data:font resource, the frontend may fail to initialize and trigger this error. Please confirm compatibility between 26.803.41515 and VSCode 1.132.0, and consider whether the webview's data:font should be served differently.

Pinned by alexr-oai

Activity

  1. added
    bug
    extension
    windows-os
    on Aug 7, 2026
  2. YeNai-ShaoXianChao commented on Aug 7, 2026

    @YeNai-ShaoXianChao
    Author

    Regression in openai.chatgpt 26.803.41515: Codex panel fails to load resources

    Summary

    After updating to openai.chatgpt 26.803.41515, the Codex panel fails to start with:

    Codex could not start. The extension couldn't load its resources.

    Rolling back to openai.chatgpt 26.5730.61639 fixes the issue, so this appears to be a regression introduced in 26.803.41515.

    Environment

    • OS: Windows x64
    • VSCode: 1.132.0 (commit df53daabb18cd157bdb08c7f01c34df936cf12f4)
    • Broken version: openai.chatgpt 26.803.41515 (win32-x64)
    • Working version: openai.chatgpt 26.5730.61639
    • Extension update date: 2026-08-07

    Steps to reproduce

    1. Update Codex to version 26.803.41515.
    2. Open VSCode and open the Codex sidebar or panel.
    3. Wait about 30 seconds; the error "Codex couldn't load its resources." appears.

    Console output (Developer Tools)

    Key error lines:

    index.html?id=...&extensionId=openai.chatgpt...
    Loading the font 'data:font/woff2;base64,...' violates the following Content Security Policy directive: "font-src 'self' https://*.vscode-cdn.net". The action has been blocked.
    ...
    Codex couldn't load its resources.
    

    Troubleshooting already tried

    • Developer: Reload Window
    • Fully quit and restart VSCode
    • Uninstall and reinstall the extension
    • Cleared %APPDATA%\Code\Service Worker\CacheStorage and ScriptCache
    • Rolled back to 26.5730.61639 by installing the VSIX directly: Codex works normally again

    Additional analysis

    From the extension source, initializeWebview sets a 30-second startup timeout for the webview and requires a ready message within that window. If VSCode's CSP blocks the data:font resource, the frontend may fail to initialize and trigger this error. Please confirm compatibility between 26.803.41515 and VSCode 1.132.0, and consider whether the webview's data:font should be served differently.

  3. STliuEN commented on Aug 7, 2026

    @STliuEN

    I can independently reproduce this issue on Windows.

    Environment

    • OS: Windows x64
    • VS Code version: 1.132.0
    • VS Code commit: df53daabb18cd157bdb08c7f01c34df936cf12f4
    • Affected Codex extension: openai.chatgpt 26.803.41515

    Behavior

    The issue started immediately after the Codex extension was automatically updated on August 7, 2026.

    Opening the Codex panel displays:

    Codex could not start
    The extension couldn't load its resources.

    The webview requests React rendering but does not send the expected ready message within approximately 30 seconds. The Codex log then reports:

    Webview did not finish starting
    

    Diagnostics performed

    I performed the following checks:

    • Reproduced the issue using a completely clean and isolated VS Code profile.
    • Compared the installed extension directory with the signed VSIX package.
    • All 4,516 files were present, and the core resource hashes matched.
    • Clearing the normal VS Code and extension state did not resolve the issue.
    • Similar network-related errors are also present in an older working version, so those errors do not appear to be the direct cause.
    • A data:font CSP warning is present. For diagnostic purposes, I tested with the CSP restriction bypassed locally, but the webview still timed out.

    This does not appear to be caused by an incomplete or corrupted extension installation.

    The CSP warning may be relevant, but bypassing it did not resolve the startup timeout, so I cannot confirm CSP as the root cause.

    This appears to be a regression in the Windows webview initialization or compatibility behavior introduced in version 26.803.41515.

    Workaround

    Downgrading to an earlier Codex extension version restores normal operation.

    Related report

    Another user reported the same two-line startup error here:

    #3801 (comment)

    Screenshot

  4. williamIIliu commented on Aug 8, 2026

    @williamIIliu

    I also get this issue on my linux cloud platform

  5. hugebenevolence commented on Aug 8, 2026

    @hugebenevolence

    Hi I found out that theres a solution for this one!

    I have the same problem, and this solution have solved it. And this problem may be failed by authentication so we just remove the authen file btw ^^

    • First, get into the .codex folder which has been placed in your user's folder, for example "C:\Users<your_account>.codex"
    • Then, remove the "auth.json" file, and restart your ide and it solved!!

    Hope that would help you guys!

  6. M-Kepler commented on Aug 8, 2026

    @M-Kepler

    +1

  7. TheKrush commented on Aug 8, 2026

    @TheKrush

    I'm getting this as well and the previous comment about deleting the auth.json doesn't fix it

    26.803.41515 release can help anyone affected get working again until the latest version is fixed.

  8. Jamie502 commented on Aug 8, 2026

    @Jamie502

    Environment: Windows (VSCode) → Remote-SSH → Ubuntu 22.04
    Broken: 26.803.41515 | Working: 26.727.40816

    Logs:

    text
    [error] Request failed error={"code":-32603,"message":"No such file or directory (os error 2)"} method=fs/readFile
    [error] [CodexWebviewProvider] Webview did not finish starting extensionVersion=26.803.41515 role=sidebar
    Workaround: Downgrade to 26.727.40816 fixes it.

    Same regression on Remote-SSH as Windows native. The fs/readFile error suggests local file init fails before network.After downgrading, the fs/readFile error still appears but does NOT block Codex startup anymore. The fatal issue is specifically the webview timeout in 26.803.41515. This error seems to be a separate non-fatal issue (possibly codex-core trying to read a missing plugin file). The real regression in 26.803.41515 is the webview initialization timeout.

  9. xy200303 commented on Aug 8, 2026

    @xy200303

    我发现解决办法是开启VPN代理就行,感觉是codex请求国外某些资源

  10. AustineSamuel commented on Aug 8, 2026

    @AustineSamuel

    Description

    The Codex panel fails to start after opening VSCode and shows:

    Codex could not start. The extension couldn't load its resources.

    Environment

    • OS: Windows x64
    • VSCode: 1.132.0 (commit df53daabb18cd157bdb08c7f01c34df936cf12f4)
    • Extension: openai.chatgpt 26.803.41515 (win32-x64)
    • Extension installed/updated: 2026-08-07

    Steps to reproduce

    1. Open VSCode.
    2. Open the Codex sidebar or panel.
    3. Wait about 30 seconds; the error "Codex couldn't load its resources." appears.

    Console output (Developer Tools)

    Key error lines:

    index.html?id=...&extensionId=openai.chatgpt...
    Loading the font 'data:font/woff2;base64,...' violates the following Content Security Policy directive: "font-src 'self' https://*.vscode-cdn.net". The action has been blocked.
    ...
    Codex couldn't load its resources.
    

    Troubleshooting already tried

    • Developer: Reload Window
    • Fully quit and restart VSCode
    • Uninstall and reinstall the Codex extension
    • Cleared %APPDATA%\Code\Service Worker\CacheStorage and ScriptCache
    • Tried to roll back the extension version, but "Install Another Version..." failed with "Error while downloading VSIX: Canceled"

    Additional analysis

    From the extension source, initializeWebview sets a 30-second startup timeout for the webview and requires a ready message within that window. If VSCode's CSP blocks the data:font resource, the frontend may fail to initialize and trigger this error. Please confirm compatibility between 26.803.41515 and VSCode 1.132.0, and consider whether the webview's data:font should be served differently.

    Fixed

    i Faced the same error but i was able to fix it by doing these

    1. cmd shift X
    2. scroll to codex and click gear icons on codex
    3. click install previouse version
    4. select the second version on the list
  11. AustineSamuel commented on Aug 8, 2026

    @AustineSamuel

    i Faced the same error but i was able to fix it by doing these

    1. cmd shift X
    2. scroll to codex and click gear icons on codex
    3. click install previouse version
    4. select the second version on the list
  12. Ahmed-Hafez commented on Aug 9, 2026

    @Ahmed-Hafez

    I also have the same issue

  13. congmng commented on Aug 9, 2026

    @congmng

    i return to version about 1 month before and solve the problem

  14. 36 remaining items

  15. FreeCodeCampXYG commented on Aug 13, 2026

    @FreeCodeCampXYG

    Thanks for testing this so thoroughly. This result rules out the stale asset namespace and JavaScript modulepreload hypotheses for this machine. The fallback was applied correctly, but the failure still occurs before any renderer milestone reaches the extension host.

    是这样的错误信息:

    workbench.desktop.main.js:sourcemap:442 INFO [AgentHost:renderer] Acquiring MessagePort to agent host...
    workbench.desktop.main.js:sourcemap:442 INFO [AgentHost:renderer] MessagePort acquired, creating client...
    workbench.desktop.main.js:sourcemap:442 INFO Started local extension host with pid 4556.
    workbench.desktop.main.js:sourcemap:442 ERR Extension 'Tencent-Cloud.coding-copilot CANNOT USE these API proposals 'inlineCompletionsAdditions, findFiles2, terminalSelection, findTextInFiles, terminalExecuteCommandEvent, textDocumentChangeReason, extensionsAny'. You MUST start in extension development mode or use the --enable-proposed-api command line flag
    pG @ workbench.desktop.main.js:sourcemap:442
    workbench.desktop.main.js:sourcemap:442 ERR [vscode.mermaid-markdown-features]: Extension 'vscode.mermaid-markdown-features' CANNOT use 'legacyToolReferenceFullNames' without the 'chatParticipantPrivate' API proposal enabled
    pG @ workbench.desktop.main.js:sourcemap:442
    workbench.desktop.main.js:sourcemap:5781 Unrecognized feature: 'local-network-access'.
    _createElement @ workbench.desktop.main.js:sourcemap:5781
    workbench.desktop.main.js:sourcemap:5781 An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.
    mountTo @ workbench.desktop.main.js:sourcemap:5781
    workbench.desktop.main.js:sourcemap:442 INFO [AgentHost:renderer] Protocol connection established; clientId=3de6ddb3-820a-4497-b6d2-c47f54d13ab7
    workbench.desktop.main.js:sourcemap:442 INFO [AccountPolicyGate] apply: state=inactive, reason=undefined, isRestricted=false
    workbench.desktop.main.js:sourcemap:442 INFO Settings Sync: Account status changed from uninitialized to unavailable
    index.html?id=1aa5925d-db96-40d3-8692-9b0840507bea&parentId=1&origin=6bc90693-3892-470d-b14a-e59fe721495a&swVersion=6&extensionId=openai.chatgpt&platform=electron&vscode-resource-base-authority=vscode-resource.vscode-cdn.net&parentOrigin=vscode-file%3A%2F%2Fvscode-app&purpose=webviewView:1038 Unrecognized feature: 'local-network-access'.
    (anonymous) @ index.html?id=1aa5925d-db96-40d3-8692-9b0840507bea&parentId=1&origin=6bc90693-3892-470d-b14a-e59fe721495a&swVersion=6&extensionId=openai.chatgpt&platform=electron&vscode-resource-base-authority=vscode-resource.vscode-cdn.net&parentOrigin=vscode-file%3A%2F%2Fvscode-app&purpose=webviewView:1038
    workbench.desktop.main.js:sourcemap:442 ERR [Extension Host] (node:4556) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
    (Use Code --trace-deprecation ... to show where the warning was created)
    pG @ workbench.desktop.main.js:sourcemap:442
    workbench.desktop.main.js:sourcemap:1095 [Extension Host] (node:4556) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
    (Use Code --trace-deprecation ... to show where the warning was created)
    COi @ workbench.desktop.main.js:sourcemap:1095
    workbench.desktop.main.js:sourcemap:442 INFO [AgentHost] No token resolved for resource: https://api.github.com
    workbench.desktop.main.js:sourcemap:442 ERR [Extension Host] (node:4556) [DEP0169] DeprecationWarning: url.parse() behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for url.parse() vulnerabilities.
    pG @ workbench.desktop.main.js:sourcemap:442
    workbench.desktop.main.js:sourcemap:1095 [Extension Host] (node:4556) [DEP0169] DeprecationWarning: url.parse() behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for url.parse() vulnerabilities.
    COi @ workbench.desktop.main.js:sourcemap:1095
    workbench.desktop.main.js:sourcemap:1095 [Extension Host] [AcpMessageRouter] postConstruct called, agentManagerService available: true
    workbench.desktop.main.js:sourcemap:1095 [Extension Host] [AcpMessageRouter] subscribeToMessages called, agentManagerService: true
    workbench.desktop.main.js:sourcemap:1095 [Extension Host] [AcpMessageRouter] Subscribing to messageport messages (early)
    workbench.desktop.main.js:sourcemap:1095 [Extension Host] [Inline Chat] decorations disabled
    workbench.desktop.main.js:sourcemap:442 INFO [AgentHost] No token resolved for resource: https://api.github.com
    workbench.desktop.main.js:sourcemap:442 INFO [AgentHost] No token resolved for resource: https://api.github.com/repos
    workbench.desktop.main.js:sourcemap:442 INFO [AgentHost] No token resolved for resource: https://api.github.com/repos
    workbench.desktop.main.js:sourcemap:442 INFO [AgentHost] No token resolved for resource: https://api.github.com
    workbench.desktop.main.js:sourcemap:1095 [Extension Host] [MemoryManager] preload global config: enabled=true, localMemoryEnabled=false, updatedAt=2026-07-22T01:39:19.880Z
    workbench.desktop.main.js:sourcemap:442 INFO [AgentHost] No token resolved for resource: https://api.github.com
    workbench.desktop.main.js:sourcemap:442 INFO [AgentHost] No token resolved for resource: https://api.github.com/repos
    index.html?id=1aa5925d-db96-40d3-8692-9b0840507bea&parentId=1&origin=6bc90693-3892-470d-b14a-e59fe7…:1 Loading the font 'data:font/woff2;base64,d09GMgABAAAAAA4oAA4AAAAAHbQAAA3TAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAgRQIDgmcDBEICo1oijYBNgIkA14LMgAEIAWJAAeBHAyBHBvbGiMRdnO0IkRRkiYDgr9KsJ1NUAf2kILNxgUmgqIgq1P89vcbIcmsQbRps3vCcXdYOKSWEPEKgZgQkprQQsxIXUgq0DqpGKmIvrgkeVGtEQD9DzAO29fM9jYhxZEsL2FeURH2JN4MIcTdO049NCVdxQ/w9NrSYFEBKTDKpLKfNkCGDc1RwjZLQcm3vqJ2UW9Xfa3tgAHz6ivp6vgC2yD4/6352ndnN0X0TL7seypkjZlMsjmZnf0Mm5Q+JykRWQBKCVCVPbARPXWyQtb5VgLB6Biq7/Uixcj2WGqdI8tGSgkuRG+t910GKP2D7AQH0DB9FMDW/obJZ8giFI3Wg8Cvevz0M+5m0rTh7XDBlvo9Y4vm13EXmftt...mCahLsdlyA5fdQkRSan9LgnnLEyGSkaKJCJog0wAgvepWBt80+1yKln1bMVtCljfNWDueKLsWwaEbBSfSPTEmVRsUcYYMnEjcjeyCZzBXK9E9BYBXLKjOSpUDR+nEV3TFSUdQaz+ot98QxgXwx0GQ+EEUAKB2qZPkQQ0GqFD8UPFMqyaCHM24BZmSGic9EYMagKizOw9Hz50DMrDLrqqLkTAhplMictiCAx5S3BIUQdeJeLnBy2CNtMfz6cV4u8XKoFZQesbf9YZiIERiHjaNodDW6LgcirX/mPnJIkBGDUpTBhSa0EIr38D5hCIszhCM8URGBqImoWjpvpt1ebu/v3Gl3qJfMnNM+9V+kiRFyROTPHQWOcs1dNW94/ukKMPZBvDi55i5CttdeJz84DLngLqjcdwEZ87bFFR8CIG35OAkDVN6VRDZ7aq67NteYqZ2lpT8oYB2CytoBd6VuAx4WgiAsnuj3WohG+LugzXiQRDeM3XYXlULv4dp5VFYC' violates the following Content Security Policy directive: "font-src 'self' https://*.vscode-cdn.net". The action has been blocked.
    workbench.desktop.main.js:sourcemap:442 INFO [AgentHost] No token resolved for resource: https://api.github.com/repos
    app-initial-CM3BD-Et.js:10 Uncaught SyntaxError: Unexpected identifier 'cloud'
    workbench.desktop.main.js:sourcemap:1095 [Extension Host] [EnhancedMonitor] crashLogsDir not configured, crash monitoring disabled
    workbench.desktop.main.js:sourcemap:1095 [Extension Host] [AcpMessageRouter] initialize called, already initialized: false , subscribed: true
    workbench.desktop.main.js:sourcemap:1095 [Extension Host] [AcpMessageRouter] already subscribed, skipping
    workbench.desktop.main.js:sourcemap:1095 [Extension Host] [AcpMessageRouter] Bridge initialized
    workbench.desktop.main.js:sourcemap:1095 [Extension Host] [AgentManagerService] vscode.agentManager is not available
    COi @ workbench.desktop.main.js:sourcemap:1095
    workbench.desktop.main.js:sourcemap:1095 [Extension Host] [BillingService] User not logged in, skipping usage notification check
    workbench.desktop.main.js:sourcemap:1095 [Extension Host] [Inline Chat] decorations disabled
    workbench.desktop.main.js:sourcemap:1095 [Extension Host] [Inline Chat] decorations disabled
    workbench.desktop.main.js:sourcemap:1095 [Extension Host] WebviewInfoService activate() called - DEBUG
    workbench.desktop.main.js:sourcemap:1095 [Extension Host] WebviewInfoService commands registered extensionContext: true
    workbench.desktop.main.js:sourcemap:1095 [Extension Host] 🔍[AgentManagerService] activate called, already initialized: false
    workbench.desktop.main.js:sourcemap:1095 [Extension Host] [AgentManagerService] vscode.agentManager is NOT available
    COi @ workbench.desktop.main.js:sourcemap:1095
    workbench.desktop.main.js:sourcemap:1095 [Extension Host] [AgentManagerService] MessagePort channel initialized
    workbench.desktop.main.js:sourcemap:1095 [Extension Host] StartNewChatCommand init undefined
    workbench.desktop.main.js:sourcemap:1095 [Extension Host] InlineChatIDEDecorationProvider activated
    workbench.desktop.main.js:sourcemap:1095 [Extension Host] [Inline Chat IDE] Initializing decorations
    workbench.desktop.main.js:sourcemap:1095 [Extension Host] [Inline Chat] decorations enabled
    workbench.desktop.main.js:sourcemap:442 INFO [perf] Render performance baseline is 10ms
    workbench.desktop.main.js:sourcemap:1095 [Extension Host] [Inline Chat] decorations disabled
    workbench.desktop.main.js:sourcemap:1095 [Extension Host] rejected promise not handled within 1 second: Error: Git model not found
    COi @ workbench.desktop.main.js:sourcemap:1095
    workbench.desktop.main.js:sourcemap:1095 [Extension Host] stack trace: Error: Git model not found
    at xs.getAPI (d:\Programs\Microsoft VS Code\a5b5009513\resources\app\extensions\git\dist\main.js:115:33022)
    at c:\Users\xiaoy.vscode\extensions\tencent-cloud.coding-copilot-4.10.35413651\out\extension\index.js:1:1479636
    COi @ workbench.desktop.main.js:sourcemap:1095
    workbench.desktop.main.js:sourcemap:1126 [vscode.git]Git model not found
    $onExtensionRuntimeError @ workbench.desktop.main.js:sourcemap:1126
    workbench.desktop.main.js:sourcemap:1126 Error: Git model not found
    at xs.getAPI (d:\Programs\Microsoft VS Code\a5b5009513\resources\app\extensions\git\dist\main.js:115:33022)
    at c:\Users\xiaoy.vscode\extensions\tencent-cloud.coding-copilot-4.10.35413651\out\extension\index.js:1:1479636
    $onExtensionRuntimeError @ workbench.desktop.main.js:sourcemap:1126
    workbench.desktop.main.js:sourcemap:442 ERR An unknown error occurred. Please consult the log for more details.
    pG @ workbench.desktop.main.js:sourcemap:442
    workbench.desktop.main.js:sourcemap:1095 [Extension Host] [EnhancedMonitor] crashLogsDir not configured, crash monitoring disabled
    workbench.desktop.main.js:sourcemap:442 INFO Auto updating outdated extensions. anthropic.claude-code
    workbench.desktop.main.js:sourcemap:442 ERR [Extension Host] (node:4556) [DEP0152] DeprecationWarning: Custom PerformanceEntry accessors are deprecated. Please use the detail property.
    pG @ workbench.desktop.main.js:sourcemap:442
    workbench.desktop.main.js:sourcemap:1095 [Extension Host] (node:4556) [DEP0152] DeprecationWarning: Custom PerformanceEntry accessors are deprecated. Please use the detail property.
    COi @ workbench.desktop.main.js:sourcemap:1095
    workbench.desktop.main.js:sourcemap:442 INFO [AccountPolicyGate] apply: state=inactive, reason=undefined, isRestricted=false
    workbench.desktop.main.js:sourcemap:1095 [Extension Host] [DataFilter] Total: 1 → 0 (dropped: 1)
    workbench.desktop.main.js:sourcemap:1095 [Extension Host] Created lock file at C:\Users\xiaoy.claude\ide\10840.lock
    workbench.desktop.main.js:sourcemap:1095 [Extension Host] Set CLAUDE_CODE_SSE_PORT=10840 in terminal environment (in-memory)
    workbench.desktop.main.js:sourcemap:1095 [Extension Host] [DataFilter] Total: 3 → 0 (dropped: 3)
    workbench.desktop.main.js:sourcemap:5781 Using standard dev tools to debug iframe based webview
    workbench.desktop.main.js:sourcemap:5413 Codex couldn't load its resources.
    onDidChangeNotification @ workbench.desktop.main.js:sourcemap:5413
    (anonymous) @ workbench.desktop.main.js:sourcemap:5413
    _deliver @ workbench.desktop.main.js:sourcemap:433
    _deliverQueue @ workbench.desktop.main.js:sourcemap:433
    fire @ workbench.desktop.main.js:sourcemap:433
    addNotification @ workbench.desktop.main.js:sourcemap:1234
    notify @ workbench.desktop.main.js:sourcemap:2107
    (anonymous) @ workbench.desktop.main.js:sourcemap:1139
    _showMessage @ workbench.desktop.main.js:sourcemap:1139
    $showMessage @ workbench.desktop.main.js:sourcemap:1139
    _doInvokeHandler @ workbench.desktop.main.js:sourcemap:5457
    _invokeHandler @ workbench.desktop.main.js:sourcemap:5457
    _receiveRequest @ workbench.desktop.main.js:sourcemap:5457
    _receiveOneMessage @ workbench.desktop.main.js:sourcemap:5457
    (anonymous) @ workbench.desktop.main.js:sourcemap:5457
    _deliver @ workbench.desktop.main.js:sourcemap:433
    fire @ workbench.desktop.main.js:sourcemap:433
    fire @ workbench.desktop.main.js:sourcemap:1141
    (anonymous) @ workbench.desktop.main.js:sourcemap:5472
    workbench.desktop.main.js:sourcemap:1095 [Extension Host] [DataFilter] Total: 69 → 9 (dropped: 60)

  16. shipiyouniao commented on Aug 13, 2026

    @shipiyouniao

    This contains the first actionable renderer error:

    app-initial-CM3BD-Et.js:10 Uncaught SyntaxError: Unexpected identifier 'cloud'
    

    The font CSP warning and the errors from unrelated extensions are not the startup blocker here.

    I reproduced the exact aebe033 fallback against the official 26.803.61601 bundle and checked every JavaScript file modified by the fallback. The generated entry, app-main, and app-initial all pass node --check. For comparison, the deterministic app-initial-CM3BD-Et.js values are:

    official SHA-256: AB49759352A868ADC8BD10B46A6F13E1FB9DDF23E642A9BFABD433394C443070
    patched SHA-256:  3405F01B8387EA1A27370340C2FFA5E427A81A3A93D68F9B42003B9033D05E15
    patched size:     3058542 bytes
    

    The patch to that file only removes the delayed dispatchMessage(ready,{}) expression, and the resulting surrounding syntax is valid locally. We now need to distinguish an on-disk difference from a corrupted/stale Webview response.

    Could you provide these two items?

    1. The SHA-256 and size of the generated assets-cache-bust-*\app-initial-CM3BD-Et.js on the failing installation.
    2. In Webview Developer Tools, click the app-initial-CM3BD-Et.js:10 error and share the exact line/column plus a short redacted excerpt around the highlighted cloud token. In Network, the request URL, status, transferred/resource size, and Response excerpt for that same file would also be useful.

    If the disk hash differs from the value above, the installed generated file was altered. If it matches but the DevTools response does not, the failure is in the VS Code Webview resource/cache path rather than the JavaScript transformation itself.

  17. FreeCodeCampXYG commented on Aug 13, 2026

    @FreeCodeCampXYG

    This contains the first actionable renderer error:

    非常感谢,我自己修好了

    这是我修复的脚本
    Apply-CodexWebviewReadinessFix.zip

    原因如下:

    Result of -ResetAssetGraph test for codex-webview-fix

    Tested commit:

    aebe0339e621b975814e49165d30d4db34e5540f
    

    Environment

    OS: Windows x64
    VS Code: 1.132.1
    Codex extension: openai.chatgpt 26.803.61601
    Authentication: API key mode (credentials and provider URL redacted)
    VS Code/system/proxy environment: no proxy configured during the failed startup
    

    The same machine and configuration work with openai.chatgpt 26.727.40816.

    Pre-application validation

    I audited commit aebe033 and tested it against an isolated extraction of the official 26.803.61601 Windows x64 VSIX.

    Verified results:

    Original asset count: 4,456
    Generated asset count: 4,456
    Static modulepreload links after patch: 0
    Stylesheet links retained: 3
    Dynamic preload dependencies: CSS only
    Generated entry: node --check passed
    Repeated -ResetAssetGraph: idempotent
    Restore: original index hash restored and generated asset directory removed
    Two-level rollback: readiness -> asset fallback -> readiness -> official files passed
    

    Real installation apply output

    Patched openai.chatgpt 26.803.61601 with an isolated asset graph
    Extension: C:\Users\xiaoy\.vscode\extensions\openai.chatgpt-26.803.61601
    Assets: C:\Users\xiaoy\.vscode\extensions\openai.chatgpt-26.803.61601\webview\assets-cache-bust-67fad9723414
    Backup: C:\Users\xiaoy\AppData\Local\CodexWebviewReadinessFix\backups\26.803.61601-20260813-184510-284-c4f94c49
    Restart every VS Code window. Reload affected windows sequentially.
    

    Post-apply checks on the real installation:

    Active extension version: 26.803.61601
    Pinned: true
    Generated namespace exists: true
    Original assets: 4,456
    Isolated assets: 4,456
    Static modulepreloads: 0
    Stylesheets retained: 3
    Old ./assets/ references in index.html: 0
    New namespace references in index.html: 4
    Runtime marker bundle count: 1
    Generated entry node --check: passed
    Extension main: ./out/extension.js
    

    Runtime result

    After fully restarting VS Code, the sidebar still displayed:

    Codex could not start
    The extension couldn't load its resources.
    

    Redacted log excerpt:

    2026-08-13 18:46:04.017 [info] Activating Codex extension
    2026-08-13 18:46:04.017 [info] [CodexMcpConnection] Spawning codex app-server
    2026-08-13 18:46:05.351 [info] [CodexMcpConnection] Initialize received id=1
    2026-08-13 18:46:35.758 [error] [CodexWebviewProvider] Webview did not finish starting extensionVersion=26.803.61601 role=sidebar
    

    Milestone search result:

    React root render requested: NOT PRESENT
    [startup][renderer] webview runtime ready: NOT PRESENT
    app routes mounted: NOT PRESENT
    ready provider mounted: NOT PRESENT
    Webview did not finish starting: PRESENT
    

    No API key, token, custom provider URL, or request query string is included here.

    Interpretation

    The fallback was applied correctly, but the Webview still did not execute far enough to emit any renderer milestone. This suggests that the failure is earlier than the patched runtime and persists even with:

    • a complete copied asset graph;
    • a fresh asset URL namespace;
    • no static JavaScript modulepreload links; and
    • CSS-only dynamic preload dependencies.

    The normal VS Code logs did not contain a specific failed-resource, CSP, modulepreload, or Service Worker error. The next useful evidence likely requires Developer: Open Webview Developer Tools and its Console/Network output, because errors before the webview-to-host log channel initializes are not forwarded to Codex.log.

    Follow-up: Codex desktop fully closed

    I repeated the real-machine test after explicitly excluding interference from the Codex desktop application:

    1. Closed every VS Code window and confirmed Code.exe count was zero.
    2. Confirmed no Codex process from the VS Code extension was running.
    3. Reinstalled official openai.chatgpt 26.803.61601.
    4. Applied -ResetAssetGraph, producing namespace assets-cache-bust-b42322667ada with all 4,456 assets.
    5. Fully exited the Codex desktop application.
    6. Started only VS Code and opened the Codex sidebar.

    The failure remained unchanged:

    2026-08-13 18:53:53.519 [info] [CodexMcpConnection] Initialize received id=1
    2026-08-13 18:54:28.004 [error] [CodexWebviewProvider] Webview did not finish starting extensionVersion=26.803.61601 role=sidebar
    

    Milestones:

    React root render requested: NOT PRESENT
    [startup][renderer] webview runtime ready: NOT PRESENT
    app routes mounted: NOT PRESENT
    ready provider mounted: NOT PRESENT
    Webview did not finish starting: PRESENT
    

    Process timing independently confirms that Codex desktop was not running during the failure:

    VS Code log session created: 2026-08-13 18:53:41
    Webview watchdog fired: 2026-08-13 18:54:28
    Codex desktop restarted afterward: 2026-08-13 18:54:45
    

    Closing Codex desktop therefore does not change this reproduction and rules out desktop/IDE shared IPC as the cause of the pre-entry Webview failure.

    Webview DevTools root cause

    The first fatal Console error from the failing Webview was:

    app-initial-CM3BD-Et.js:10 Uncaught SyntaxError: Unexpected identifier 'cloud'
    

    The earlier local-network-access and font CSP messages were warnings and were not the startup-stopping error.

    The token cloud is valid in the official bundle. The syntax error was caused earlier on the same line by text corruption in the generated asset tree. The official text was:

    `${t.slice(0,ev-1)}…`
    

    The generated file contained:

    `${t.slice(0,ev-1)}鈥}
    

    The ellipsis was decoded through the Windows ANSI code page and the closing backtick was lost, leaving the template literal unterminated. Chromium then reported the next relevant identifier, cloud, as unexpected.

    Environment:

    Windows PowerShell: 5.1.26100.9168
    [System.Text.Encoding]::Default.WebName: gb2312
    VS Code: 1.133.0 x64
    

    The script reads JavaScript and HTML using Get-Content -Raw without an explicit encoding, then writes them as UTF-8. On Windows PowerShell 5.1 this decodes UTF-8 source through the system ANSI code page, corrupting non-ASCII content before it is written.

    A local candidate fix replaces text reads with strict UTF-8 File.ReadAllText:

    $utf8WithoutBom = New-Object System.Text.UTF8Encoding($false)
    $utf8Strict = New-Object System.Text.UTF8Encoding($false, $true)
    
    function Read-Utf8Text {
        param([string]$Path)
        return [System.IO.File]::ReadAllText($Path, $utf8Strict)
    }

    All source-bearing Get-Content -Raw calls are then routed through Read-Utf8Text.

    Isolated validation against the official 26.803.61601 bundle:

    app-initial original bytes: 3,058,573
    app-initial generated bytes: 3,058,542
    byte delta: -31
    ellipsis count, original/generated: 74 / 74
    Unicode replacement characters: 0
    remaining delayed ready dispatches: 0
    runtime-ready marker present: true
    app-initial node --check: passed
    app-main node --check: passed
    generated entry node --check: passed
    

    This explains why the fallback appeared correctly installed yet failed before every renderer milestone: the fallback namespace itself contained a syntactically corrupted route bundle.

  18. shipiyouniao commented on Aug 13, 2026

    @shipiyouniao

    Thanks, this identifies a real bug in the script. Windows PowerShell 5.1 decoded the UTF-8 bundle through the system ANSI code page, corrupting non-ASCII text before rewriting it.

    I merged your fix as codex-webview-fix#1. I also verified both the normal patch and -ResetAssetGraph using Windows PowerShell 5.1 against the official 26.803.61601 bundle:

    • all 74 ellipsis characters are preserved;
    • no Unicode replacement characters are introduced;
    • the generated entry, app-main, and app-initial pass syntax checks;
    • repeated application remains idempotent;
    • restore returns the original file hashes and removes the generated asset tree.

    Your diagnosis and fix were correct. Thanks for tracing the actual response down to the corrupted template literal and contributing the patch.

  19. alexr-oai commented on Aug 13, 2026

    @alexr-oai
    Contributor

    Hi everyone, we just released an update (26.810.41047 stable / 26.5810.41047 pre-release) that fixes the startup watchdog issue. After updating, you should no longer see “The extension couldn’t load its resources” simply because application initialization takes longer than 30 seconds.

    Keep in mind that while the resource-loading error won't appear anymore, if an underlying networking or authentication problem was preventing initialization from completing, that will likely still be the case. If the extension remains stuck after you update, please check your proxy and VPN settings, and then file a bug report. Indefinitely pending account requests will continue to be tracked separately in #37521.

    Thanks again to everyone who reported this issue and shared diagnostic information.

    Note: Windows packages are available through the VS Code Marketplace. Windows packages are not currently available through Open VSX while we work to resolve a package-size publishing issue.

  20. KajiMaCN commented on Aug 26, 2026

    @KajiMaCN

    Hi @alexr-oai, could you please help take a look at this issue and advise on an official fix?

    We are seeing the same user-facing failure again in two Linux Dev Containers (triplet-Comm and PCBGL2):

    Codex could not start
    The extension could not start its user interface.

    Current environment:

    • VS Code 1.134.0 (110a328ea54b42367b803ec53ee0bf52ef26b419)
    • Codex extension openai.chatgpt-26.820.60940-linux-x64
    • Dev Containers 0.466.0 over Remote SSH 0.126.0

    The current failure happens before the extension fully activates. The renderer/remote extension-host logs repeatedly show:

    PendingMigrationError: navigator is now a global in nodejs
    at .../openai.chatgpt-26.820.60940-linux-x64/out/extension.js:1:11415
    

    We verified that only one Codex extension version is registered in each container, the extension files are intact, and SSH/container connectivity is healthy. Enabling extensions.supportNodeGlobalNavigator: true both locally and in each container's remote machine settings appears to be the relevant workaround.

    We also checked the workaround in the earlier comment above. That workaround targets the older webview startup.whenReady() / missing ready handshake. In the current 26.820.60940 bundle, the renderer already has a renderer_ready path, while the extension now fails earlier during Node extension-host loading, so applying the old bundle replacement does not appear appropriate.

    Could you please confirm whether this is a Codex extension compatibility regression with the current VS Code Node extension host, and whether the extension can update its Node/web environment detection so users do not need to enable this compatibility setting manually?

  21. zhoutianrui-tongji commented on Sep 16, 2026

    @zhoutianrui-tongji

    This is how I solved it.
    Open on the machine where VS Code is installed locally:

    Ctrl + Shift + P

    Search:

    Preferences: Configure Runtime Arguments

    It will open argv.json.

    Add:

    {
    "disable-hardware-acceleration": true
    }

  22. danishsshaikh commented on Sep 30, 2026

    @danishsshaikh

    "disable-hardware-acceleration": true

    Thank you @zhoutianrui-tongji, this worked for me.

  23. RealRaven2000 commented on Oct 25, 2026

    @RealRaven2000

    Version: 1.143.1 (user setup)
    Commit: e646868227c3e3a9e3f24277c8c7220be42c0be7
    Date: 2026-10-22T17:23:22Z
    Electron: 43.7.7
    ElectronBuildId: 15743441
    Chromium: 150.0.7871.250
    Node.js: 24.21.0
    V8: 15.0.245.31-electron.0
    @github/copilot: 1.0.100-1
    @github/copilot-sdk: 1.0.23-preview.5
    OS: Windows_NT x64 10.0.19045

    I tried the workaround from @zhoutianrui-tongji but I still cannot start "Codex could not start its user interface"

    2026-10-25 09:38:01.308 [info] Activating Codex extension
    2026-10-25 09:38:01.308 [info] [CodexMcpConnection] Spawning codex app-server
    2026-10-25 09:38:01.308 [warning] [IpcClient] Received broadcast but no handler is configured method=client-status-changed
    2026-10-25 09:38:01.308 [info] [CodexMcpConnection] Initialize received id=1
    2026-10-25 09:39:12.660 [error] [CodexWebviewProvider] Webview renderer did not become ready elapsedMs=30006 extensionVersion=26.1021.22027 reason=renderer_ready_timeout receivedWebviewMessage=false role=sidebar stage=renderer timeoutMs=30000
    2026-10-25 09:45:55.280 [info] Activating Codex extension
    2026-10-25 09:45:55.280 [info] [CodexMcpConnection] Spawning codex app-server
    2026-10-25 09:45:55.280 [warning] [IpcClient] Received broadcast but no handler is configured method=client-status-changed
    2026-10-25 09:45:55.280 [info] [CodexMcpConnection] Initialize received id=1
    2026-10-25 09:46:29.903 [error] [CodexWebviewProvider] Webview renderer did not become ready elapsedMs=30000 extensionVersion=26.1021.22027 reason=renderer_ready_timeout receivedWebviewMessage=false role=sidebar stage=renderer timeoutMs=30000
    2026-10-25 10:12:34.608 [info] Activating Codex extension
    2026-10-25 10:12:34.610 [info] [CodexMcpConnection] Spawning codex app-server
    2026-10-25 10:12:34.610 [warning] [IpcClient] Received broadcast but no handler is configured method=client-status-changed
    2026-10-25 10:12:34.610 [info] [CodexMcpConnection] Initialize received id=1
    2026-10-25 10:13:09.261 [error] [CodexWebviewProvider] Webview renderer did not become ready elapsedMs=30005 extensionVersion=26.1021.22027 reason=renderer_ready_timeout receivedWebviewMessage=false role=sidebar stage=renderer timeoutMs=30000
    2026-10-25 10:13:10.817 [warning] [IpcClient] Received broadcast but no handler is configured method=client-status-changed
  24. alexr-oai commented on Oct 27, 2026

    @alexr-oai
    Contributor

    Note: Windows packages are available through the VS Code Marketplace. Windows packages are not currently available through Open VSX while we work to resolve a package-size publishing issue.

    Closing the loop on my previous comment: the package-size publishing issue with Open VSX has been resolved and Windows users on Open VSX can now get a version with the startup fix too. If you've been waiting for it, please check for extension updates in your editor. Thanks.

  25. empereira commented on Nov 10, 2026

    @empereira

    Hello,

    The error continues to occur in version 26.51021.22027 (extension for vscode 1.145.2).

    Has this been fixed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugextensionwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions