How to get notified when Codex finishes on Mac

Get a signal when Codex CLI finishes a turn or needs approval on macOS: notify scripts, TUI notifications, and status in your Mac's notch.

Updated View as Markdown

Codex can work for minutes at a time. If you leave its terminal, you need some way to know when the turn is done, or when it stopped to ask before running a command.

This guide covers the options in Codex itself, then how Void Island shows Codex sessions in your Mac's notch.

Option 1: Codex's built-in TUI notifications

Codex's terminal interface has notifications built in. According to the Codex advanced configuration docs, you control them in ~/.codex/config.toml with:

  • tui.notifications: turn them on, optionally filtered by event type.
  • tui.notification_method: auto, osc9 or bel.
  • tui.notification_condition: unfocused (only when the terminal isn't focused) or always.

Whether you see a banner or hear a bell depends on what your terminal does with those escape sequences.

Option 2: a notify script

Codex can also run an external program on supported events. The same docs say only agent-turn-complete is supported for now, and the program receives one JSON argument:

notify = ["python3", "/path/to/notify.py"]

Your script can read the JSON and show a macOS notification, play a sound, or send a push. This is the most flexible option, but you write and maintain the script, and it fires on turn completion only.

Option 3: Codex hooks

Codex can also load lifecycle hooks from ~/.codex/hooks.json (or a project's .codex/hooks.json). Codex only runs hooks you have reviewed and trusted. This is the mechanism Void Island uses.

Option 4: Void Island in the notch

Void Island writes its entries into ~/.codex/hooks.json and shows every Codex session in the notch: running, waiting for an approval, or done.

Set it up

  1. Install Void Island and open it.
  2. In the first-run guide or Settings → AI assistants → Connection, click Connect. Your original hooks.json is backed up first.
  3. Codex has to trust the new hooks. If Settings shows Confirm the Codex hooks, click Trust Hooks. If automatic confirmation fails, trust them by hand: in Codex CLI run /hooks and trust Void Island; in Codex Desktop go to Settings → Hooks.
  4. Start a Codex session. It appears in the notch.

If another tool edits hooks.json later, Codex's trust record no longer matches and it skips the hooks. Void Island tells you and offers Re-confirm.

Pick your alerts

In Settings → AI assistants → Approvals and alerts:

  • Pop up when a session finishes: a completion card on the island that stays until you press Esc or move the pointer in and out.
  • Notify when done: a macOS notification when a terminal session that kept you waiting finishes or fails. Click it to return to that terminal.
  • Stay quiet while recording or sharing the screen: no pop-ups or sounds while the screen is recorded or shared.
  • Bark push: optional pushes to your iPhone through Bark, if you enter your own Bark address.

Press ⌘G or ⌘-click a session to go back to its terminal. See Jump back.

Limits

  • Codex Desktop / the ChatGPT app sends its own system notifications. Void Island shows those sessions on the island and leaves the system notifications to the app. See Codex desktop and ChatGPT.
  • Approvals on the island are off by default. For Codex they are allow or deny only; you can't edit the command. See Approvals and questions.
  • Dangerous commands in Codex sessions are only flagged, not stopped.
  • After the 2-day trial, free mode shows only your current session, its notifications and usage.

More on Codex support: Codex. All alert settings: Notifications.

Common questions

Why doesn't my Codex session show up in Void Island?

Usually because Codex hasn't trusted the hooks yet. Open Settings → AI assistants and click Trust Hooks or Re-confirm, or trust Void Island from /hooks in Codex CLI. See Troubleshooting.

Does Codex's notify fire when it needs approval?

According to OpenAI's docs, notify currently supports agent-turn-complete only. Codex's TUI notifications can be filtered by event type. Void Island shows a waiting approval in the notch as soon as Codex asks.

Will Void Island replace my own notify script?

No. Void Island uses hooks.json, not the notify key, and leaves other hooks alone.

Can I get notified on my phone when Codex is done?

Void Island has no phone app, but Bark push can send finished, failed and approval events to your iPhone through the Bark app.