Windows desktop: repeated "TypeError: h.setProgressBar is not a function" dialog when saving/downloading files

Open 💬 3 comments Opened Aug 27, 2026 by damonruby333
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

Description

On the ChatGPT/Codex Windows desktop app, any operation that triggers a file download/save (e.g. saving a photo/image inside a Codex session) causes a recurring error dialog: "A JavaScript error occurred in the main process — Uncaught Exception: TypeError: h.setProgressBar is not a function".

The stack points to a DownloadItem event handler, so the app appears to call setProgressBar on an object that doesn't have that method (likely DownloadItem; the actual API is BrowserWindow.setProgressBar).

Environment

  • App version: 26.820.7780.0 (ChatGPT.exe 151.0.7922.170)
  • OS: Windows x64
  • Install source: Microsoft Store (package OpenAI.Codex)

Steps to reproduce

  1. Open the ChatGPT/Codex desktop app on Windows.
  2. Start a Codex session and ask it to save/export an image (or any action that triggers a download via DownloadItem).
  3. The "A JavaScript error occurred in the main process" dialog appears.
  4. Dismissing it with OK does not help; it reappears repeatedly during/after the download.

Expected behavior

No error dialog when saving/downloading files; download progress should be handled gracefully.

Actual behavior

Recurring uncaught TypeError dialog in the main process.

Error text

View original on GitHub ↗

3 Comments

damonruby333 · 1 day ago

Additional observations (possibly related)

  • Logs also show repeated bundled_executable_relocation_failed warnings when relocating the bundled cua_node runtime from the install package to %LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node (errno -4094, syscall copyfile). The target runtime directory stayed empty until copied manually.
  • The app was reset and re-installed via Store; the issue persists.
github-actions[bot] contributor · 1 day ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #40974
  • #40778

Powered by Codex Action

damonruby333 · 1 day ago

<img width="545" height="212" alt="Image" src="https://github.com/user-attachments/assets/5810812f-0f27-444a-aa22-e08ac4522431" />