[Windows 26.721.4979.0] ChatGPT Work output preview crashes on null `path.win32.dirname`
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 52/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- javascript, node.js
Research direction
Start by locating the source corresponding to the packaged renderer helper P6i in assets/app-initial-BbEVL4-_.js and trace the preview caller that resolves cwd from the artifact path. Reproduce with an online ChatGPT Work PNG or Markdown output on Windows, then verify that missing cwd or an unsupported path flavor no longer crashes the preview and that the artifact can be previewed or downloaded.
Written by the indexing model from the issue text.
Description
Summary
After updating the Windows ChatGPT/Codex desktop app to AppX package OpenAI.Codex_26.721.4979.0_x64__2p2nqsd0c76g0, output artifacts from an online ChatGPT Work task no longer open in the desktop preview.
Clicking a generated PNG or Markdown output opens the right-side preview tab, but it immediately shows the localized equivalent of:
Tab content cannot be displayed
Retrying produces the same result. The exact same artifacts can be previewed and downloaded from ChatGPT Web and from the mobile app.
This reproduced on two separate Windows computers after both were fully restarted into the same desktop-app version. One laptop initially appeared unaffected because the previous app process had not fully exited after the update; after a complete exit/relaunch, it reproduced there as well.
Environment
Primary reproduction machine:
- Windows 10 Pro
10.0.19045, x64 - Microsoft Store / MSIX package:
OpenAI.Codex_26.721.4979.0_x64__2p2nqsd0c76g0 - Package status:
Ok - Surface: online ChatGPT Work inside a ChatGPT Project
- Artifact types reproduced:
.pngand.md - Artifact URI shape:
sandbox:/workspace/scratch/<redacted-id>/<artifact>
A second Windows laptop running the same updated desktop version reproduces the same failure. Web and mobile remain unaffected.
Steps to reproduce
- Open an online ChatGPT Work task in the Windows desktop app.
- Have the Work task generate an output artifact such as a PNG or Markdown file.
- After the task completes, click the artifact in the right-side Outputs panel.
- A preview tab opens.
- The tab immediately displays
Tab content cannot be displayed(localized UI) with a Retry button. - Click Retry; the same error returns.
- Open the same Work on ChatGPT Web or mobile; the artifact previews/downloads successfully there.
In the desktop conversation body, the corresponding output links may also render as gray/non-clickable text even though the artifacts are valid.
Renderer error
The desktop log records this exception immediately after clicking the output:
TypeError: Cannot read properties of null (reading 'dirname')
at P6i (app://-/assets/app-initial-BbEVL4-_.js:4893:110724)
at pB (app://-/assets/app-initial-BbEVL4-_.js:4893:105207)
The error occurs synchronously, before any artifact-content download or file-read request is observed.
A read-only inspection of the packaged renderer bundle shows the relevant helper in minified form:
function P6i(e) {
return kf(e)
? Ul(e) || Wl(e)
? R6i.default.win32.dirname(e)
: R6i.default.posix.dirname(e)
: null
}
The preview caller uses the equivalent of:
resolvedCwd = cwd ?? P6i(path)
For these cloud Work outputs, the desktop-side item metadata has no local host/cwd. The observed crash is consistent with the fallback path being treated as a Windows/UNC path and calling R6i.default.win32.dirname(...), while R6i.default.win32 is null in this renderer build.
Regression evidence
On the primary machine:
- The current package folder was installed on July 25, 2026.
- Desktop logs from July 18–24 contain many online Work route records but no instances of this
dirnameexception. - After the July 25 update, the same exception appears repeatedly across at least two separate online Work tasks.
- Both Windows machines reproduce only after fully entering the updated app version.
This makes local file corruption, a single project, network access, or a single-computer configuration unlikely.
Expected behavior
- Online Work artifacts should preview and download in the Windows desktop app as they do on Web and mobile.
- Missing
cwdor an unsupported path flavor should not crash the entire preview tab. - The preview should fail soft or normalize the path without dereferencing a null
path.win32object.
Related but not identical issues
- #20662 — same
Cannot read properties of null (reading 'dirname')/path.win32-is-null failure, but in the Windows Settings surface. - #32719 — Windows Markdown and DOCX preview tabs fail while the files remain valid outside the preview.
- #33773 — Windows preview failure caused by losing path/host context.
This report is specifically for online ChatGPT Work output artifacts in Windows desktop 26.721.4979.0.
Privacy note
Project names, artifact names/content, account identifiers, and raw logs are intentionally omitted. A sanitized log excerpt or feedback/session ID can be provided if maintainers need it.
- Dominant language
- Rust
- Stars
- 125k
- Forks
- 19.5k
- Avg merge
- 1m
- Merged PRs (30d)
- 1k
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.
More from openai/codex
-
enhancement remote
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
bug CLI windows-os
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
macOS sandbox blocks hw.optional.arm64 sysctl, causing Flutter to misdetect Apple Silicon as x64 Openbug CLI sandbox
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug CLI TUI
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
CLI config enhancement skills
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
kwakseongjae/auto-hwp#319 ·
-
area:cli bug filter-quality good first issue priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
bevyengine/bevy#25861 ·
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
A-linter
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
oxc-project/oxc#26863 ·