#!/usr/bin/env bash
payload="${1:-$(cat)}"
DEFAULT_CODEX_SOUND="<your_sound_here.wav>"
# Set CODEX_CUSTOM_SOUND in your shell config (e.g. ~/.zshrc;~/.bashrc;...) to override the alert path.
CODEX_CUSTOM_SOUND="${CODEX_CUSTOM_SOUND:-$DEFAULT_CODEX_SOUND}"
if command -v jq >/dev/null 2>&1; then
notification_type=$(printf '%s' "$payload" | jq -r '.type // empty')
case "$notification_type" in
"agent-turn-complete")
afplay "$CODEX_CUSTOM_SOUND" 2>/dev/null
;;
*)
;;
esac
else
afplay "$CODEX_CUSTOM_SOUND" 2>/dev/null
fiAdd this to your codex config
notify = ["/Users/<YOUR_USER>/.codex/hooks/notify.sh"]
tui.notifications = truechmod +x notify.sh

Hey @regenrek I found the solution, wow the solution is very simple and I'm not aware of
The notify hook should be placed on TOP 🤦
I was wrong, I placed at bottom, thats the issue
Now working like Charm, Thanks much mate