Skip to content

fix(tui): report unanswered async questions as blocked while running - #272

Merged
JJLiebig merged 2 commits into
mainfrom
fix/async-question-blocked
Nov 8, 2026
Merged

JJLiebig merged 2 commits into
mainfrom
fix/async-question-blocked

Conversation

@JJLiebig

@JJLiebig JJLiebig commented Nov 8, 2026

Copy link
Copy Markdown
Owner

What changes

Codex++ now reports blocked (question) over OSC 7501 whenever an async question is waiting for an answer, even while the turn keeps running. Before, an async question only counted as blocked once the turn had stopped, so agents that keep their turn running (such as chief agents) showed as "working" in Herdr while they were actually waiting on the user.

  • An unanswered async question gives Blocked(Question) whether or not the turn is running.
  • Answering, skipping or clearing the question returns the status to whatever it would otherwise be: working, idle or done.
  • Other blocking sources keep precedence, unchanged: approval views, delayed approvals and elicitations are still checked first. An approval raised while a question is open reports Blocked(Permission), and the status returns to Blocked(Question) once the approval is resolved.

The change is one condition in program_status_blocked_kind (codex-rs/tui/src/bottom_pane/mod.rs), recorded as a required upstream seam in the fork ledger.

Validation

  • New regression test chatwidget::tests::program_status::unanswered_async_question_blocks_while_turn_runs_until_answered: during a running turn, question → Blocked(Question); approval on top → Blocked(Permission); approval accepted → Blocked(Question); question answered → Working. It fails without the fix.
  • just test -p codex-tui --lib -E "test(program_status) | test(question) | test(bottom_pane::tests)": 160 passed.
  • just fmt: clean.
  • just clippy -p codex-tui --lib: nothing in the changed files. It does report two existing unwrap() errors in tui/src/chatwidget/slash_dispatch/codex_plus_plus/mod.rs, which this PR doesn't touch.

@coderabbitai

coderabbitai Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7a50df98-1bc0-4fa8-ad90-b06627dd6723
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@JJLiebig

JJLiebig commented Nov 8, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-08T17:14:13.356251Z fb305a2 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: fb305a2d35

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@JJLiebig
JJLiebig merged commit 1b6c0be into main Nov 8, 2026
1 check passed
@JJLiebig
JJLiebig deleted the fix/async-question-blocked branch November 8, 2026 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant