Repository navigation
fix(tui): report unanswered async questions as blocked while running - #272
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. 🚀 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
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.Blocked(Question)whether or not the turn is running.Blocked(Permission), and the status returns toBlocked(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
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 existingunwrap()errors intui/src/chatwidget/slash_dispatch/codex_plus_plus/mod.rs, which this PR doesn't touch.