Skip to content

fix: Detect the Codex app as ChatGPT.app - #13

Merged
vlidholt merged 1 commit into
mainfrom
fix/codex-chatgpt-detection
Nov 27, 2026
Merged

vlidholt merged 1 commit into
mainfrom
fix/codex-chatgpt-detection

Conversation

@vlidholt

Copy link
Copy Markdown
Contributor

Problem

The Open in Codex button never appeared, even for projects created with Codex picked. OpenAI merged the Codex desktop app into ChatGPT, so the app is now /Applications/ChatGPT.app, with bundle id com.openai.codex, and it handles codex:// links. App Studio was looking for Codex.app, which doesn't exist.

Change

  • _EditorApp takes extra names to look for (alsoNamed) and a bundleId that a match must have. Codex now looks for ChatGPT.app first, then Codex.app, and checks com.openai.codex.
  • The bundle id check is needed because an older ChatGPT.app is the chat-only app (com.openai.chat), which can't handle codex://. Only the XML Info.plist is read. A binary plist reads as no match, which only costs that app its button.
  • findApp now also takes the bundle id, so tests can fake it. There are two new tests: one finds Codex as ChatGPT.app and checks the bundle id it asked for, the other still finds a Codex.app.

Antigravity: no change

I checked Antigravity.app 2.9.1 again. It doesn't accept folders as documents, it only looks for a link in its launch arguments, and its one deep link is antigravity://teleport/ai_studio?blob_id=…&signature=…, which imports an AI Studio project. There's no way to hand it a local folder, so Open in Antigravity keeps going to Antigravity IDE. This is written down in AGENTS.md.

Testing

  • flutter test test/session/ passes.
  • Read the bundle ids from the real apps on a Mac: ChatGPT.app → com.openai.codex.
  • Not checked in the running app.

🤖 Generated with Claude Code

OpenAI folded the Codex desktop app into ChatGPT: the bundle is
`ChatGPT.app`, identifier `com.openai.codex`, and it claims `codex:`.
App Studio looked for `Codex.app`, found nothing, and never drew the
button. An editor can now list other names and a bundle id; the id is
checked because an older `ChatGPT.app` is the chat-only
`com.openai.chat`, which has no `codex:` scheme. `Codex.app` is still
tried for a copy from before the rename.

Also records that Antigravity.app 2.9.1 still cannot be handed a local
folder (its one deep link is an AI Studio import), so Antigravity keeps
opening through Antigravity IDE.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vlidholt
vlidholt merged commit 6fd413e into main Nov 27, 2026
3 checks passed
@vlidholt vlidholt mentioned this pull request Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant