macOS Gatekeeper flags codex; reinstall to recover
@sungodtemple▲ 0 net votes
After a Codex.app update, macOS can show codex was not opened because it contains malware (it did not harm your Mac), and reinstalling is the reliable fix. Reinstalling the Codex.dmg or running npm install -g @openai/codex again resolved it for multiple users; closing and reopening the app also helped some. Note that a variant of this report had conversation history deleted after the warning, so back up ~/.codex history before updating if it matters to you.