Skip to content

fix(native-chat): Codex async questions show an answer card on desktop and phone - #31652

Merged
AmoabaKelvin merged 4 commits into
mainfrom
codex-async-questions
Oct 21, 2026
Merged

AmoabaKelvin merged 4 commits into
mainfrom
codex-async-questions

Conversation

@AmoabaKelvin

@AmoabaKelvin AmoabaKelvin commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 9 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​292 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​291
Prod 18 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​305 $\color{#cf222e}{\Huge{\mathbf{−}}}$​41 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​264

ELI5

When Codex asks a question but keeps working (its request_user_input_async tool), Orca only showed the question as text. Now desktop and phone show the usual question card, and your answer goes back to Codex as a normal message.

What Changed

Before: an async Codex question showed up as prose ("Which color?" with a bulleted list) and nothing else: no choices, no answer field. This happened on desktop and on the phone, in both structured and terminal-backed chats. Its immediate {"accepted":true} result also counted as an answer, so nothing treated the question as open.

Now:

  • Structured Codex chat (desktop and phone): the host adds the question as a request_user_input_async call block on the same assistant message (codexJournalItem). Both clients read it with the shared pending rule and show the existing question card (desktop NativeChatQuestionCard, phone MobileNativeChatAsk). On desktop the card sits above the composer, because Codex keeps working, so typing and Stop stay available. Picking an answer sends an ordinary message through the structured send: > Which color? followed by a blank line and Blue, the plain reply form Codex's own clients use. Cancel only hides the card.
  • Shared rule (native-chat-ask.ts): the async input shape (title plus string options) is parsed. Each async question stays open past its display acknowledgement until a user message actually reaches the agent. Queued, unsent or withdrawn sends don't count. Several unanswered async questions are combined into one card, once per call.
  • Terminal-backed chat: the same card answers by pasting that message instead of selector keystrokes. Cancel no longer sends Escape, which would interrupt the running turn.
  • In the transcript the call draws as the existing ask row ("Awaiting user input: …", then "Asked: …") rather than a raw tool row, on both clients.
  • A pane-menu Paste opened on a card's answer field now fills that field instead of the composer behind it.

Why

Codex's own source (rust-v0.163.0, request_user_input_async.rs, answered_question.rs) shows the tool has no reply op. The answer is just the next user message, so the question stays pending until then. A structured journal question item is a request/response prompt: it holds the send queue, its Cancel interrupts the turn, and answering it needs a server request. Fitting an async question into it would have meant a second lifecycle in the host. A call block on the message needs no wire or schema change, re-imports idempotently, and lets desktop and phone share one rule with the terminal transcript path.

Not changed on purpose: the async PreToolUse hook still maps to "working". Codex doesn't block on this tool, so "Needs You" would only flash.

Compatibility: an old phone on a new host shows the prose as today. A new phone on an old host has no call block, so it also shows the prose.

Linked Issue

Fixes #20073

Visual Proof

Real request_user_input_async calls from Codex 0.163.0 (GPT-6.1-Sol) in a structured Codex chat. Before is main, after is this branch.

Desktop

Before (main) After (this branch)
(screenshot removed: contained real product data) (screenshot removed: contained real product data)

Before (prose only): (screenshot removed: contained real product data)

After (card above the composer, pick Blue, type "none", Codex replies "Blue, with no other constraints."): (screenshot removed: contained real product data)

Phone (Android emulator, Orca Mobile 0.0.58, page bundle from each desktop build)

Before (main) After (this branch)
(screenshot removed: contained real product data) (screenshot removed: contained real product data)

Before: (screenshot removed: contained real product data)

After (tap Blue, the reply goes as a normal message, Codex answers "Blue it is."): (screenshot removed: contained real product data)

Testing

  • Focused regressions that fail without the fix:

    • the decoded Codex rollout stays pending past the ack and clears on reply
    • the host item becomes a pending ask
    • several async questions are kept once per call
    • queued and unsent rows don't retire a question
    • desktop and phone send formats
    • the desktop structured card sends and hides
    • phone structured prompts answer through the structured send
    • pane-menu paste lands in the answer field
  • Neighbouring native-chat, codex and mobile suites pass (687 desktop/host and 572 mobile tests, after rebasing on main); check:code-quality:changed and check:react-doctor:changed pass.

  • Live on macOS: hidden dev builds of main and this branch, structured Codex chat, real Codex 0.163.0 turns. On desktop and on the Android emulator, the reply Codex received is in its rollout as > Which color should the button be? followed by Blue. I did not exercise the terminal-backed route, SSH, Linux, Windows or iOS live.

  • I manually tested these changes locally

  • Automated tests added/updated, or explained why not below

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

No platform-specific code. SSH and headless hosts use the existing journal and send paths. Folder workspaces are unaffected.

request_user_input_async returns {"accepted":true} at once and takes the
answer as the next user message, so it is pending until then and answered
by an ordinary send.

Fixes #20073
… agent

Also routes a pane menu Paste on a question's answer field to that field while the composer stays mounted.
@coderabbitai

coderabbitai Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7048886d-dc88-44d5-a805-977069a0a4fb
📥 Commits

Reviewing files that changed from the base of the PR and between bda5956 and 8c12a03.

📒 Files selected for processing: 1
  • src/shared/codex-async-question-input.ts
🚧 Files skipped from review as they are similar to previous changes: 1
  • src/shared/codex-async-question-input.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.

📝 Walkthrough

The changes add parsing and pending-state handling for Codex asynchronous questions. Desktop and mobile native chat now expose structured question prompts and answer handlers. Message-reply answers use formatted ordinary messages instead of selector keystrokes. Cancellation dismisses these prompts without a cancellation request, and native answer inputs support context-menu paste.

Priority: ➖ Normal

Merge Risk: ⚪ Minimal · up to 8c12a

The async question change is mergeable after normal checks; no actionable issue remains established.

Pre-merge checks: Passed 2 · Failed 3

Failed Failed checks: 3 warnings

Check name Status Explanation Resolution
Linked Issues check Warning Issue #20073 requires a mobile card for confirmed Codex async questions. The implementation provides titles, options, free-text input, local dismissal, and an ordinary-message reply path. The implemen… Change the mobile answer action to append the formatted question and selected answer to the existing composer draft. Keep dismissal local and preserve the non-blocking ordinary-message path.
Out of Scope Changes check Warning Issue #20073 targets the mobile decision-card projection. The pull request also adds a desktop NativeChatStructuredAsyncQuestion card and changes desktop terminal-backed answer delivery, cancellatio… Move the desktop structured-card and desktop terminal-backed behavior to a separate issue or pull request. Keep this pull request limited to the shared support and mobile behavior required by #20073.
Docstring Coverage Warning Docstring coverage is 67.86% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 28 functions across 27 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 2 passed
Check name Status Explanation
Title check Passed The title clearly identifies the main user-facing change: Codex async questions now show answer cards on desktop and phone.
Description check Passed The description is mostly complete. It includes the user-facing explanation, changes, rationale, linked issue, visual proof, testing details, compatibility notes, and focused checklist items. The Revi…
Full details: Description check

Explanation

The description is mostly complete. It includes the user-facing explanation, changes, rationale, linked issue, visual proof, testing details, compatibility notes, and focused checklist items. The Review and AI Disclosure sections are empty, and the full checklist is not included, but these omissions do not prevent understanding the change.

Full details: Linked Issues check

Explanation

Issue #20073 requires a mobile card for confirmed Codex async questions. The implementation provides titles, options, free-text input, local dismissal, and an ordinary-message reply path. The implementation does not meet the issue's proposed bounded reply behavior. useMobileStructuredAsyncQuestion calls sendWithOutcome immediately, instead of appending the formatted question and answer to the existing draft for user review and ordinary composer submission.

Resolution

Change the mobile answer action to append the formatted question and selected answer to the existing composer draft. Keep dismissal local and preserve the non-blocking ordinary-message path.

Full details: Out of Scope Changes check

Explanation

Issue #20073 targets the mobile decision-card projection. The pull request also adds a desktop NativeChatStructuredAsyncQuestion card and changes desktop terminal-backed answer delivery, cancellation, and paste routing. These changes are not required to fix the mobile omission. The shared parser, transcript handling, mobile card, and mobile send-path changes are connected to the issue.

Resolution

Move the desktop structured-card and desktop terminal-backed behavior to a separate issue or pull request. Keep this pull request limited to the shared support and mobile behavior required by #20073.

✨ Finishing Touches: 💡 1
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
  • 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

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2


ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 252f0e08-ddec-4bd4-8aa0-d238b328e7d7
📥 Commits

Reviewing files that changed from the base of the PR and between f9aeb34 and bda5956.

📒 Files selected for processing: 27
  • mobile/src/session/MobileNativeChatPromptCard.tsx
  • mobile/src/session/use-mobile-native-chat-answer-send.test.ts
  • mobile/src/session/use-mobile-native-chat-answer-send.ts
  • mobile/src/session/use-mobile-native-chat-controller.ts
  • mobile/src/session/use-mobile-native-chat-prompts.test.ts
  • mobile/src/session/use-mobile-native-chat-prompts.ts
  • mobile/src/session/use-mobile-structured-async-question.ts
  • src/main/codex/codex-structured-async-question.test.ts
  • src/main/codex/codex-structured-item-translation.ts
  • src/main/native-chat/transcript-reader-codex-history-mode.test.ts
  • src/renderer/src/components/native-chat/NativeChatInteractiveCard.tsx
  • src/renderer/src/components/native-chat/NativeChatQuestionCard.tsx
  • src/renderer/src/components/native-chat/NativeChatStructuredAsyncQuestion.test.tsx
  • src/renderer/src/components/native-chat/NativeChatStructuredAsyncQuestion.tsx
  • src/renderer/src/components/native-chat/NativeChatStructuredSession.tsx
  • src/renderer/src/components/native-chat/native-chat-paste-routing.test.tsx
  • src/renderer/src/components/native-chat/use-native-chat-context-menu.tsx
  • src/renderer/src/components/native-chat/use-native-chat-interactive-send.test.tsx
  • src/renderer/src/components/native-chat/use-native-chat-interactive-send.ts
  • src/renderer/src/components/native-chat/use-native-chat-paste-bridge.ts
  • src/renderer/src/lib/native-chat-paste-request.ts
  • src/shared/codex-async-question-input.ts
  • src/shared/native-chat-ask-row.spec.ts
  • src/shared/native-chat-ask-row.ts
  • src/shared/native-chat-ask-types.ts
  • src/shared/native-chat-ask.test.ts
  • src/shared/native-chat-ask.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.

Comment on lines +34 to +41
const sendWithOutcome = structured?.sendWithOutcome
const answer = useCallback(
async (prompt: AskPrompt, selections: AskAnswerSelection[]) =>
sendWithOutcome !== undefined &&
(await sendWithOutcome(formatAskAnswer(prompt, selections))) !== 'rejected',
[sendWithOutcome]
)
return { ask, answer: structured ? answer : null }

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🔎 Supported by static analysis

🏁 Script executed:

rg -n 'onDismissAsk|dismissedAsk|queuedMessageDelete|removeQueued|nativeChatAsk' mobile/src/session mobile/src/components | head -145

Repository: stablyai/orca

Length of output: 9264


🏁 Script executed:

set -eu
printf '%s\n' '--- use-mobile-structured-async-question.ts ---'
nl -ba mobile/src/session/use-mobile-structured-async-question.ts | sed -n '1,130p'
printf '%s\n' '--- use-mobile-native-chat-ask-dismiss.ts ---'
nl -ba mobile/src/session/use-mobile-native-chat-ask-dismiss.ts | sed -n '1,220p'
printf '%s\n' '--- use-mobile-native-chat-controller.ts relevant blocks ---'
nl -ba mobile/src/session/use-mobile-native-chat-controller.ts | sed -n '120,190p;280,335p'
printf '%s\n' '--- MobileNativeChatPromptCard.tsx ---'
nl -ba mobile/src/session/MobileNativeChatPromptCard.tsx | sed -n '1,120p'
printf '%s\n' '--- use-mobile-structured-queued-message-controls.ts relevant blocks ---'
nl -ba mobile/src/session/use-mobile-structured-queued-message-controls.ts | sed -n '1,220p'
printf '%s\n' '--- use-mobile-structured-send-with-outcome.ts ---'
nl -ba mobile/src/session/use-mobile-structured-send-with-outcome.ts | sed -n '1,240p'
printf '%s\n' '--- structured async question usages and dismissal tests ---'
rg -n -F --glob '*.ts' --glob '*.tsx' -e 'useMobileStructuredAsyncQuestion' -e 'dismissNativeChatAsk' -e 'queuedMessageDelete' -e 'onDismissAsk' mobile/src/session | sed -n '1,260p'

Repository: stablyai/orca

Length of output: 40782


🏁 Script executed:

set -eu
for f in \
  mobile/src/session/use-mobile-native-chat-ask-dismiss.ts \
  mobile/src/session/use-mobile-structured-async-question.ts \
  mobile/src/session/MobileNativeChatPromptCard.tsx \
  mobile/src/session/use-mobile-structured-queued-message-controls.ts \
  mobile/src/session/use-mobile-structured-send-with-outcome.ts; do
  echo "--- $f ---"
  nl -ba "$f"
done
echo '--- controller ask wiring ---'
nl -ba mobile/src/session/use-mobile-native-chat-controller.ts | sed -n '135,180p;290,330p'
echo '--- relevant tests ---'
rg -n -F --glob '*.ts' --glob '*.tsx' -e 'dismissNativeChatAsk' -e 'queuedMessageDelete' -e 'onDismissAsk' -e 'useMobileStructuredAsyncQuestion' mobile/src/session | sed -n '1,320p'

Repository: stablyai/orca

Length of output: 40674


🏁 Script executed:

set -eu
printf '%s\n' '--- mobile/src/session/use-mobile-native-chat-prompt-dismiss.ts ---'
nl -ba mobile/src/session/use-mobile-native-chat-prompt-dismiss.ts
printf '%s\n' '--- mobile/src/session/use-mobile-native-chat-prompts.ts ---'
nl -ba mobile/src/session/use-mobile-native-chat-prompts.ts

Repository: stablyai/orca

Length of output: 8650


🏁 Script executed:

set -eu
printf '%s\n' '--- queue-control call sites ---'
rg -n -F --glob '*.ts' --glob '*.tsx' -e 'useMobileStructuredQueuedMessageControls' -e 'onActionResolved' -e 'queued.delete' -e 'queued.clear' mobile/src/session | sed -n '1,260p'
printf '%s\n' '--- ask component answer behavior ---'
rg -n -F --glob '*.tsx' -e 'export function MobileNativeChatAsk' -e 'onAnswer' mobile/src/session/MobileNativeChatAsk.tsx
nl -ba mobile/src/session/MobileNativeChatAsk.tsx | sed -n '1,260p'

Repository: stablyai/orca

Length of output: 13840


Restore the async question after deleting its queued answer.

A queued answer returns success, so the card stores an answered dismissal. The structured prompt remains both observed and pending. Deleting the queued draft does not change that prompt key, so the dismissal is not forgotten. The user then has no question-specific answer or retry control.

Reset the ask dismissal after a successful agentSession.queuedMessageDelete. Use a deletion-specific callback so Send, Edit, and other queue actions keep their current behavior.

Comment on lines +41 to +46
onAnswer={(selections) => {
if (send(formatAskAnswer(card.prompt, selections), []) !== false) {
presentation.dismiss()
}
}}
onCancel={presentation.dismiss}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🔎 Supported by static analysis

🏁 Script executed:

sed -n '1,105p' src/renderer/src/components/native-chat/NativeChatStructuredAsyncQuestion.tsx
rg -n 'useNativeChat.*Prompt|dismiss:|dismiss\(|queued' src/renderer/src/components/native-chat/NativeChatStructuredAsyncQuestion.tsx src/renderer/src/components/native-chat/use-native-chat-ask-presentation.ts src/renderer/src/components/native-chat/native-chat-composer-types.ts

Repository: stablyai/orca

Length of output: 3095


🏁 Script executed:

set -eu
printf '%s\n' '--- presentation hook and related files ---'
rg -n -F --glob '*.ts' --glob '*.tsx' \
  -e 'useNativeChatPromptCardPresentation' \
  -e 'function useNativeChatPromptCardPresentation' \
  -e 'presentation.dismiss' \
  src/renderer/src/components/native-chat || test "$?" -eq 1
printf '%s\n' '--- transport send implementations and queued draft handling ---'
rg -n -F --glob '*.ts' --glob '*.tsx' \
  -e "return 'queued'" \
  -e "=== 'queued'" \
  -e "!== false" \
  -e 'queued draft' \
  -e 'sendWithOutcome' \
  src/renderer/src/components/native-chat src/shared || test "$?" -eq 1
printf '%s\n' '--- candidate file list ---'
rg --files src/renderer/src/components/native-chat src/shared | rg 'prompt-card|composer|send|ask'

Repository: stablyai/orca

Length of output: 25634


🏁 Script executed:

set -eu
printf '%s\n' '--- prompt presentation ---'
nl -ba src/renderer/src/components/native-chat/use-native-chat-prompt-card-presentation.ts
printf '%s\n' '--- structured composer transport ---'
nl -ba src/renderer/src/components/native-chat/use-native-chat-structured-composer-transport.ts
printf '%s\n' '--- structured composer send and dispatch ---'
nl -ba src/renderer/src/components/native-chat/use-native-chat-structured-composer-send.ts
nl -ba src/renderer/src/components/native-chat/native-chat-structured-composer-dispatch.ts
printf '%s\n' '--- transport type and queued-draft contracts ---'
nl -ba src/renderer/src/components/native-chat/native-chat-composer-types.ts | sed -n '1,155p'
printf '%s\n' '--- queued draft and async-question tests ---'
rg -n -F --glob '*.test.*' -e 'queued' -e 'NativeChatStructuredAsyncQuestion' -e 'async question' src/renderer/src/components/native-chat src/shared || test "$?" -eq 1

Repository: stablyai/orca

Length of output: 41603


🏁 Script executed:

set -eu
printf '%s\n' '--- dismissal store ---'
nl -ba src/renderer/src/components/native-chat/native-chat-prompt-dismissals.ts
printf '%s\n' '--- dispatch result contract ---'
nl -ba src/renderer/src/components/native-chat/native-chat-structured-composer-dispatch.ts
printf '%s\n' '--- queued session state and UI references ---'
rg -n -F --glob '*.ts' --glob '*.tsx' \
  -e 'queuedMessages' \
  -e 'queuedMessage' \
  -e 'deleteQueued' \
  -e 'steer' \
  -e 'queued draft' \
  src/renderer/src/components/native-chat/use-structured-agent-session.ts \
  src/renderer/src/components/native-chat/NativeChatResolvedView.tsx \
  src/renderer/src/components/native-chat/NativeChatComposer.tsx \
  src/renderer/src/components/native-chat/structured-agent-session-queued-cards.test.ts \
  src/renderer/src/components/native-chat/use-structured-agent-session.queued-gating.test.tsx || test "$?" -eq 1
printf '%s\n' '--- async-question and prompt-presentation tests ---'
rg -n -F --glob '*.test.*' \
  -e 'NativeChatStructuredAsyncQuestion' \
  -e 'queued answer' \
  -e 'dismiss' \
  -e 'retry' \
  -e 'queued draft' \
  src/renderer/src/components/native-chat src/shared/native-chat-ask.test.ts src/shared/native-chat-ask-fifo.test.ts || test "$?" -eq 1

Repository: stablyai/orca

Length of output: 39493


🏁 Script executed:

set -eu
printf '%s\n' '--- async question test ---'
nl -ba src/renderer/src/components/native-chat/NativeChatStructuredAsyncQuestion.test.tsx
printf '%s\n' '--- prompt presentation tests ---'
nl -ba src/renderer/src/components/native-chat/use-native-chat-prompt-card-presentation.test.ts | sed -n '1,115p'
printf '%s\n' '--- queued message list and controller bindings ---'
rg -n -F --glob '*.ts' --glob '*.tsx' \
  -e 'function NativeChatQueuedMessageList' \
  -e 'export function NativeChatQueuedMessageList' \
  -e 'steerQueued' \
  -e 'deleteQueued' \
  -e 'queuedMessages.cards' \
  -e 'Press Send to retry' \
  src/renderer/src/components/native-chat/NativeChatQueuedMessageList.tsx \
  src/renderer/src/components/native-chat/NativeChatComposer.tsx \
  src/renderer/src/components/native-chat/use-structured-agent-session.ts \
  src/renderer/src/components/native-chat/structured-agent-session-queued-cards.ts || test "$?" -eq 1
printf '%s\n' '--- queued-card contract definitions ---'
nl -ba src/renderer/src/components/native-chat/structured-agent-session-queued-cards.ts | sed -n '1,260p'

Repository: stablyai/orca

Length of output: 16213


🏁 Script executed:

set -eu
printf '%s\n' '--- queued message list ---'
nl -ba src/renderer/src/components/native-chat/NativeChatQueuedMessageList.tsx
printf '%s\n' '--- queued controller return and actions ---'
nl -ba src/renderer/src/components/native-chat/use-structured-agent-session.ts | sed -n '120,175p'
nl -ba src/renderer/src/components/native-chat/use-structured-agent-session.ts | sed -n '285,330p'
printf '%s\n' '--- composer queued action wiring ---'
nl -ba src/renderer/src/components/native-chat/NativeChatComposer.tsx | sed -n '45,85p'
nl -ba src/renderer/src/components/native-chat/NativeChatComposer.tsx | sed -n '315,350p'

Repository: stablyai/orca

Length of output: 21750


🏁 Script executed:

set -eu
printf '%s\n' '--- queued-message controller ---'
rg -n -F --glob '*.ts' --glob '*.tsx' \
  -e 'StructuredAgentSessionQueuedMessagesController' \
  -e 'function useStructuredAgentSessionQueuedMessages' \
  -e 'const remove' \
  -e 'remove:' \
  -e 'queuedMessage.remove' \
  src/renderer/src/components/native-chat
printf '%s\n' '--- controller source candidates ---'
rg --files src/renderer/src/components/native-chat | rg 'queued-messages'

Repository: stablyai/orca

Length of output: 6884


🏁 Script executed:

set -eu
nl -ba src/renderer/src/components/native-chat/use-structured-agent-session-queued-messages.ts | sed -n '1,215p'

Repository: stablyai/orca

Length of output: 9865


Keep the question card pending for queued answers.

When send returns 'queued', the answer is accepted as a draft but has not reached the agent. If the user deletes that queued draft, the pending question can remain without its structured retry controls because this handler already recorded the prompt as answered. Dismiss only after a definite true result.

Suggested fix
-        if (send(formatAskAnswer(card.prompt, selections), []) !== false) {
+        if (send(formatAskAnswer(card.prompt, selections), []) === true) {
           presentation.dismiss()
         }
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
onAnswer={(selections) => {
if (send(formatAskAnswer(card.prompt, selections), []) !== false) {
presentation.dismiss()
}
}}
onCancel={presentation.dismiss}
onAnswer={(selections) => {
if (send(formatAskAnswer(card.prompt, selections), []) === true) {
presentation.dismiss()
}
}}
onCancel={presentation.dismiss}

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.

Mobile omits Codex request_user_input_async decision cards

1 participant