openai / openai/codex

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

Open
#41,115 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

app bug windows-os
Dominant language
Rust
Stars
125k
Forks
19.4k
PR merge metrics
PR metrics pending

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Search the desktop app codebase for the DownloadItem event handler and calls to setProgressBar, then reproduce a file save or download on Windows. Confirm which object owns the progress-bar API and verify that downloads complete without a recurring JavaScript error dialog.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, javascript
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.