Files
orca/mobile/src
OrcaWinandOrcaWin 321574af87 fix(native-chat): steer async question answers instead of queuing duplicates (#36917)
* fix(native-chat): stop async question Submit from queuing duplicate answers

When the agent is mid-turn, answering a Codex async question queues the
answer as an ordinary message. The card stayed up until a transcript row
retired it, which a queued message never posts until the turn ends, so
every Submit queued another copy. Hide the occurrence once its answer is
queued, on desktop and phone.

* fix(native-chat): steer async question answers into the running turn

An answer to the agent's own mid-turn question belongs to that turn.
Queuing it behind the follow-up setting held it until the turn ended,
after the agent had already proceeded without it. Send it with the
steer intent whenever the follow-up resolver would queue a plain send,
on desktop and phone. Stop and a waiting command still queue, and the
queued fallback still hides the card.

* fix(native-chat): hold async questions while a queued answer waits

Replace the mount-scoped hide on a queued answer with one derived from
the queue: a question stays hidden while a queued card quotes it, across
remounts, and returns if that card is deleted or edited away. Lock
Submit until the send settles, and keep a returned answer out of the
composer draft.

* fix(native-chat): keep structured session under the line cap

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-01 01:43:26 -08:00
..