Files
orca/src/shared
Brennan Benson b26087ffcc fix(chat): keep the reply before a mid-turn message visible in finished turns (#42335)
* fix(chat): keep replies before a mid-turn message visible in folded turns

A person's message is a boundary that keeps the reply before it, and
back-to-back replies stay visible, matching the common pattern for
completed turns. Tracked in #41393.

* fix(chat): fold a reply followed by its own tool work, judged within its turn

Tool-only rows merge into the reply before them, so a reply row that
draws tools is followed by work, not by the next reply. Adjacency is
judged within each turn, and orphaned tool results are not a person's
boundary.

* fix(chat): keep generated-image operations out of back-to-back replies

A generated-image row stripped of its preview still carries its
operation label; it is work, not a spoken reply.

* fix(chat): fold Codex image views and image status lines as work in finished turns

Codex's "Viewed image" rows and image-status lines ("Image generation failed", "preview unavailable") were stored as plain assistant text, so a finished turn counted them as replies and kept them, plus the sentence before them, visible. The Codex producer now marks them as image operations when it writes them, the same way it already marks generated images, and the fold treats them as work.

Tracked in STA-14968.

* fix(chat): keep response actions on the reply, not an image operation; tighten interleaved-turn fold test
2026-11-16 01:18:53 -08:00
..