GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(web): a streamed reply no longer re-renders every row in the timeline by Entrpi · Pull Request #32756 · pingdotgg/t3code

Conversation

@Entrpi

@Entrpi Entrpi commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Problem

Since #30478, every row in the timeline re-renders on every update. Each streamed text delta of a reply re-renders all mounted rows, not just the reply. On a long thread with a live turn that is 318 component renders per delta, where the reply alone needs 26.

Change

#30478's fold reveal made onToggleTurnFold and onToggleWorkGroup read rows, which ConversationTimeline declares further down. The React Compiler can't memoize a closure that reads a later binding, so both toggles were new on every render. So were the row context built from them (sharedState), renderItem and extraData. Legend re-rendered every row, and every row that reads the context re-rendered with it.

  • The reveal helper and the two toggles move below rows and use useStableCallback, so the row context stays the same across updates. A click still reads the latest rows.
  • foldRevealBaseIds joins extraData. Legend re-renders rows only when data or extraData changes, and the per-render churn had been doing that for the reveal. Without it, "keeps the worked-for heading in place when expanded at the bottom" fails.

main doesn't have this, since its toggles don't read rows: 24 component renders per delta.

@maria-rcks: if you'd rather fold this into the stack yourself, the diff is small, and either way is fine with me.

Scope and approval

A focused fix of a render regression, with no visible change, on the branch #30478 merged into. It qualifies as a very small fix of an obvious bug: rows re-render although nothing in them changed.

Verification

  • New test in MessagesTimeline.browser.test.tsx, "leaves earlier rows alone while a reply streams". An HTML render row counts its renders while a later reply streams 10 deltas: before the fix it goes from 3 to 13; with it, it stays at 3.

  • Render counts in headless Chromium (dev build), with a 2,000-item thread and a live turn of 200 settled edits:

    Per update Before After
    Components rendered, text delta 318 26
    Components rendered, new work item about 353 84
    React time across 150 text deltas 732–1,087 ms 326–336 ms
    Slowest 10% of text deltas 9.7–14.8 ms 2.5–2.9 ms

    The milliseconds are from React's development build, which exaggerates them. The render counts hold in any build.

  • The render scenarios in test/renderScenarios.renders.tsx (via scripts/render-metrics.ts compare): mount-thread 1,163 → 818 renders (−30%), switch-thread 1,265 → 1,001 (−21%), the others unchanged. stream-assistant-turn passes new callbacks on every rerender, so every row re-renders there on main too, and it can't show this.

  • Real client: a dev build of the full redesign stack with this commit on top, using a Replay (dev) showcase turn. I read React's fibers read-only during the stream. Before the fix, the row context changed on all 23 updates, each time naming the toggles, and the prompt row re-rendered 11 times. After the fix, the toggles never changed; only pendingApprovals did, while the approval request arrived. I also opened and closed a turn fold, which ran its reveal animation and cleared it, and expanded and collapsed a work entry. The background-group test in MessagesTimeline.browser.test.tsx covers onToggleWorkGroup.

  • vp run check:changed origin/maria/redesign/2-composer-timeline passes: format, lint, knip, typecheck, the tests beside the change, and React Compiler coverage.

Claude Opus 5.5 via Claude Code, in T3 Code.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Nov 8, 2026
@macroscopeapp

macroscopeapp Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at 6479ddb

Macroscope's review found this PR approvable — This change reduces unnecessary timeline-row rendering during streamed replies while retaining fold-reveal updates. Its effects are limited to client-side rendering, with no changes to product defaults or persistent data.

You can add or adjust custom eligibility rules. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

