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 text delta no longer reruns the timeline's whole-thread passes by Entrpi · Pull Request #32769 · pingdotgg/t3code

Conversation

@Entrpi

@Entrpi Entrpi commented Nov 8, 2026 •
edited by maria-rcks
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Problem

On the redesign, every streamed text delta reruns the timeline's working window and background activity groups over the whole thread. Row derivation already patches a streamed message's rows in place (replaceStreamingMessageRows), but useStableRows only short-circuits when it gets the same rows array, so the passes after it run in full on each delta. A delta costs 3–7× what it costs on main, and the gap grows with the thread.

Change

  • The working window, background groups and stable identities move from useStableRows into deriveStableTimelineRows, a pure function the hook calls. Behavior is unchanged for every update that isn't a text delta.
  • When the entries differ only by streamed message text, and nothing else the passes read has changed, it applies the same message patch to its previous result instead of rerunning the passes. Those passes keep a message row as it is. If the working window or a collapsed background group has taken the message out of the rows, the passes run as before.
  • The check for a text-only entry change is factored out of replaceStreamingMessageRows, so both steps use the same one.

This is independent of #32756. Both target this branch.

Scope and approval

A focused fix of a streaming performance regression against main, with no visible change. It qualifies as a small fix of an obvious bug: each text delta reruns two whole-thread passes whose results it can't change.

Verification

  • The streaming row tests in MessagesTimeline.logic.test.ts now also compare the patched result with the passes run again. They cover a delta into the reply (all five text cases), a delta into commentary the working window holds (the fallback), and a delta into the answer a collapsed background group keeps. Rows other than the streamed message keep their identity.

  • As a check that these tests exercise the shortcut: with it changed to return the previous result unchanged, the reply cases and the background-group cases fail, and the commentary case, which takes the fallback, still passes.

  • Derivation per text delta in Node, using this chain (entries, rows, then the passes) on synthetic threads where each run opens with a prompt and finished turns are folded, plus a live turn of 150 tool calls; medians of 3:

    Items Passes in full This PR main
    517 0.13–0.16 ms 0.04 ms 0.04 ms
    2,151 0.36–0.39 ms 0.07–0.08 ms 0.06 ms
    4,301 0.71–0.80 ms 0.10 ms 0.10 ms
    8,601 1.24–1.37 ms 0.18–0.19 ms 0.19 ms

    An earlier version of this table used a fixture without prompts, which made the working window scan the whole thread and overstated the first column.
    New tool calls are unchanged; this PR doesn't touch that path.

  • MessagesTimeline.browser.test.tsx: 52 of 52 pass.

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

Claude Opus 5.5 via Claude Code, in T3 Code.

Takeover verification at 951249b

Blacksmith changed-file checks pass, including all 143 timeline tests. Replay (dev) streaming, approval and completion were exercised through the real server and web client. The original three-file diff is unchanged. Performance timings were not remeasured.

replay streaming through approval and completion

gpt-6.1-sol via Codex, 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:L 100-499 changed lines (additions + deletions). labels Nov 8, 2026
macroscopeapp[bot]
macroscopeapp Bot approved these changes Nov 8, 2026
View reviewed changes
@macroscopeapp

macroscopeapp Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at 73dcf59

Macroscope's review found this PR approvable — Streamed assistant text now updates cached timeline rows without rerunning whole-thread presentation passes. The optimization retains the existing full derivation path for other changes and adds no persistent-data or external-system effects.

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.

