You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
run_codex_notifier "$fake_path"'{"type":"agent-turn-complete","thread-id":"cli-thread","cwd":"/tmp/demo","client":"codex-exec","last-assistant-message":"CLI event still notifies"}'
84
145
85
-
wait_for_lines "$notification_log"2|| fail "expected two Codex notification deliveries"
86
-
wait_for_lines "$sound_log"2|| fail "expected two Codex sound playbacks"
87
-
wait_for_lines "$HOME/.claude/logs/notifications.log"2|| fail "expected two Codex notification log entries"
146
+
wait_for_lines "$notification_log"3|| fail "expected three Codex notification deliveries"
147
+
wait_for_lines "$sound_log"3|| fail "expected three Codex sound playbacks"
148
+
wait_for_lines "$HOME/.claude/logs/notifications.log"3|| fail "expected three Codex notification log entries"
88
149
89
150
grep -q "Task Complete - demo""$notification_log"|| fail "Codex completion payload did not map to a stop notification"
90
151
grep -q "Input Required - demo""$notification_log"|| fail "Codex permission-like payload did not map to an input-required notification"
152
+
[[ $(wc -l <"$notification_log")-eq 3 ]] || fail "desktop-origin Codex events were not suppressed correctly"
153
+
[[ $(wc -l <"$sound_log")-eq 3 ]] || fail "desktop-origin Codex sound playback was not suppressed correctly"
154
+
[[ $(wc -l <"$HOME/.claude/logs/notifications.log")-eq 3 ]] || fail "desktop-origin Codex log entries were not suppressed correctly"
91
155
92
-
pass "Codex payload parsing maps completion and permission-like payloads to the expected notification types"
156
+
pass "Codex notifies for CLI sessions while suppressing desktop-origin duplicate events"
0 commit comments