Files
t3code/docs
Ben DavisandClaude Opus 5 a4000b86da fix: fold the Hermes status line into the turn's activity
A finished Hermes turn rendered its activity in two places: the collapsed
"Worked for …" fold above the answer, plus a stray "Work Log" section below it
holding a single "Hermes activity" row.

T3 orders the timeline by item timestamp and folds a settled turn's entries
behind the "Worked for …" row — but only those preceding the turn's terminal
assistant message (`MessagesTimeline.logic.ts:283-358`). `_complete_turn`
closed the assistant message first and the live status item second, stamping
the status ~2ms later, so it sorted below the answer and escaped the fold.
Confirmed in the projection: assistant at 06:09:45.751, status activity at
06:09:45.753.

Completing the status item first puts it back above the terminal message,
where it joins the rest of the turn's activity. The "Work Log" surface itself
is provider-generic and correct — only our emission order was wrong.

The regression test asserts the two `item.completed` frames arrive as
[status_text, assistant_message]; restoring the old order fails it.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
2026-07-25 23:14:13 -07:00
..