Skip to content

plan-mode-prompt TUI notification does not fire for plan-mode clarification questions in codex-cli 0.118.0 #17252

@ryan6416

Description

@ryan6416

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions