Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Steered messages render below "Worked for …", so work done after them looks like it came before them #15279

ClosedValeraZSD(GitHub profile, opens in a new tab) opened this issue 2 comments

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/web

Steps to reproduce

  1. Send a prompt that starts a long turn (many tool calls).
  2. While it runs, send one or two more messages with Follow-up behavior set to Steer.
  3. 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

  1. 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 main at 77823bd102. 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

    • A steer stays on the run that's already going. Folds are one per run, and timelineEntryStartsResponse doesn't treat steer or promoted_queued_to_steer as 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

    • The fold row is anchored right after the initiating prompt, and user messages are never hidden, so every tool call from the run lands in that one fold, including work done after each steer. The duration is the run's startedAt to completedAt (for the latest run), so the single label covers the time after the steers too.
    • The current layout is pinned by the test "keeps the duration header at the initiating prompt when steer arrives before output", for both steer and promoted_queued_to_steer. Separately, merged #11828 keeps the in-progress "Working" row under the initiating prompt across repeated steers.
    • Mobile groups the same way: deriveThreadFeedRunFolds keeps user messages out of the fold but still keys it by run.

    Likely fix area

    deriveTurnFolds / timelineEntryStartsResponse on web and deriveThreadFeedRunFolds on mobile. Things to keep in mind:

    • Treating a steer as a response boundary would also move the live "Working" header that #11828 deliberately keeps on the initiating prompt. One option is to split only the settled fold into sections at each steer.
    • Per-section durations can't reuse the run-level 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.

  2. juliusmarminge added labelsbug

  3. juliusmarminge added labelsvia-triage

  4. Note

    🤖 Claude Opus 5.5 responding on behalf of Theo

    Thanks for the report. This is fixed on main in #22783. Please test on the nightly built from main on 2026-10-21, or on the next stable release. If the problem still occurs there, please open a new issue that links to this one, with your version and steps to reproduce it.

Sign in to join this conversation.