Add notification support for plan mode questions
What version of Codex CLI is running?
codex-cli 0.98.0
What subscription do you have?
Plus
Which model were you using?
gpt-5.3-codex
What platform is your computer?
Darwin 25.2.0 arm64 arm (macOS 26.2, build 25C56)
What terminal emulator and version are you using (if applicable)?
Ghostty 1.3.0-main+6c0e02d11 (channel: tip)
What issue are you seeing?
When Codex asks for request_user_input while I am unfocused, I do not get a desktop notification.
The session then waits for my answer and can appear stalled with no alert.
I have seen this in Codex CLI TUI, and I have noticed similar behavior in Codex app.
I am not sure if this is intentional, so I wanted to confirm and report it.
In codex-rs/tui/src/chatwidget.rs:
self.notify(...)is called for:- turn completion (
AgentTurnComplete) - exec approval (
ExecApprovalRequested) - edit approval (
EditApprovalRequested) - MCP elicitation (
ElicitationRequested) handle_request_user_input_now(...)does not callself.notify(...)
In codex-rs/core/src/codex.rs:
request_user_input(...)sendsEventMsg::RequestUserInput(...)- then waits on
rx_response.await
So the turn remains in progress while waiting for user input, and turn complete notification has not happened yet.
What steps can reproduce the bug?
- Start Codex CLI TUI in a mode where
request_user_inputcan be triggered. - Start an agent turn that reaches
request_user_input. - Move focus away from the terminal.
- Observe that no desktop notification is emitted for the user input request.
- Return to terminal and see the turn waiting for user response.
What is the expected behavior?
When request_user_input is emitted and the terminal or app is unfocused, a notification should fire, similar to other attention requiring events.
Additional information
Suggested fix direction:
- Add a notification path for
request_user_inputin TUI. - Possibly map it to existing
approval-requestednotification type, or add a dedicated type. - If current behavior is intentional, document it explicitly so users know what to expect across CLI and app.
Context:
- Repo:
openai/codex - Area:
codex-rs/tuiandcodex-rs/core - Observed on latest
mainas of 2026-02-08
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