Skip to content

Support codex app on macOS (Intel) and Windows#18500

Open
etraut-openai wants to merge 5 commits intomainfrom
etraut/codex-app-x86
Open

Support codex app on macOS (Intel) and Windows#18500
etraut-openai wants to merge 5 commits intomainfrom
etraut/codex-app-x86

Conversation

@etraut-openai
Copy link
Copy Markdown
Collaborator

@etraut-openai etraut-openai commented Apr 18, 2026

Summary

codex app should be a platform-aware entry point for opening Codex Desktop or helping users install it. Before this change, the command only existed on macOS and its default installer URL always pointed at the Apple Silicon DMG, which sent Intel Mac users to the wrong build.

This updates the macOS path to choose the Apple Silicon or Intel DMG based on the detected processor, while keeping --download-url as an advanced override. It also enables codex app on Windows, where the CLI opens an installed Codex Desktop app when available and otherwise opens the Windows installer URL.

@etraut-openai etraut-openai changed the title Select Codex app DMG by Mac processor Fix codex app for Intel Macs Apr 18, 2026
@etraut-openai etraut-openai changed the title Fix codex app for Intel Macs Fix codex app for Intel-based Macs Apr 18, 2026
@etraut-openai etraut-openai changed the title Fix codex app for Intel-based Macs Support platform-specific Codex app installers Apr 18, 2026
@etraut-openai etraut-openai changed the title Support platform-specific Codex app installers Support Codex Desktop install flow on macOS and Windows Apr 18, 2026
@etraut-openai etraut-openai changed the title Support Codex Desktop install flow on macOS and Windows Support codex app on macOS (Intel) and Windows Apr 18, 2026
@fcoury-oai
Copy link
Copy Markdown
Contributor

I am not sure if you were able to test it on Windows but I got the error below even thought he URL opened fine.

image

I learned that in Windows explorer.exe can return error code 1 even if it successfully open the URL.

After fixing that, I found that we had a path canonicalization bug:

image

I opened a PR against your PR with the fix. Be welcome to accept it or implement the fix yourself. With this code it correctly identifies whether it's installed or not, opens either the install URL or the app and displays the correct path.

#18530

image

@etraut-openai
Copy link
Copy Markdown
Collaborator Author

@fcoury-oai , thanks for testing it on Windows. Please feel free to push fixes directly to my branch.

## Summary

This updates the Windows Codex Desktop launcher path handling. Store
URLs now open through PowerShell, while shell app targets still use
Explorer because Explorer can hand off shell targets successfully while
returning a nonzero exit status.

It also normalizes extended Windows workspace paths before printing
follow-up instructions, so users see standard drive and UNC paths after
opening or installing Codex Desktop.

## Validation

- `just fmt`
- `cargo test -p codex-cli`
@etraut-openai
Copy link
Copy Markdown
Collaborator Author

I just merged your PR onto mine!

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.

2 participants