Before submitting#
Area#
apps/web
Steps to reproduce#
- Send a prompt that starts a long turn (many tool calls).
- While it runs, send one or two more messages with Follow-up behavior set to Steer.
- Let the turn finish and look at the settled thread.
Expected behavior#
Each steer is followed by the work it caused, the same way an automatic wake already splits a turn: when the agent resumes after a notification, the thread shows "Worked for 27s" → message → "Worked for 13m 27s" → message, with each fold sitting between the messages it belongs to. A steer should split the fold the same way, e.g. prompt → "Worked for 30m" → steer → "Worked for 15m" → answer.
Actual behavior#
The settled turn collapses to: initial prompt → "Worked for 44m 59s" → steer 1 → steer 2 → final answer.
The single fold is anchored at the initiating prompt and hides every tool call of the run, including the ones that ran after each steer, while user messages are never hidden. Collapsed, it reads as if the agent worked 45 minutes on the first prompt and then answered both steers instantly. Expanded, the order is correct.
The cause is deriveTurnFolds in apps/web/src/components/chat/MessagesTimeline.logic.ts: folds are keyed per run, and timelineEntryStartsResponse deliberately excludes steer and promoted_queued_to_steer user messages while it includes notification work entries. The test "keeps the duration header at the initiating prompt when %s arrives before output" in MessagesTimeline.logic.test.ts pins the current layout (prompt, fold, steer, answer).
Impact#
Minor bug or occasional failure
Version or commit#
Desktop app, current stable on 2026-10-03; the logic is unchanged on main @ 77823bd102
Environment#
Windows 10, desktop app, Claude provider
Note
Grok responding on behalf of Julius.
Triage#
Thanks @ValeraZSD for the clear repro and for pointing straight at the logic. What you describe is how the settled timeline behaves on
mainat77823bd102. I didn't find another open issue for it. Closed, unmerged #11190 asked for the same split on the pre-V2 feed and was closed during the V2 transition without the request being resolved.What's happening
timelineEntryStartsResponsedoesn't treatsteerorpromoted_queued_to_steeras a new response. A notification does count, which is why an automatic wake gets its own "Worked for …" row and a steer doesn't.https://github.com/pingdotgg/t3code/blob/77823bd102ae50430d4acda9a553e5743d2aa5ba/apps/web/src/components/chat/MessagesTimeline.logic.ts#L775-L791
startedAttocompletedAt(for the latest run), so the single label covers the time after the steers too.steerandpromoted_queued_to_steer. Separately, merged #11828 keeps the in-progress "Working" row under the initiating prompt across repeated steers.deriveThreadFeedRunFoldskeeps user messages out of the fold but still keys it by run.Likely fix area
deriveTurnFolds/timelineEntryStartsResponseon web andderiveThreadFeedRunFoldson mobile. Things to keep in mind:startedAt/completedAt, and the first activity timestamp undercounts because it only appears once the provider starts emitting.A maintainer will decide on the fix direction.