Repository navigation
fix(mobile): show Codex async decision cards and compose replies - #20074
jakeparkcolde wants to merge 2 commits into
Conversation
d17acef to
18e9c3c
Compare
|
@jakeparkcolde I've opened #30062 for the same async-question gap, covering desktop and mobile in both terminal-backed and structured chat. Your issue and this proposal are linked in its description. The main differences are that pending questions are derived on the host, so they are available outside the loaded history window, and Submit sends through the existing message path instead of adding the answer to the composer draft. The cards offer an Other field, preserve drafts when folded, and other clients remove resolved questions after the host records delivery. 384 focused tests and the build pass; physical-phone and live SSH checks are still pending, and fork CI needs maintainer approval. I'd welcome your review of the mobile behavior, especially the choice to submit directly. |
|
Thank you for this PR. Codex async decision cards on mobile (and desktop) have now landed on main via #31652, which covers what this PR targeted. Since this branch is conflicting, we are closing it as superseded. We appreciate the contribution. |
ELI5
Codex can ask questions while it keeps working. Orca mobile now shows those questions and choices in a card. Add to message puts the selected answers into the message box while preserving the existing draft; the user reviews and sends the message normally. Dismiss closes the mobile card locally.
What Changed
request_user_input_asynctitles, string options and title-only questions from loaded Codex transcripts, after the matching assistant completion confirms that Codex displayed them.{"accepted":true}results, unrelated tool activity and settled replay; a new user message clears the local projection.Why
The missing card is reproducible on main. Codex 0.153.4's async handler emits an assistant item and returns immediately; its questions use
titleand optional string options. It does not use the pending JSON-RPC request or blocking TUI selector lifecycle ofrequest_user_input.The installed 1.4.188 bundle and current main already decode the ordinary assistant text. This change adds the missing mobile decision surface, without claiming that the whole transcript was blank.
Linked Issue
Refs #20073
Visual Proof
Selected answers appended to the existing draft
These show the real mobile prompt components mounted in an isolated React Native Web harness at 390×844. The before build uses the base prompt hook. The harness disables transport; it is not an iOS/Android or paired-device screenshot.
Testing
All commands used
ORCA_BACKGROUND_LAUNCH=1where applicable.workinganddone, including reconnect retention. Both assertions failed before the correction and pass afterward.git diff --checkpassed.GitHub PR/Mobile checks currently require approval to run for this external contribution; no full-CI success is claimed. Full workspace typecheck, build and full test suite were not run. Validation used a bounded temporary dependency set (Vitest 4.1.11, TypeScript 6.0.3) because this is a sparse checkout with limited disk space; the local pnpm launcher also fails before execution. Changed JSX/controller behavior has component/controller and browser coverage, not a full Expo typecheck.
AI Disclosure
OpenAI Codex (GPT-6 Astra) assisted with investigation, implementation, tests and review.
Author
GitHub: @jakeparkcolde. X/Twitter handle not supplied.
Review
Self-review found no new platform-specific path/keyboard behavior, RPC method, stream opcode, host status producer, auth/permission policy, or git-provider dependency. SSH/local/folder-workspace behavior uses the existing transcript and draft paths. Work is linear in the loaded transcript; no background poller or persistent host cache is added. Existing mobile theme tokens and the existing question wizard are reused. Async card actions perform no network write and cannot clear a prior send-failure banner as if an answer had been delivered.
Coordinator reviewed the final diff, test output and visual artifacts; actual device/transport verification and full workspace CI remain pending. Latest commit:
d17acefc20ef6a748bf952b23d60ff6776b6fd49, based on upstreamfab78c766952404a1296d519a1dd76df6ed8d12e. The overlap with #19977 was resolved by reusing its newuseMobileBridgeChatPromptWriteshook. An additional independent review found and verified the sticky-status dismissal correction; its focused rerun passed 42 tests across 5 files, with no remaining blocking finding in the reviewed scope.Agent skill upstream boundary
Notes
serverRequest/resolvedfor an async question.Checklist