@Entrpi
Entrpi force-pushed the perf/redesign-stream-deltas-skip-passes branch from 73dcf59 to bc4c8a7 Compare November 8, 2026 01:51
This was referenced Nov 8, 2026
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
@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 perf/redesign-stream-deltas-skip-passes branch from bc4c8a7 to dc1a484 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 perf/redesign-stream-deltas-skip-passes branch from dc1a484 to ad0c4c3 Compare November 9, 2026 05:55
@maria-rcks
maria-rcks force-pushed the maria/redesign/2-composer-timeline branch 2 times, most recently from 4ae0e72 to 09c6733 Compare November 9, 2026 09:10
@Entrpi
Entrpi force-pushed the perf/redesign-stream-deltas-skip-passes branch from ad0c4c3 to b997465 Compare November 9, 2026 09:56
@maria-rcks
maria-rcks force-pushed the maria/redesign/2-composer-timeline branch 2 times, most recently from 9a88fc2 to 7c36975 Compare November 11, 2026 08:26
maria-rcks added 7 commits November 11, 2026 08:35
@maria-rcks
test(web): drop low-signal tests the redesign added to the composer a…
cc4fdd2
…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
ced13fa
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…
a834dd4
…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…
340b825
…ning lookup
@maria-rcks
style(web): format the main timeline integrations
bae692d
@maria-rcks
fix(web): keep citation editor source navigation on the parent thread
96065dd
@maria-rcks
fix(web): remove morphing from the redesigned fold caret
6f13f36
@maria-rcks
maria-rcks force-pushed the maria/redesign/2-composer-timeline branch from 7c36975 to 6f13f36 Compare November 11, 2026 08:38
maria-rcks added 5 commits November 11, 2026 08:46
@maria-rcks
Merge branch 'maria/redesign/2-composer-timeline' into perf/redesign-…
a787bec
…stream-deltas-skip-passes
@maria-rcks
feat(web): establish redesign primitives and shell
5783696
@maria-rcks
refactor(web): remove unused toggle pressed tokens
0742cdf
@maria-rcks
fix(web): match catalog button and type specimens
19432d2
@maria-rcks
fix(web): honor reduced motion in overlay primitives
0571f7f
maria-rcks and others added 22 commits November 11, 2026 19:14
@maria-rcks
fix(web): retain composer compatibility after rebase
5ca4d29
@flamboh @maria-rcks
fix(web): composer text and placeholder stay clear of the send buttons (
55e398e
pingdotgg#30568)
@flamboh @maria-rcks
fix(web): pasting an image or file drops its chip in the prompt again (…
cb1a5dd
…pingdotgg#30458)
@flamboh @maria-rcks
fix(web): collapsing the working window no longer nudges the timeline (…
813afd8
…pingdotgg#30466)
@flamboh @maria-rcks
fix(web): the working window's scrollbar shows its whole history from…
fee0fb9
… the start (pingdotgg#30419)
@flamboh @maria-rcks
fix(web): finished and wake-up folds work like the live working fold (p…
445b4c3
…ingdotgg#30478)
@flamboh @maria-rcks
fix(web): finished turn folds show the live timer's duration format (p…
f4844ea
…ingdotgg#30490)
@maria-rcks
fix(web): tighten the bubble corner under the steer label
e554f3b
@maria-rcks
fix(web): keep main's /clear command and live transcript working in t…
ccb8ad5
…he redesigned composer
@maria-rcks
fix(web): carry the tool call setting through the working window and …
6c01b81
…its rows
@maria-rcks
fix(web): hide all drops the duration row when a reply has nothing to…
6041225
… expand
@maria-rcks
fix(web): composer rows share the tray row's left and right inset
f886ea8
@maria-rcks
fix(web): a steer sent right after your message joins its bubble group
0b2fffd
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…
dd73bb5
…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
d5f3605
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…
1e25f7a
…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…
511327b
…ning lookup
@maria-rcks
style(web): format the main timeline integrations
12bcd9b
@maria-rcks
fix(web): keep citation editor source navigation on the parent thread
233b2d4
@maria-rcks
fix(web): remove morphing from the redesigned fold caret
a8600b0
@maria-rcks
fix(web): carry stop and disclosure state through redesigned rows
547fef3
@maria-rcks
fix(web): pass compaction and disclosure state through the composer l…
df3c346
…ayout
@maria-rcks
maria-rcks force-pushed the maria/redesign/2-composer-timeline branch from cb2ce53 to df3c346 Compare November 11, 2026 20:02
@maria-rcks
chore: merge current redesign base into stream delta optimization
951249b
@maria-rcks
maria-rcks force-pushed the maria/redesign/2-composer-timeline branch 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 29 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:L 100-499 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.