macroscopeapp[bot]
macroscopeapp Bot approved these changes Nov 8, 2026
View reviewed changes
This was referenced Nov 8, 2026
fix(web): a streamed text delta no longer reruns the timeline's whole-thread passes #32769
Closed
fix(web): the working window and background groups stop rescanning the whole thread #32782
Closed
fix(web): open turn folds no longer make each timeline update quadratic #32786
Closed
feat(web): approvals, questions and the queue move into the composer #28840
Open
test(web): the streaming render scenario gives the timeline stable props #32792
Merged
@maria-rcks
maria-rcks force-pushed the maria/redesign/2-composer-timeline branch from 009f859 to fafc8d6 Compare November 9, 2026 02:29
@Entrpi
Entrpi force-pushed the fix/redesign-rows-skip-stream-updates branch from 6479ddb to 99ab6b0 Compare November 9, 2026 02:39
@maria-rcks
maria-rcks force-pushed the maria/redesign/2-composer-timeline branch from fafc8d6 to c93f867 Compare November 9, 2026 05:45
@Entrpi
Entrpi force-pushed the fix/redesign-rows-skip-stream-updates branch from 99ab6b0 to 16d8e7d Compare November 9, 2026 05:55
@maria-rcks
maria-rcks force-pushed the maria/redesign/2-composer-timeline branch from c93f867 to 4ae0e72 Compare November 9, 2026 07:55
flamboh and others added 14 commits November 9, 2026 08:45
@flamboh @maria-rcks
fix(web): collapsing the working window no longer nudges the timeline (…
4f1893a
…pingdotgg#30466)
@flamboh @maria-rcks
fix(web): the working window's scrollbar shows its whole history from…
311bf8c
… the start (pingdotgg#30419)
@flamboh @maria-rcks
fix(web): finished and wake-up folds work like the live working fold (p…
61aa05b
…ingdotgg#30478)
@flamboh @maria-rcks
fix(web): finished turn folds show the live timer's duration format (p…
65b0303
…ingdotgg#30490)
@maria-rcks
fix(web): tighten the bubble corner under the steer label
4fe0c30
@maria-rcks
fix(web): keep main's /clear command and live transcript working in t…
6ffc2f8
…he redesigned composer
@maria-rcks
fix(web): carry the tool call setting through the working window and …
f7b40d1
…its rows
@maria-rcks
fix(web): hide all drops the duration row when a reply has nothing to…
5f16e53
… expand
@maria-rcks
fix(web): composer rows share the tray row's left and right inset
b83d700
@maria-rcks
fix(web): a steer sent right after your message joins its bubble group
1ea84a1
The working bar sat between a prompt and its steer when grouping ran, so the
two bubbles kept their full gap and the steer label. Grouping now reruns after
the bar moves, and a steer grouped under your message drops the label; its
timestamp tooltip says it steered the turn.
@maria-rcks
test(web): drop low-signal tests the redesign added to the composer a…
ace518c
…nd timeline

- ThreadErrorBanner: drop the "Run failed" banner item case; it reads back title and label copy.
- MessagesTimeline browser: drop the queue-intent case; it only checks a data attribute is absent.
- MessagesTimeline logic: drop two duplicate rows from the stopped-at timer table.
- QueuedRunsControl: drop the computed white-space and text-overflow assertions.
- ComposerBannerStack: drop the rim style, color, pointer-events and fixed-height assertions; keep the edge and empty-region layout checks.
- commands (client-runtime): drop the reorder dispatch rows; they mirror the command payload the contract types already fix.
- toolOutput: drop duplicate rows from the test-runner command tables.
@maria-rcks
refactor(web): a queue drag is one value instead of two run ids
a29d93e
The dragged run and the run it drops before were two states always set
and cleared together; a drop target without a dragged row meant nothing.
They are one drag value now.
@maria-rcks
fix(web): drop the plan commands and plan preview main removed from t…
93b188f
…he redesigned composer

The slash-command icon map lists only the commands main still has, and the design-system playback no longer derives a proposed plan.
@maria-rcks
fix(web): the composer effort chip follows main's provider-free reaso…
09c6733
…ning lookup
@maria-rcks
maria-rcks force-pushed the maria/redesign/2-composer-timeline branch from 4ae0e72 to 09c6733 Compare November 9, 2026 09:10
@Entrpi
fix(web): a streamed reply no longer re-renders every row in the time…
55f57b9
…line

Since finished and wake-up folds reveal the rows they open (pingdotgg#30478), the
turn-fold and work-group toggles read `rows`, which the timeline declares
after them. The React Compiler cannot memoize a closure over a later
binding, so both toggles were new on every render, and so were the row
context built from them and the list's renderItem and extraData. Every
mounted row re-rendered on every update, each streamed text delta included.

- The two toggles move below `rows` and become stable callbacks. A click
  still reads the latest rows.
- `foldRevealBaseIds` joins the list's extraData. Legend re-renders rows
  only when data or extraData changes; the per-render churn had been doing
  that for the fold reveal.
- Test: an earlier row does not render again while a later reply streams.

Measured in headless Chromium (dev build) on a 2,000-item thread with a
live turn: component renders per text delta 318 -> 26, per new item about
353 -> 84; React time across 150 deltas 732-1,087 ms -> 326-336 ms. The
render scenarios: mount-thread -30% renders, switch-thread -21%.

User story: When an agent streams a reply into a long thread, only the
reply redraws, so the timeline stays smooth and uses less CPU.
flamboh and others added 21 commits November 11, 2026 08:51
@flamboh @maria-rcks
fix(web): new wake-ups join their fold without shifting the timeline (p…
7a32673
…ingdotgg#29998)

* fix(web): a running wake-up's streaming answer replaces the previous one below its fold
@maria-rcks
fix(web): retain composer compatibility after rebase
8819f7c
@flamboh @maria-rcks
fix(web): composer text and placeholder stay clear of the send buttons (
8747760
pingdotgg#30568)
@flamboh @maria-rcks
fix(web): pasting an image or file drops its chip in the prompt again (…
91ef4b3
…pingdotgg#30458)
@flamboh @maria-rcks
fix(web): collapsing the working window no longer nudges the timeline (…
1013caa
…pingdotgg#30466)
@flamboh @maria-rcks
fix(web): the working window's scrollbar shows its whole history from…
56d540a
… the start (pingdotgg#30419)
@flamboh @maria-rcks
fix(web): finished and wake-up folds work like the live working fold (p…
2239130
…ingdotgg#30478)
@flamboh @maria-rcks
fix(web): finished turn folds show the live timer's duration format (p…
59cd94e
…ingdotgg#30490)
@maria-rcks
fix(web): tighten the bubble corner under the steer label
498f2e0
@maria-rcks
fix(web): keep main's /clear command and live transcript working in t…
4d1285f
…he redesigned composer
@maria-rcks
fix(web): carry the tool call setting through the working window and …
47e2990
…its rows
@maria-rcks
fix(web): hide all drops the duration row when a reply has nothing to…
7f38c30
… expand
@maria-rcks
fix(web): composer rows share the tray row's left and right inset
0d529cd
@maria-rcks
fix(web): a steer sent right after your message joins its bubble group
b732f5d
The working bar sat between a prompt and its steer when grouping ran, so the
two bubbles kept their full gap and the steer label. Grouping now reruns after
the bar moves, and a steer grouped under your message drops the label; its
timestamp tooltip says it steered the turn.
@maria-rcks
test(web): drop low-signal tests the redesign added to the composer a…
ad1a2c4
…nd timeline

- ThreadErrorBanner: drop the "Run failed" banner item case; it reads back title and label copy.
- MessagesTimeline browser: drop the queue-intent case; it only checks a data attribute is absent.
- MessagesTimeline logic: drop two duplicate rows from the stopped-at timer table.
- QueuedRunsControl: drop the computed white-space and text-overflow assertions.
- ComposerBannerStack: drop the rim style, color, pointer-events and fixed-height assertions; keep the edge and empty-region layout checks.
- commands (client-runtime): drop the reorder dispatch rows; they mirror the command payload the contract types already fix.
- toolOutput: drop duplicate rows from the test-runner command tables.
@maria-rcks
refactor(web): a queue drag is one value instead of two run ids
1e6e6b1
The dragged run and the run it drops before were two states always set
and cleared together; a drop target without a dragged row meant nothing.
They are one drag value now.
@maria-rcks
fix(web): drop the plan commands and plan preview main removed from t…
a4e9a2d
…he redesigned composer

The slash-command icon map lists only the commands main still has, and the design-system playback no longer derives a proposed plan.
@maria-rcks
fix(web): the composer effort chip follows main's provider-free reaso…
ba7f842
…ning lookup
@maria-rcks
style(web): format the main timeline integrations
c4823eb
@maria-rcks
fix(web): keep citation editor source navigation on the parent thread
60c2130
@maria-rcks
fix(web): remove morphing from the redesigned fold caret
cb2ce53
@maria-rcks
maria-rcks force-pushed the maria/redesign/2-composer-timeline branch from 6f13f36 to cb2ce53 Compare November 11, 2026 09:17
@maria-rcks
Merge remote-tracking branch 'github/maria/redesign/2-composer-timeli…
bf4ace2
…ne' into fix/redesign-rows-skip-stream-updates

# Conflicts:
#	apps/web/src/components/GitActionsControl.tsx
#	apps/web/src/components/chat/MessagesTimeline.tsx
@maria-rcks
maria-rcks force-pushed the maria/redesign/2-composer-timeline branch 2 times, most recently from df3c346 to 9fa8150 Compare November 12, 2026 01:52
@github-actions

github-actions Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

This PR conflicts with maria/redesign/2-composer-timeline. Rebase it or merge maria/redesign/2-composer-timeline into it. If it still conflicts after 7 days with no activity, it will be closed automatically.

See the conflict window.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot added the needs-rebase Conflicts with its base branch. Closes after 7 days with no activity. label Nov 12, 2026
@maria-rcks
maria-rcks force-pushed the maria/redesign/2-composer-timeline branch from 5604040 to abeb8b8 Compare November 12, 2026 06:36
@t3dotgg

t3dotgg commented Nov 12, 2026

Copy link
Copy Markdown
Member

Note

🤖 Claude Opus 5.5 responding on behalf of Theo

Closing. This PR conflicts with main in 47 files, which is more than we will review as a rebase. If the change still matters, open a fresh PR from current main.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@t3dotgg t3dotgg closed this Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

needs-rebase Conflicts with its base branch. Closes after 7 days with no activity. size:M 30-99 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

6 participants

@Entrpi @maria-rcks @t3dotgg @flamboh @SunkenInTime @shivamhwp
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.