JavaScript error in main process - TypeError: h.setProgressBar is not a function
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 125k
- Forks
- 19.4k
- PR merge metrics
- PR metrics pending
Description
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. (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.
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No repository file or test is named; start by locating the Electron main-process DownloadItem progress handler corresponding to the reported setProgressBar call, then reproduce the download or file-save action on Windows. Done means the action completes without an uncaught main-process exception and progress updates work as expected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- electron, javascript
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100