Repository navigation
fix(ui): completed turns scatter work across many Worked disclosures - #188045
Conversation
Restore the completed-turn presentation that predates #183267: in completed dashboard turns, preamble, commentary, reasoning and tool activity fold into one "Worked for X" disclosure above the answer, work recorded after the answer moves above it, and speech bubble view keeps its activity disclosure without a second rollup. Remove the per-envelope work splitting (chat-work-chunks), its envelope bookkeeping in tool cards and source previews, and the split-fragment action/footer/terminal-status ownership fields. Restore session timing for the rollup and the prior test expectations, keeping later unrelated main changes (#186323, 4d50f6c handoff split, 210b364, bd10ba2, the video widget lazy-import wait and the empty-group avatar guard from #186499). Add regression coverage for Markdown narration order, tool-result images staying in their tool group, post-answer work above the answer and bubble mode without a rollup. Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 18f1a29d-eed5-4a6e-9d33-e5dc8590b854
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR restores one completed-turn work disclosure above the answer and removes mixed-envelope splitting. Example: A settings-spacing turn includes narration, three tool steps, an answer, and a final test run.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it implements an owner-approved presentation repair absent from fetched main, and no actionable introduced defect remains in the reviewed head. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI projects stored messages and live session facts into transcript groups, work disclosures, run frames, and reply actions without rewriting the transcript. flowchart TD
A[Stored messages and session facts] --> B[Message grouping]
B --> C[Completed turn presentation]
C --> D[Run frames and transcript indexes]
D --> E[Work disclosure]
D --> F[Answer and reply actions]
Technical reviewBest possible solution: Land the existing single-rollup implementation after the current-head CI gate completes. Do we have a high-confidence way to reproduce the issue? Fetched-main source implements per-stretch disclosures, and inspected before/after screenshots establish the visible problem; no target code was executed during this review. Is this the best way to solve the issue? The change restores the approved presentation through existing grouping, recap, and message owners while removing the superseded splitting path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3a0d1de6c33d. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource -260, Tests -1203, Docs -2, Other 0. Total -1465 across 42 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (2 earlier review cycles)
Reviewed October 30, 2026, 12:39 AM ET / 04:39 UTC (Revision 3). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
…penclaw#188045) * fix(ui): completed turns scatter work across many Worked disclosures Restore the completed-turn presentation that predates openclaw#183267: in completed dashboard turns, preamble, commentary, reasoning and tool activity fold into one "Worked for X" disclosure above the answer, work recorded after the answer moves above it, and speech bubble view keeps its activity disclosure without a second rollup. Remove the per-envelope work splitting (chat-work-chunks), its envelope bookkeeping in tool cards and source previews, and the split-fragment action/footer/terminal-status ownership fields. Restore session timing for the rollup and the prior test expectations, keeping later unrelated main changes (openclaw#186323, 5429704 handoff split, 853d946, 3fad731, the video widget lazy-import wait and the empty-group avatar guard from openclaw#186499). Add regression coverage for Markdown narration order, tool-result images staying in their tool group, post-answer work above the answer and bubble mode without a rollup. Co-authored-by: vyctorbrzezowski <[email protected]> * fix(ui): completed turns scatter work across many Worked disclosures Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 18f1a29d-eed5-4a6e-9d33-e5dc8590b854 * fix(ui): preserve completed-turn outcomes and reply ownership * fix(ui): retain forwarded narration and prepared action text --------- Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: Vyctor H. Brzezowski <[email protected]>
…#140835) Root cause: `ui/src/pages/chat/chat-turn-presentation.ts:150` (`isCollapsibleWorkGroup`) treats every assistant text group that is not an explicit final answer as foldable work in a completed OpenAI turn. Text written before a tool call over Chat Completions has no phase label, only `stopReason: "toolUse"`, so a long explanation the user already read folds into **Worked for…** with the tools, and only the short closing line stays. ## What Problem This Solves Reported by @leapdragon on 2026.9.2 with an `openai-completions` transport: the agent streams a long reply, calls a tool, then writes a short final line. When the turn completes, the long reply disappears behind the **Worked for** row. Current main still does this for OpenAI models over Chat Completions (OpenAI-compatible proxies such as LiteLLM/OpenRouter-style providers). ## Why This Change Was Made Rule: assistant text folds into **Worked for…** only when the model labels it `commentary`. Unlabeled text stays visible below the one **Worked for** row, in source order. Tools, reasoning and labeled commentary still fold; there is still one rollup per turn (#188045). Why this rule: - The label is the model's own signal. OpenAI models that emit `phase` are told commentary may be hidden, so folding it loses nothing. - A length cut-off or other guess about whether model text is "just status" would be a heuristic judge on model output. An absent label is unknown, not commentary, as #197429 argued. - Where no label exists, the text stays visible, which is what every non-OpenAI model already does since #197429. This makes OpenAI-over-Chat-Completions consistent with that, not a new layout. Where the label comes from: | Path | Pre-tool text labeled `commentary`? | Source | |---|---|---| | OpenAI Responses, models that emit `phase` | Yes, folds | `packages/ai/src/transports/openai-responses-stream-internal.ts` stores `item.phase` as the text signature | | Codex app-server harness | Yes, when Codex sends a phase | `extensions/codex/src/app-server/transcript-history-projection.ts` keeps the item phase | | OpenAI Responses, models without `phase` | No, stays visible | Same transport; no phase to store | | Chat Completions, any model | No, stays visible | The format has no phase field | Known cost: on Chat Completions and on Responses models that don't emit `phase`, short status lines such as "Let me check the notes file." now stay visible under **Worked for** instead of folding. This ports @leapdragon's fix from the old `chat-thread-grouping.ts` (now a thin wrapper) to the current presentation owner. The old review finding (tool batches on either side of kept text) doesn't apply here, because the current owner partitions work and answers separately instead of scanning backwards. ## User Impact - Text written before a tool call without a commentary label stays visible after the turn completes and after reload. - Labeled commentary, reasoning and tool activity still fold into **Worked for…**. - Turns without tools and non-OpenAI turns don't change. ## Evidence Built Gateway and Control UI (Docker, `node:24.22.1`), scripted models (`proxy/openai/gpt-5.4` on `openai-completions`, `resp/openai/gpt-5.5` on `openai-responses`), real Chromium. Each scenario runs in its own dashboard session: during streaming, after completion, then after reload. | Build | Wire | Long pre-tool text | Short unlabeled status line | Labeled commentary | No-tool turn | |---|---|---|---|---|---| | main `41fcd490fb4d` (2 runs) | Chat Completions | folded away | folded | n/a | visible | | main `41fcd490fb4d` | Responses | n/a | folded | folded | n/a | | fix `77ec6f2633f5` | Chat Completions | visible (after and reload) | visible | n/a | visible | | fix `77ec6f2633f5` | Responses | n/a | visible | folded | n/a | Proof lines: #140835 (comment). Screenshots: #140835 (comment). Regression test `keeps unlabeled pre-tool text visible while labeled commentary folds` in `chat-thread-grouping.test.ts` covers the boundary. Tests that covered other folding rules now use labeled commentary fixtures. Tests that asserted unlabeled text folds now expect it to stay visible. Focused chat presentation suites pass (17 files, 310 tests, plus browser shards). ## Merge danger Two-way door: display grouping only, with no stored history, config or protocol change. A revert restores the previous folding. Blast radius: completed dashboard turns answered by OpenAI models without a commentary label. Co-authored-by: Ayaan Zaidi <[email protected]>
…#140835) Root cause: `ui/src/pages/chat/chat-turn-presentation.ts:150` (`isCollapsibleWorkGroup`) treats every assistant text group that is not an explicit final answer as foldable work in a completed OpenAI turn. Text written before a tool call over Chat Completions has no phase label, only `stopReason: "toolUse"`, so a long explanation the user already read folds into **Worked for…** with the tools, and only the short closing line stays. ## What Problem This Solves Reported by @leapdragon on 2026.9.2 with an `openai-completions` transport: the agent streams a long reply, calls a tool, then writes a short final line. When the turn completes, the long reply disappears behind the **Worked for** row. Current main still does this for OpenAI models over Chat Completions (OpenAI-compatible proxies such as LiteLLM/OpenRouter-style providers). ## Why This Change Was Made Rule: assistant text folds into **Worked for…** only when the model labels it `commentary`. Unlabeled text stays visible below the one **Worked for** row, in source order. Tools, reasoning and labeled commentary still fold; there is still one rollup per turn (#188045). Why this rule: - The label is the model's own signal. OpenAI models that emit `phase` are told commentary may be hidden, so folding it loses nothing. - A length cut-off or other guess about whether model text is "just status" would be a heuristic judge on model output. An absent label is unknown, not commentary, as #197429 argued. - Where no label exists, the text stays visible, which is what every non-OpenAI model already does since #197429. This makes OpenAI-over-Chat-Completions consistent with that, not a new layout. Where the label comes from: | Path | Pre-tool text labeled `commentary`? | Source | |---|---|---| | OpenAI Responses, models that emit `phase` | Yes, folds | `packages/ai/src/transports/openai-responses-stream-internal.ts` stores `item.phase` as the text signature | | Codex app-server harness | Yes, when Codex sends a phase | `extensions/codex/src/app-server/transcript-history-projection.ts` keeps the item phase | | OpenAI Responses, models without `phase` | No, stays visible | Same transport; no phase to store | | Chat Completions, any model | No, stays visible | The format has no phase field | Known cost: on Chat Completions and on Responses models that don't emit `phase`, short status lines such as "Let me check the notes file." now stay visible under **Worked for** instead of folding. This ports @leapdragon's fix from the old `chat-thread-grouping.ts` (now a thin wrapper) to the current presentation owner. The old review finding (tool batches on either side of kept text) doesn't apply here, because the current owner partitions work and answers separately instead of scanning backwards. ## User Impact - Text written before a tool call without a commentary label stays visible after the turn completes and after reload. - Labeled commentary, reasoning and tool activity still fold into **Worked for…**. - Turns without tools and non-OpenAI turns don't change. ## Evidence Built Gateway and Control UI (Docker, `node:24.22.1`), scripted models (`proxy/openai/gpt-5.4` on `openai-completions`, `resp/openai/gpt-5.5` on `openai-responses`), real Chromium. Each scenario runs in its own dashboard session: during streaming, after completion, then after reload. | Build | Wire | Long pre-tool text | Short unlabeled status line | Labeled commentary | No-tool turn | |---|---|---|---|---|---| | main `41fcd490fb4d` (2 runs) | Chat Completions | folded away | folded | n/a | visible | | main `41fcd490fb4d` | Responses | n/a | folded | folded | n/a | | fix `77ec6f2633f5` | Chat Completions | visible (after and reload) | visible | n/a | visible | | fix `77ec6f2633f5` | Responses | n/a | visible | folded | n/a | Proof lines: #140835 (comment). Screenshots: #140835 (comment). Regression test `keeps unlabeled pre-tool text visible while labeled commentary folds` in `chat-thread-grouping.test.ts` covers the boundary. Tests that covered other folding rules now use labeled commentary fixtures. Tests that asserted unlabeled text folds now expect it to stay visible. Focused chat presentation suites pass (17 files, 310 tests, plus browser shards). ## Merge danger Two-way door: display grouping only, with no stored history, config or protocol change. A revert restores the previous folding. Blast radius: completed dashboard turns answered by OpenAI models without a commentary label. Co-authored-by: Ayaan Zaidi <[email protected]> (cherry picked from commit 3f475cc)
…openclaw#140835) Root cause: `ui/src/pages/chat/chat-turn-presentation.ts:150` (`isCollapsibleWorkGroup`) treats every assistant text group that is not an explicit final answer as foldable work in a completed OpenAI turn. Text written before a tool call over Chat Completions has no phase label, only `stopReason: "toolUse"`, so a long explanation the user already read folds into **Worked for…** with the tools, and only the short closing line stays. ## What Problem This Solves Reported by @leapdragon on 2026.9.2 with an `openai-completions` transport: the agent streams a long reply, calls a tool, then writes a short final line. When the turn completes, the long reply disappears behind the **Worked for** row. Current main still does this for OpenAI models over Chat Completions (OpenAI-compatible proxies such as LiteLLM/OpenRouter-style providers). ## Why This Change Was Made Rule: assistant text folds into **Worked for…** only when the model labels it `commentary`. Unlabeled text stays visible below the one **Worked for** row, in source order. Tools, reasoning and labeled commentary still fold; there is still one rollup per turn (openclaw#188045). Why this rule: - The label is the model's own signal. OpenAI models that emit `phase` are told commentary may be hidden, so folding it loses nothing. - A length cut-off or other guess about whether model text is "just status" would be a heuristic judge on model output. An absent label is unknown, not commentary, as openclaw#197429 argued. - Where no label exists, the text stays visible, which is what every non-OpenAI model already does since openclaw#197429. This makes OpenAI-over-Chat-Completions consistent with that, not a new layout. Where the label comes from: | Path | Pre-tool text labeled `commentary`? | Source | |---|---|---| | OpenAI Responses, models that emit `phase` | Yes, folds | `packages/ai/src/transports/openai-responses-stream-internal.ts` stores `item.phase` as the text signature | | Codex app-server harness | Yes, when Codex sends a phase | `extensions/codex/src/app-server/transcript-history-projection.ts` keeps the item phase | | OpenAI Responses, models without `phase` | No, stays visible | Same transport; no phase to store | | Chat Completions, any model | No, stays visible | The format has no phase field | Known cost: on Chat Completions and on Responses models that don't emit `phase`, short status lines such as "Let me check the notes file." now stay visible under **Worked for** instead of folding. This ports @leapdragon's fix from the old `chat-thread-grouping.ts` (now a thin wrapper) to the current presentation owner. The old review finding (tool batches on either side of kept text) doesn't apply here, because the current owner partitions work and answers separately instead of scanning backwards. ## User Impact - Text written before a tool call without a commentary label stays visible after the turn completes and after reload. - Labeled commentary, reasoning and tool activity still fold into **Worked for…**. - Turns without tools and non-OpenAI turns don't change. ## Evidence Built Gateway and Control UI (Docker, `node:24.22.1`), scripted models (`proxy/openai/gpt-5.4` on `openai-completions`, `resp/openai/gpt-5.5` on `openai-responses`), real Chromium. Each scenario runs in its own dashboard session: during streaming, after completion, then after reload. | Build | Wire | Long pre-tool text | Short unlabeled status line | Labeled commentary | No-tool turn | |---|---|---|---|---|---| | main `dfa14eda1208` (2 runs) | Chat Completions | folded away | folded | n/a | visible | | main `dfa14eda1208` | Responses | n/a | folded | folded | n/a | | fix `77ec6f2633f5` | Chat Completions | visible (after and reload) | visible | n/a | visible | | fix `77ec6f2633f5` | Responses | n/a | visible | folded | n/a | Proof lines: openclaw#140835 (comment). Screenshots: openclaw#140835 (comment). Regression test `keeps unlabeled pre-tool text visible while labeled commentary folds` in `chat-thread-grouping.test.ts` covers the boundary. Tests that covered other folding rules now use labeled commentary fixtures. Tests that asserted unlabeled text folds now expect it to stay visible. Focused chat presentation suites pass (17 files, 310 tests, plus browser shards). ## Merge danger Two-way door: display grouping only, with no stored history, config or protocol change. A revert restores the previous folding. Blast radius: completed dashboard turns answered by OpenAI models without a commentary label. Co-authored-by: Ayaan Zaidi <[email protected]>
…#140835) Root cause: `ui/src/pages/chat/chat-turn-presentation.ts:150` (`isCollapsibleWorkGroup`) treats every assistant text group that is not an explicit final answer as foldable work in a completed OpenAI turn. Text written before a tool call over Chat Completions has no phase label, only `stopReason: "toolUse"`, so a long explanation the user already read folds into **Worked for…** with the tools, and only the short closing line stays. ## What Problem This Solves Reported by @leapdragon on 2026.9.2 with an `openai-completions` transport: the agent streams a long reply, calls a tool, then writes a short final line. When the turn completes, the long reply disappears behind the **Worked for** row. Current main still does this for OpenAI models over Chat Completions (OpenAI-compatible proxies such as LiteLLM/OpenRouter-style providers). ## Why This Change Was Made Rule: assistant text folds into **Worked for…** only when the model labels it `commentary`. Unlabeled text stays visible below the one **Worked for** row, in source order. Tools, reasoning and labeled commentary still fold; there is still one rollup per turn (#188045). Why this rule: - The label is the model's own signal. OpenAI models that emit `phase` are told commentary may be hidden, so folding it loses nothing. - A length cut-off or other guess about whether model text is "just status" would be a heuristic judge on model output. An absent label is unknown, not commentary, as #197429 argued. - Where no label exists, the text stays visible, which is what every non-OpenAI model already does since #197429. This makes OpenAI-over-Chat-Completions consistent with that, not a new layout. Where the label comes from: | Path | Pre-tool text labeled `commentary`? | Source | |---|---|---| | OpenAI Responses, models that emit `phase` | Yes, folds | `packages/ai/src/transports/openai-responses-stream-internal.ts` stores `item.phase` as the text signature | | Codex app-server harness | Yes, when Codex sends a phase | `extensions/codex/src/app-server/transcript-history-projection.ts` keeps the item phase | | OpenAI Responses, models without `phase` | No, stays visible | Same transport; no phase to store | | Chat Completions, any model | No, stays visible | The format has no phase field | Known cost: on Chat Completions and on Responses models that don't emit `phase`, short status lines such as "Let me check the notes file." now stay visible under **Worked for** instead of folding. This ports @leapdragon's fix from the old `chat-thread-grouping.ts` (now a thin wrapper) to the current presentation owner. The old review finding (tool batches on either side of kept text) doesn't apply here, because the current owner partitions work and answers separately instead of scanning backwards. ## User Impact - Text written before a tool call without a commentary label stays visible after the turn completes and after reload. - Labeled commentary, reasoning and tool activity still fold into **Worked for…**. - Turns without tools and non-OpenAI turns don't change. ## Evidence Built Gateway and Control UI (Docker, `node:24.22.1`), scripted models (`proxy/openai/gpt-5.4` on `openai-completions`, `resp/openai/gpt-5.5` on `openai-responses`), real Chromium. Each scenario runs in its own dashboard session: during streaming, after completion, then after reload. | Build | Wire | Long pre-tool text | Short unlabeled status line | Labeled commentary | No-tool turn | |---|---|---|---|---|---| | main `41fcd490fb4d` (2 runs) | Chat Completions | folded away | folded | n/a | visible | | main `41fcd490fb4d` | Responses | n/a | folded | folded | n/a | | fix `77ec6f2633f5` | Chat Completions | visible (after and reload) | visible | n/a | visible | | fix `77ec6f2633f5` | Responses | n/a | visible | folded | n/a | Proof lines: #140835 (comment). Screenshots: #140835 (comment). Regression test `keeps unlabeled pre-tool text visible while labeled commentary folds` in `chat-thread-grouping.test.ts` covers the boundary. Tests that covered other folding rules now use labeled commentary fixtures. Tests that asserted unlabeled text folds now expect it to stay visible. Focused chat presentation suites pass (17 files, 310 tests, plus browser shards). ## Merge danger Two-way door: display grouping only, with no stored history, config or protocol change. A revert restores the previous folding. Blast radius: completed dashboard turns answered by OpenAI models without a commentary label. Co-authored-by: Ayaan Zaidi <[email protected]> (cherry picked from commit 3f475cc) Companion audit: Pair the commentary fixture alignment (#206811) with visible unphased pre-final answer text (#140835); no later companion required. Co-authored-by: RomneyDa <[email protected]>
Related: #183267
What Problem This Solves
Fixes: completed dashboard turns scatter their work across many Worked disclosures, leave work recorded after the answer hanging below it, and split tool-result images out of their tool group, since #183267 changed the completed-turn presentation.
User Impact
User impact: a completed dashboard turn again shows one Worked for X disclosure above the answer, holding the preamble, commentary, reasoning and tool activity in their original order. Work recorded after the answer sits above it, tool-result images stay with the tool that produced them, and speech bubble view keeps its single activity disclosure instead of wrapping it in a second Worked row. The stored transcript stays intact; existing live-turn, search and handoff boundaries are retained.
Why This Change Was Made
#183267 by @Marvinthebored replaced the single completed-turn rollup with per-envelope splitting (
chat-work-chunks.ts), so narration became visible between one Worked disclosure per work stretch. The single rollup was a deliberate design by @vyctorbrzezowski, and replaying real transcripts (Anthropic, OpenAI, Codex and agent API runs) atad55c5e,e7f0546and current main showed the split presentation also introduced regressions, listed below.This is a forward change that restores the earlier presentation in the files #183267 changed, rather than a revert commit. It removes the splitting module, its tool-card envelope bookkeeping, the split-fragment action/footer/terminal-status fields and the per-stretch timing, and restores the rollup's session timing and the earlier test expectations (including the three e2e expectations later adapted in
8c05667). Later unrelated main work is kept: #186323, the published-PR handoff split (4d50f6c), grouped work without failed counts (210b364), cached row display facts (#186512), the video widget lazy-import wait, and the empty-group guard from #186499 for provider voice groups. ThepresentationOwnsFooterclauses from #186499 and #186681 go away with the fields they guarded. The test-line scalar returns the 2,089 lines #183267 added.Regressions observed on main that this restores
collapseCompletedTurnWorkran 5–10x slower.view_imageframes) split out of their tool group into standalone assistant rows.Evidence
Screenshots: real Control UI against the mock Gateway with synthetic data, 1100 px, light theme. Before is current main (
589348d), after is this branch.Flat completed turn with narration between tool calls and a test run after the answer
Before:
After (collapsed):
After (expanded):
Speech bubble view, same turn
Before:
After:
view_imagetool result with two framesBefore:
After:
Tests:
chat-thread-grouping.test.ts(Markdown and plain narration stay in one ordered rollup, tool-result images stay in their tool group, post-answer work moves above the answer, bubble mode gets no rollup) fail on main's presentation code and pass here (4/4 red on589348d, green on this branch).chat-bubble-activity.e2enow asserts no.chat-work-groupin bubble view and one activity disclosure that opens the tool summary in a single click.vitest.uioverui/src/pages/chatandui/src/lib/chat: 629 files passed.ui/src/e2e/chat-*suite: 1046 tests passed. The 17*.real-gatewaysuites failed at setup in this shared worktree (Gateway entrypoint/plugin build not prepared; no assertion ran) and are not passing live-Gateway evidence. The original PR CI also skipped its real-Gateway lane.chat-loading-geometryhit a transient artifact lock and passes on rerun.chat-stream-runtime-budgets(delta-burst commits) andchat-outbox-migration(v3 Blob migration) fail identically on current main589348din a side-by-side rerun, so they are not caused by this change.pnpm tsgo:ui,pnpm tsgo:test:ui, oxlint and oxfmt on the touched files, andpnpm check:test-lines-ratchet --staged: pass.589348d, P1): no actionable findings.Review repairs and current validation
Independent review and the subsequent full CI identified these additional cases in the proposed rollup, now fixed:
final_answerorstop) keeps its visible answer and actions.The existing presentation, recap and message owners implement these repairs; no additional state owner or compatibility path was introduced. Focused regressions fail on the uncorrected PR head and pass with the repairs. The terminal error/abort cases were relocated into the existing grouping suite to reuse its history assertions and keep the thread test file within its line cap.
Focused repair validation: 283 tests passed across the chat owners and progress suite. The latest grouping and action refinements passed 205 affected tests across seven suites, plus UI and UI-test typechecks and targeted lint/format checks. Both CI failures reproduced locally before repair. Explicit forwarded-answer cases also fail on the original PR grouping and pass with the final implementation. After the test-only relocation, both terminal cases were again confirmed red on the uncorrected presentation and green with the fix (1.22 seconds wrapper wall time for the green run). Line-cap and test-line ratchets pass without raising their baselines (6,280,129 test lines against a 6,326,480 ceiling). Fresh independent reviews of the initial repairs and the final CI repair delta returned no actionable P0–P2 findings. Full PR CI run 41003470362 passed on head
12eef1abf280e31b008795e8c90eb16e9d1c1362. Its tested merge9ddca045716bc844e7084eec72314375cdb863a8includes #186061; the merged source preserves per-message timestamps, Reply controls, hover/touch behavior, and main's grouped-message CSS.Risk and coverage
This changes how completed-turn content is grouped, so failure visibility, reply actions, run ownership and cached timing are the main regression risks. The focused tests exercise those boundaries. The screenshots above use the real Control UI with a mock Gateway and synthetic messages; they are not live-Gateway proof. Earlier broad test results above describe the original implementation and are not relabeled as runs on the repair commit. No successful real-Gateway run is claimed.
Requested by @vyctorbrzezowski.
Work sessions
Worked on by