codex - ✅(Solved) Fix plan-mode-prompt TUI notification does not fire for plan-mode clarification questions in codex-cli 0.118.0 [1 pull requests, 1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#17252Fetched 2026-04-10 03:43:23
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×3commented ×1unlabeled ×1

plan-mode-prompt appears broken in codex-cli 0.118.0.

With:

[tui]
notifications = ["user-input-requested", "plan-mode-prompt"]
notification_method = "osc9"

user-input-requested notifications fire correctly, but plan-mode-prompt does not fire when Codex enters the plan-mode clarification questionnaire and waits for input.

Root Cause

plan-mode-prompt appears broken in codex-cli 0.118.0.

With:

[tui]
notifications = ["user-input-requested", "plan-mode-prompt"]
notification_method = "osc9"

user-input-requested notifications fire correctly, but plan-mode-prompt does not fire when Codex enters the plan-mode clarification questionnaire and waits for input.

PR fix notes

PR #17417: Emit plan-mode prompt notifications for questionnaires

Description (problem / solution / changelog)

Addresses #17252

Problem: Plan-mode clarification questionnaires used the generic user-input notification type, so configs listening for plan-mode-prompt did not fire when request_user_input waited for an answer.

Solution: Map request_user_input prompts to the plan-mode-prompt notification and remove the obsolete user-input TUI notification variant.

Changed files

  • codex-rs/tui/src/chatwidget.rs (modified, +14/-35)
  • codex-rs/tui/src/chatwidget/tests/plan_mode.rs (modified, +4/-29)

Code Example

[tui]
notifications = ["user-input-requested", "plan-mode-prompt"]
notification_method = "osc9"

---

codex

---

Before continuing, ask me to choose exactly one option for project priority:
1. speed
2. correctness
3. maintainability
Do not proceed until I answer.

---

codex

---

You are in plan mode. Do not implement anything. Ask me 2-3 clarifying questions before proposing a plan for reorganizing my dotfiles and shell setup.

---

codex --no-alt-screen
RAW_BUFFERClick to expand / collapse

Summary

plan-mode-prompt appears broken in codex-cli 0.118.0.

With:

[tui]
notifications = ["user-input-requested", "plan-mode-prompt"]
notification_method = "osc9"

user-input-requested notifications fire correctly, but plan-mode-prompt does not fire when Codex enters the plan-mode clarification questionnaire and waits for input.

Repro

Control case that works:

codex

Prompt:

Before continuing, ask me to choose exactly one option for project priority:
1. speed
2. correctness
3. maintainability
Do not proceed until I answer.

Observed: desktop notification appears while Codex is waiting.

Failing case:

codex

Prompt:

You are in plan mode. Do not implement anything. Ask me 2-3 clarifying questions before proposing a plan for reorganizing my dotfiles and shell setup.

Observed:

  • Codex enters plan mode
  • renders the Question 1/3 questionnaire UI
  • waits for input
  • no desktop notification appears

Also reproduced with:

codex --no-alt-screen

Environment

  • codex-cli 0.118.0
  • macOS
  • reproduced in Ghostty, iTerm2, and Terminal.app

Expected

When Codex is waiting for input in the plan-mode questionnaire flow, plan-mode-prompt should fire a TUI notification.

Notes

PR #13495 says it added plan-mode-prompt and manually tested plan mode. In my testing, the notification pipeline works for user-input-requested, but not for this plan-mode flow. That suggests either:

  • a regression, or
  • plan-mode-prompt is not emitted for the Question 1/3 questionnaire path

extent analysis

TL;DR

The plan-mode-prompt notification may not be firing due to a regression or incorrect emission for the Question 1/3 questionnaire path, and verifying the notification pipeline for this specific flow is necessary.

Guidance

  • Review the code changes introduced in PR #13495 to ensure plan-mode-prompt is correctly emitted for the plan-mode questionnaire flow.
  • Verify that the plan-mode-prompt notification is being sent to the notification pipeline when Codex is waiting for input in the plan-mode questionnaire.
  • Check the documentation for codex-cli to see if there are any specific requirements or configurations needed for plan-mode-prompt to work correctly.
  • Test the plan-mode-prompt notification with different questionnaire flows to determine if the issue is specific to the Question 1/3 path.

Example

No code snippet is provided as the issue does not contain sufficient information to create a minimal example.

Notes

The issue may be specific to the codex-cli 0.118.0 version, and testing with other versions may help determine if it's a regression. Additionally, the notification pipeline working for user-input-requested suggests that the issue may be specific to the plan-mode-prompt emission.

Recommendation

Apply workaround: Verify the plan-mode-prompt emission and notification pipeline for the plan-mode questionnaire flow, as the issue may be due to a regression or incorrect configuration.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - ✅(Solved) Fix plan-mode-prompt TUI notification does not fire for plan-mode clarification questions in codex-cli 0.118.0 [1 pull requests, 1 comments, 2 participants]