Codex: Can’t find variable: DisposableStack
A reported message-submission error in Safari-based Codex contexts.
Quick answer
The Codex Web report quotes “Error submitting message” followed by “Can’t find variable: DisposableStack” in Safari 27 on macOS. A second report concerns the Codex extension inside browser-hosted VS Code. Both involve message submission, but they are different clients. The public reports do not establish a fix for every setup.
What it means
In the Web report, the prompt never submitted; ordinary ChatGPT chat still worked in the same Safari browser. Private Browsing produced the same error for that reporter, so simply switching to a private tab did not solve their case. Record the exact product surface before trying a different browser or changing an extension.
What to try
- Copy the unsent prompt. Note whether you are in Codex Web or Codex inside a web-hosted VS Code window, and record Safari and macOS versions.
- Try another browser or an updated client if one is available to you. Treat this as a comparison, not a proven fix from the cited reports.
- If the error repeats, report the exact two-line message and the client where it appeared. Include whether a regular ChatGPT conversation works in that browser, because one original reporter checked that difference.
User report
The Codex Web reporter used Safari 27.0 on macOS and saw the same submission error in normal and Private Browsing windows. A later issue describes a Codex panel inside browser-hosted VS Code, also opened in Safari. Neither issue shows that reinstalling the standalone desktop app would address these web contexts.
FAQ
Is the message “DisposableStack is not defined”?
The cited Codex Web issue actually shows “Can’t find variable: DisposableStack.” The other report’s title says “is undefined,” while its displayed error also uses “Can’t find variable.” People search with several variants, so this guide accepts them as search terms. When reporting your own case, copy the wording from your screen rather than replacing it with a synonym.
Does it affect all Codex clients?
The two cited cases are Safari-based: one is Codex Web, and the other is the Codex extension inside browser-hosted VS Code. They do not show the same failure in the installed desktop app or CLI. If your client is different, keep the exact environment in your report and do not assume the Safari discussion explains it.
Should I reinstall Codex?
There is no reinstall success reported in these two sources. Save the unsent prompt first. A quick comparison in another browser may tell you more than reinstalling an unrelated client. If the same error appears elsewhere, record both environments and check whether your installed extension has a separate startup message.
Sources
- Original user report: Codex Web Safari issue
- Original user report: Browser-hosted VS Code extension issue