CLI async questions remain pending after answers in normal chat; expose resolve/withdraw lifecycle
Problem
A structured async question can remain pending in the CLI after the user has answered it through the ordinary conversation and the assistant has understood and used that answer. The concern is lifecycle reconciliation, not how to manually skip the question.
The assistant also has no exposed operation in the affected session to mark that specific question answered or withdraw it when it becomes obsolete. Conversation state and the visible pending-question state can therefore disagree.
Environment
- Observed September 10, 2026.
- Installed CLI reports
codex-cli 0.154.0. - macOS 15.7.7, build 24G720.
- Default collaboration mode; GPT-6-Astra.
- User screenshots show the CLI/TUI, specifically
Queued follow-up inputs,? 1 question, and its expandable question editor. This is not the desktop app's pending Steer message card. - The installed CLI version was checked locally; no independent process-to-executable mapping was collected for the running session.
Observed sequence
- During a task, the assistant called
functions.request_user_input_asyncto ask for a documentation style preference, with two suggested options. - The tool returned
{"accepted":true}. - The user answered via an ordinary conversation message, explaining the desired style and experience level, rather than submitting through the special question UI.
- The assistant received the answer, used it, and completed the requested document.
- Several subsequent normal conversation exchanges occurred.
- The CLI still displayed
Queued follow-up inputs/? 1 question. - Expanding it showed the original documentation-style question and original options. The footer offered Enter to submit and Ctrl+] to skip.
The assistant's tool invocation and receipt/use of the ordinary answer are directly observable in the conversation. The stale CLI state is shown in user-provided screenshots. This is an observed incident, not a clean-room deterministic reproduction; the exact input-delivery path and queue/state transitions have not been instrumented.
Screenshots and the full conversation are not attached to avoid publishing unrelated task content. The UI labels and sequence above capture the relevant evidence.
Expected behavior
A question answered elsewhere in the same conversation should be reconciled with the original pending question. The user should not need to answer twice or manually clean up a question the assistant already considers resolved.
Please provide a reliable lifecycle for these questions, for example:
- Stable question/request identifiers and agent-visible pending/resolved state.
- An agent-facing operation to resolve a particular question using a received user answer, or withdraw it when it is no longer relevant.
- UI updates that remove resolved/withdrawn questions from the pending list while preserving an appropriate transcript record.
- Automatic reconciliation where the answer association is clear; ambiguous or unrelated follow-up input must not be treated as an answer or authorization.
- Consistent state across later turns, reconnect, and replay, without resurrecting resolved questions.
The specific mechanism is up to maintainers. The requirement is that the assistant can track and close the question lifecycle when answers arrive outside the special UI. A manual Skip shortcut alone does not address this.
Agent-facing limitation observed
In this session, request_user_input_async accepts question titles/options and returns only {"accepted":true}. No question ID is returned by that tool result, and the available tools expose no resolve/cancel/withdraw operation for an existing question. This describes the model-facing capability in this session, not a claim that the backend has no internal IDs or lifecycle APIs.
Relevant upstream code
Current main already contains ordinary_follow_up_clears_unanswered_questions_after_accepted_input in:
https://github.com/openai/codex/blob/e25bedc166b54acadb505b587a387091097b2393/codex-rs/tui/src/chatwidget/tests/questions_tests.rs
That test appears to cover normal composer delivery clearing existing questions and suppressing the same question when added again. The observed session did not exhibit the expected cleanup. This could be a release/path discrepancy or an uncovered delivery/replay case; no root cause is established here. Clearing every question on arbitrary follow-up input also differs from explicitly resolving the question that was actually answered.
Suggested acceptance cases
- Ask Q, receive its answer in the normal composer, incorporate it: Q is no longer pending.
- Ask Q, later user input makes Q obsolete: the assistant can withdraw Q.
- Ask Q1 and Q2, receive an answer only to Q1: resolve Q1 while preserving Q2.
- Receive an unrelated status question: do not silently mark pending questions answered.
- Reconnect/replay after resolution: Q does not reappear.
- Resolving a question records actual user input; elapsed time or an unrelated message does not create user approval.
Related but distinct
- #43803: desktop async question cards disappear on turn completion.
- #43057: desktop question interface disappears after tab switching.
- #40268: agent visibility into queued user inputs, rather than lifecycle control of agent-authored questions.
This report is about an already-answered async question remaining pending in the CLI and the missing model-facing way to reconcile or withdraw it. Filed at the affected user's request.
Additional user report, submitted at the affected user's explicit request on September 13, 2026.
In a long-running Codex development conversation, several follow-up questions had become obsolete because their decisions were already settled earlier in the same conversation and recorded in project documents. The user quoted the old questions and answered them again through normal chat. The assistant received those answers, acknowledged the decisions as settled, and reconciled the project records. The user nevertheless reports that the old questions continue to accumulate in the visible follow-up list.
The problem is cumulative: telling the user to ignore obsolete questions leaves an increasingly cluttered queue and makes it harder to distinguish real decisions from already-completed ones. The user specifically asked why the assistant does not clean up the list and requested that OpenAI be informed.
The model-facing tools available in this session expose question creation but no operation to list, resolve, or withdraw previously created question cards. Updating repository records cannot reconcile the UI queue. This is a report of the visible user experience and available session tools, not an independently instrumented root-cause diagnosis or a claim that the backend has no internal lifecycle APIs.
Locally installed CLI reports codex-cli 0.154.0 on Linux. The exact executable behind the visible question UI was not independently mapped, and no clean-room reproduction was performed. Private project details, session transcripts and screenshots are omitted.
Requested outcome: reconcile questions answered in ordinary chat; let the assistant withdraw specific obsolete questions; offer a clear user action to dismiss/archive obsolete questions, including several at once; preserve genuinely unanswered questions and an auditable history. Ignoring stale questions should not be the only practical way forward. In particular, neither unrelated chat input nor dismissal should invent an answer or approval.
This should be (mostly) fixed as of 0.156.0 (pending questions clear when you start a new turn of the conversation). But I'd love confirmation of that, if you can!
We hear you re: having the model track which questions have been answered (e.g. via regular responses or other routes); looking into that.
I am seeing a related failure on macOS with Codex CLI 0.160.0 in iTerm2. During Radio setup on October 2, 2026, an agent sent a request_user_input_async question about operating mode at about 2:18 PM EDT. The tool returned {"accepted":true}. I answered “at-computer” in ordinary chat, and Radio recorded that choice, but its receiver still reports the Codex session as waiting for user input.
The original Codex TUI now shows 0 “Needs you” tasks and no “Queued follow-up inputs” indicator. At its live prompt, Shift+Left opens no question; Ctrl+] only changes the composer. The older question text is visible in transcript history, but there is no answer card. Further ordinary chat replies do not clear the outstanding request.
Radio reports waiting_human, waitKind: user_input, and outstanding: true for that session. It will not hand over or confirm its setup probe while the session appears to be waiting, so the registered agent is not verified as reachable. A fresh Codex session could not take over the existing Radio profile under Radio's safe handoff rules. No probe was manually confirmed, and the existing profile and keys were preserved.
Please advise a supported way to resolve or withdraw the specific lost async request, or repair the session state, without losing the existing agent identity. This differs from a merely collapsed question: the original TUI has no queued-question indicator or accessible card. I can provide redacted screenshots and the thread ID privately. I also observed hook returned invalid stop hook JSON output after some turns; its relationship to this issue is unknown.
We need a supported, read-only lifecycle for desktop asynchronous question cards. Static characterization of desktop 26.1021.22027 found blank Skip changes renderer state without an accepted answer or an exact resolution on the observed App Server path. No live-click transport reproduction is claimed.
Could the supported desktop observer interface report committed per-question dismissal separately from answered, interrupted or unavailable state? We need metadata only: producer/app generation, thread, original turn and canonical question reference, plus ordering/reconnect semantics. No question text, answer text or control/approval authority is needed.
Acceptance: with questions Q0/Q1 in one thread and Q2 plus a native approval in another, Skip Q1 retires Q1 only. Queued/rejected answers remain pending; duplicate, stale or foreign-generation events cannot clear or revive another request. Working requires independently fresh work. Clearing every question on a new turn, panel disappearance or elapsed time cannot establish this exact lifecycle.
Is there an existing supported desktop subscription/event for this case, or should this be tracked as a separate interface request? Related: #46169. This is an interface request, not a claim that the CLI and desktop implementation paths are identical.
Additional live evidence for the read-only desktop question lifecycle request in https://github.com/openai/codex/issues/44648#issuecomment-6383986516.
We are developing Agent Watch, a local macOS application that displays whether agent sessions need a person's attention. After a user clicks Skip on a Codex asynchronous question, the external waiting indicator can remain on because no exact dismissal reaches the observer.
Checked versions:
- Codex Desktop 26.1120.41243, bundled engine 0.171.0-alpha.13.2, macOS Apple Silicon.
- Earlier transcript/database and OpenTelemetry checks used Desktop 26.1117.31558 with engine 0.171.0-alpha.13. Those export results should not be read as a claim that every newer version was retested.
Live observation on November 25, 2026:
- Started the installed desktop application with a separate desktop data directory and CODEX_HOME, using temporary local debugging. No installed application files were changed.
- Created one question through request_user_input_async.
- The user installed a conditional DevTools breakpoint in the Skip handler and manually clicked Skip.
- At that point the handler had hostId, threadId and itemId. The itemId encoded ["request_user_input_async", "call_...", questionIndex].
- The captured thread and question reference were independently matched to the question-opening record in the isolated session transcript. No corresponding question reply was recorded there.
The installed Skip analytics handler passes only kind, dismissalReason, questionCount and hasUnsubmittedResponse. Inspection and offline execution of the common event enrichment and both outgoing envelope builders found no added chat or question identifier. The analytics session ID identifies the application session, not the chat. This is not a live network capture of the analytics request.
Could Codex expose a supported, read-only per-question lifecycle event through a command hook, a local observer subscription, or persisted session history? The essential information is:
- thread identifier;
- original tool call identifier and question index, or an equivalent stable question ID;
- committed transition, including an explicit skipped/dismissed reason separate from answered, cancelled, or expired;
- event identity/ordering sufficient to reconcile after reconnect or replay.
No question text, answer text, account information or control/approval authority is needed. Skipping Q1 must retire only Q1 while preserving Q0 and questions or approvals in other chats. Continued agent activity, a later turn, elapsed time and a hidden panel cannot establish that a particular question was skipped: asynchronous questions may remain open while the agent works.
Debugger observation proves that the exact identity exists at the UI action, but is unsuitable as a normal integration contract. A documented lifecycle event would let companion applications clear stale attention indicators without instrumenting the desktop renderer.
Related: #46169 requested resolved/skipped/cleared notifications for app-server clients; #57130 reports stale desktop "Input required" status after Skip. Our request concerns an exact observable lifecycle for an external monitor; it does not claim that these reports share a confirmed implementation cause.
If this should be tracked as a separate desktop interface request rather than in this CLI-focused issue, please advise.