JavaScript error in main process - TypeError: h.setProgressBar is not a function
What version of the Codex App are you using (From “About Codex” dialog)?
26.820.7780.0
What subscription do you have?
Pro
What platform is your computer?
Microsoft Windows NT 10.0.29648.0 x64
What issue are you seeing?
A JavaScript error occurred in the main process when handling a download item:
Uncaught Exception:
TypeError: h.setProgressBar is not a function
at DownloadItem.<anonymous> (C:\Program Files\WindowsApps\OpenAI.Codex_26.820.7780.0_x64__2p2nqsd0c76g0\app\resources\...:289603)
at DownloadItem.emit (node:events:508:28)
What steps can reproduce the bug?
- Launch the Codex Desktop application on Windows.
- Trigger an action that initiates an internal download or file save operation. Mine was steering a new message.
- The application throws an "Uncaught Exception" dialog in the main process during the
DownloadItemevent.
<img width="606" height="270" alt="Image" src="https://github.com/user-attachments/assets/31c89d53-a285-414e-b185-ac46c40e124d" />
What is the expected behavior?
The file or asset should open or trigger an action with progress updating smoothly without throwing an Electron main process error dialog.
Additional information
The error indicates that the Electron window/taskbar reference (h) passed to the DownloadItem progress handler is either undefined or missing the setProgressBar method on Windows.
3 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
I’m seeing the same issue on Windows with Codex App version 26.820.7780.0.
It happens consistently when I try to save a generated image using either:
The image displays normally, but the save/download action triggers:
TypeError: h.setProgressBar is not a function
at DownloadItem.<anonymous>
I can reproduce this every time. Screenshot attached.
<img width="767" height="316" alt="Image" src="https://github.com/user-attachments/assets/440ad7c0-8764-4198-b72c-aa85d4ade84a" />
Title: Windows desktop app crashes with “h.setProgressBar is not a function” during downloads
I am using the Codex desktop app on Windows x64.
App version: 26.820.10647.0
Codex version: 151.0.7922.170
When I try to download or save a file from a Codex conversation, the application displays this error:
The error points to a
DownloadItemhandler in the Codex application:The error may appear repeatedly while the download or save operation is in progress.
Expected behavior:
The file should download or save normally without displaying an error dialog.
Actual behavior:
A JavaScript main-process error dialog appears, and the download/save operation may fail or become unreliable.
Steps to reproduce:
Please investigate the Windows download progress handler. It appears that
setProgressBar()is being called on an object that does not provide that method.<img width="598" height="223" alt="Image" src="https://github.com/user-attachments/assets/d3b90985-2e67-425b-9079-3834208ef51e" />