Skip to content

[Windows 26.721.4979.0] ChatGPT Work output preview crashes on null path.win32.dirname #35441

Description

@zhangchenyue888

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: .png and .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

  1. Open an online ChatGPT Work task in the Windows desktop app.
  2. Have the Work task generate an output artifact such as a PNG or Markdown file.
  3. After the task completes, click the artifact in the right-side Outputs panel.
  4. A preview tab opens.
  5. The tab immediately displays Tab content cannot be displayed (localized UI) with a Retry button.
  6. Click Retry; the same error returns.
  7. 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 dirname exception.
  • 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 cwd or 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.win32 object.

Related but not identical issues

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    appIssues related to the Codex desktop appbugSomething isn't workingwindows-osIssues related to Codex on Windows systems

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions