Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): steers split a finished turn's work instead of stacking under it #22783

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/22783/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

When you steer a turn, all of the agent's tools and thoughts fold into the single "Worked for X" row at the top. The steers stack below it with nothing between them, so you can't tell what the agent did after each steer.

Now each steer splits the folded work:

  • The top row still says "Worked for X". X is the whole turn's time, steers included. It opens the work done before the first steer.
  • Each steer is followed by its own "Continued for Y" row, which opens only the work done after that steer.
  • A steer sent before the agent produced any output does not split anything.

Turns that are still running already show their work in order between steers, so they are unchanged. Created-chat cards follow the collapsed or open state of their own part of the turn.

BeforeAfter
Before: both steers stack under one Worked for rowAfter: each steer is followed by its own Continued for row

Opening one "Continued" row shows only the work after that steer:

After: Continued for 20s opened, showing only that part's tools and messages

Screenshots are from a real steered thread in a dev server with seeded data. Two focused logic tests cover the row layout and fail without the fix.

Reviewed with sol-loop: 2 rounds with GPT-6.1-Sol. Sol verdict: approved

Created with Claude Opus 5.5 in Claude Code (via T3 Code).

🤖 Generated with Claude Code

    1. Approvability

      Verdict: Approved at e94b719

      Macroscope's review found this PR approvable — This is a focused fix to the existing web timeline projection: completed steered turns now split their folded work into independently expandable segments while preserving existing turn duration and thread-card behavior. The added logic is localized and covered by focused tests, with no schema, infrastructure, or sensitive-area changes.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    2. coderabbitai[bot](GitHub profile, opens in a new tab)commented
      Review in Change Stack →

      No actionable comments were generated in the recent review. 🎉

      ℹ️ Recent review info
      ⚙️ Run configuration
      • Configuration used: Path: .coderabbit.config.ts
      • Review profile: CHILL
      • Plan: Team
      • Run ID: a61a2521-184e-4fcf-97d2-e6cb4dfd5e77
      📥 Commits

      Reviewing files that changed from the base of the PR and between 74541bab17270c35f4418d4e543d85628632ed8f and e94b71996cd71a241209aa2dddac321c5e400c54.

      📒 Files selected for processing: 3
      • apps/web/src/components/chat/MessagesTimeline.logic.test.ts
      • apps/web/src/components/chat/MessagesTimeline.logic.ts
      • apps/web/src/components/chat/MessagesTimeline.tsx

      Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

      📝 Walkthrough

      The timeline now splits settled turns at steer messages and gives post-steer work separate collapsible folds. Created-thread summaries are hidden when their entries belong to collapsed folds. Tests cover segment durations, expansion behavior, and summary visibility.

      Changes: Timeline folding

      Layer / File(s)Summary
      Steer-based fold segmentation
      apps/web/src/components/chat/MessagesTimeline.logic.ts, apps/web/src/components/chat/MessagesTimeline.logic.test.ts, apps/web/src/components/chat/MessagesTimeline.tsx
      Steer messages mark segment boundaries in settled turns. Post-steer work receives separate folds with segment-specific durations. Tests cover expanding a continued segment.
      Collapsed-fold summary visibility
      apps/web/src/components/chat/MessagesTimeline.logic.ts, apps/web/src/components/chat/MessagesTimeline.logic.test.ts
      Collapsed folds track all member entry IDs. Created-thread summaries are filtered by fold membership and terminal assistant position. Tests cover summaries and later entries after a steer.

      Priority: ⬇️ Low

      Estimated code review effort: 3 (Moderate) | ~20 minutes

      Change: Bug fix

      Possibly related issues

      • pingdotgg/t3code issue 2017: The change affects how folded work logs appear after steer messages. The issue’s reported checkpoint failure cause is separate and is not addressed by this change.

      Suggested reviewers: juliusmarminge

      Merge Risk: ⚪ Minimal · up to e94b7

      The full-turn duration row behaves as intended, and no issue remains that should block merging after normal checks.

      Pre-merge checks: Passed 3 · Failed 1
      Failed Failed checks: 1 warning
      Check nameStatusExplanationResolution
      Description checkWarningThe description clearly explains the problem, the behavior change, verification evidence, screenshots, and agent attribution. It does not provide the required Scope and approval information. The GPT r…Add a link to the triaged issue or maintainer discussion with the explicit approval comment. If this is an obvious focused bug that does not require prior approval, explain why it qualifies for that exemption.
      Passed Passed checks: 3 passed
      Check nameStatusExplanation
      Title checkPassedThe title clearly and concisely describes the main change: steers split completed-turn work instead of stacking it under one folded row.
      Linked Issues checkPassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes checkPassedCheck skipped because no linked issues were found for this pull request.
      Full details: Description check

      Explanation

      The description clearly explains the problem, the behavior change, verification evidence, screenshots, and agent attribution. It does not provide the required Scope and approval information. The GPT review is not maintainer approval and does not link a triaged issue or approved discussion.

      Resolution

      Add a link to the triaged issue or maintainer discussion with the explicit approval comment. If this is an obvious focused bug that does not require prior approval, explain why it qualifies for that exemption.

      ✨ Finishing Touches
      📝 Generate docstrings
      • Commit to this branch
      • Create a new PR
      🧪 Generate unit tests (beta)
      • Commit to this branch
      • Create a new PR
      • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
      Comment `@coderabbitai help` to get the list of available commands.

Sign in to join this conversation.