Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): fold interim turn responses #8828

Mergedmaria-rcksmerged 1 commit intomain fromrefs/pull/8828/headmerged by juliusmarminge View on GitHub

maria-rckscommented

Completed turns kept the first assistant update visible above the elapsed work row, which duplicated interim commentary after the turn settled. This folds every pre-final assistant response behind the elapsed work row while preserving the terminal response below it. Verified with 84 focused timeline tests, the web typecheck, targeted lint, and formatting checks.

Produced with gpt-5.6-sol through the Codex harness.


Note

Low Risk UI-only timeline folding logic in the web chat component, covered by existing timeline unit tests with no API or data changes.

Overview Settled chat turns now show only the final assistant message below the elapsed-work row. Interim assistant replies and tool/work activity that used to stay visible above the “Worked for …” fold are hidden until the user expands the turn.

deriveTurnFolds in MessagesTimeline.logic.ts no longer exempts the first assistant entry from hiddenEntryIds—only the terminal assistant message and agent-spawn work rows stay out of the fold. Collapsed timelines go user → turn-fold → final answer instead of keeping an opening assistant bubble on top; expanding the fold still reveals the first assistant message and work toggles in order.

Tests were renamed and updated to match the new collapsed/expanded row order.

Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 6a363238612ff7f9ab3a215987324949bdf1950c. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).

Note

Fold all interim assistant messages in settled turns in deriveTurnFolds

Settled non-streaming turns now hide every assistant message before the terminal one behind the fold, instead of keeping the first assistant message visible. Agent-spawn work entries remain excluded from folding.

  • Updated MessagesTimeline.logic.ts by removing the first-assistant-message preservation condition and its associated entry computation.
  • Adjusted expectations in MessagesTimeline.logic.test.ts to match the new collapsed-row ordering.
  • Risk: any UI logic or snapshot relying on the first assistant message staying visible in a settled turn will break; check consumers of deriveTurnFolds output and any pinned snapshot tests.
Macroscope summarized 6a36323.
    1. Important

      Review skipped

      Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

      ⚙️ Run configuration

      Configuration used: Repository UI

      Review profile: CHILL

      Plan: Pro Plus

      Run ID: e61f522d-afed-4266-9e1a-20d4c9ae3e46

      You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

      Use the checkbox below for a quick retry:

      • 🔍 Trigger review

      Warning

      Your free Security trial is over. An organization admin can activate Security or dismiss this notice.


      Comment `@coderabbitai help` to get the list of available commands.
    2. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted

    3. maria-rcks added labelspreview:web

    4. Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

      Fix All in Cursor ❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the [Cursor dashboard](https://www.cursor.com/dashboard/bugbot). Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 6a363238612ff7f9ab3a215987324949bdf1950c. Configure [here](https://www.cursor.com/dashboard/bugbot).
    5. Approvability

      Verdict: Not approved

      Macroscope's review found this PR not approvable — This changes the default settled-turn presentation so the first assistant response is folded away and the terminal response appears alone, affecting existing user-visible timelines. An unresolved substantive concern says this can hide the main answer behind the work fold, so the behavior warrants human review.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    6. juliusmarminge merged this17c48f7

    7. juliusmarminge closed this

Sign in to join this conversation.