Repository navigation
Keep async question controls available after agent notices - #35758
Conversation
[Medium impact] The PR appears safe to merge; no actionable issues were found. SummaryKeeps async question controls available after recognized agent notices.
Reviews (2) · Last reviewed commit: "Merge remote-tracking branch 'origin/mai..." · Reviewed by Greptile |
|
No actionable comments were generated in the recent review.
|
|
An active Codex async question lost its answer buttons and free-text control when another agent delivered a notice. The notice used the provider's user role, so the pending-question scan mistook it for the person's answer. This PR keeps the existing desktop and mobile card available across recognized agent-origin messages while preserving human/legacy-message settlement, delivery exclusions, and interruption. The full review path found no remaining production defect. Correctness and architecture review, a continued consumer-test review, final reference/readiness checks and a dedicated performance pass are complete. A three-seat budget re-plan kept the same design and justified the required consumer coverage; no extra state, wire operation, scan or subscription was added. Intended compatibility and existing dismissal behavior are labelled in the PR description. Verified on Deferred: minor test-fixture duplication and repeat-scan wording nits. The separate pre-existing blocking-question FIFO issue is tracked in STA-12765. Missing sender metadata retains legacy settlement as described in the PR. This changes the native-chat UI tests row; no process/lifecycle flow or real-agent QA round is involved. For Brennan's review Desktop production-component fixture after projected agent mail, on the reviewed head. The mounted wrapper retained its controls and accepted custom text; no answer was sent. This is component evidence, with no agent under test. Shipping iOS app on the same head, reached through onboarding, pairing and workspace navigation. Its production WebView shell loaded the branch workspace bundle; this is the screen that ships inside the native app. After the synthetic journal delivered the recognized agent notice, the card retained its choices and accepted an unsent custom answer with Submit enabled. Keyboard closed; zero answer sends. This is screenshot-fixture evidence, with no agent under test or answer-transport claim. Loaded mobile question before the notice Judgment spots: sender-aware settlement, projected notice through desktop controls, mobile notice-to-answer coverage. |
…uestion card Skip on a Codex async question card now saves the skipped row on the chat's host record (agentSession.skipAsyncQuestions, modelled on cancelUsageLimitContinue), so the status, the desktop card and the phone card all honour it. The host status read no longer ends at another agent's message, matching the card's rule from #35758; two partial indexes, created without a schema version bump, keep that read bounded.
…on card (#42946) * fix(native-chat): make Skip and agent messages agree with the async question card Skip on a Codex async question card now saves the skipped row on the chat's host record (agentSession.skipAsyncQuestions, modelled on cancelUsageLimitContinue), so the status, the desktop card and the phone card all honour it. The host status read no longer ends at another agent's message, matching the card's rule from #35758; two partial indexes, created without a schema version bump, keep that read bounded. * fix(native-chat): gate phone Skip on relay support; roll back only its own hide


An active Codex async question could lose its choice buttons and free-text answer control when another agent sent a notice. The notice was a user-role transcript row, and the pending-question scanner treated it as the person's answer even though sender metadata identified it as agent-origin.
Keep the existing async question card available across recognized agent-origin messages on desktop and mobile. Human and legacy messages, the five existing send-exclusion flags, and interruption keep their existing behavior. No saved fields or wire changes are added.
Tracked in STA-12421; tracked in #34357. This change is based on #34368 by
gentslava.Review path: full path. This repeats a missing-answer-card bug in the mechanism introduced by #31652 and changes mixed-version question settlement. The shared sender-aware condition preserves ordinary human-message settlement and independently updated hosts. The adjacent blocking-question FIFO reset remains outside this async change; tracked in STA-12765.
Differences from the common pattern:
Validation: the shared regression covers real-shaped agent notices, null/unknown orchestration metadata, empty senders, repeated scans, human/legacy settlement, interruption and all five send-exclusion flags. Extended desktop and mobile consumer tests cover notice arrival followed by an ordinary answer; desktop also preserves an existing selection and drafted free text. Source review found no production defect. CI passed on the final head cabd281 after the consumer-test commit and main merge. Execution evidence confirms the shared scanner (15 tests), desktop renderer (2), mobile hook (13), and shared sender/projection contracts (47) passed. Static analysis/typecheck and all ten unit shards also passed. Quick branch screenshots passed on this head: the desktop production-component fixture retained controls and accepted custom text after projected agent mail; the shipping iOS app retained choices and accepted an unsent custom answer after the structured journal notice. The iOS app uses its production WebView shell and branch workspace bundle; no external browser or substitute screen was used. These fixture captures have no agent under test and do not claim answer transport. Desktop capture, mobile after notice, mobile loaded question. This is the native-chat UI tests row; no process/lifecycle change requires a full agent QA round. This dependency-free checkout has run no local tests or typecheck, and its generated pre-commit entry is absent; normal commits did not bypass hooks. Actual validation is provided by CI and the admitted screenshot runs.