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
- Open the ChatGPT/Codex desktop app on Windows.
- Start a Codex session and ask it to save/export an image (or any action that triggers a download via DownloadItem).
- The "A JavaScript error occurred in the main process" dialog appears.
- 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.
3 Comments
Additional observations (possibly related)
bundled_executable_relocation_failedwarnings when relocating the bundledcua_noderuntime from the install package to%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node(errno -4094, syscall copyfile). The target runtime directory stayed empty until copied manually.Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
<img width="545" height="212" alt="Image" src="https://github.com/user-attachments/assets/5810812f-0f27-444a-aa22-e08ac4522431" />