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): open turn folds no longer make each timeline update quadratic by Entrpi · Pull Request #32786 · pingdotgg/t3code

Conversation

@Entrpi

@Entrpi Entrpi commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Problem

Row derivation gathers the work of every open turn fold so it can show that work under the fold. For each open fold, gatherOpenFoldWork searched the whole entry list for the fold's anchor, then filtered every entry before it. So each timeline update cost the thread's length times the number of open folds. Failed and usage-limited turns start open, and every turn the user expands joins them. With every turn open, an 8,600-item thread spent 18–26 ms of each new tool call's update here.

Change

The entries are indexed by id once per update. Each open fold then looks up its anchor and its hidden entries in that index, and gathers them in timeline order, as before.

This is independent of #32756, #32769 and #32782. All four target this branch.

Scope and approval

A focused, behavior-preserving performance fix in this branch's fold derivation, with no visible change. There's no prior issue. It's offered for the branch owner to take, or to fold into the stack.

Verification

  • Behavior is unchanged. The fold tests in MessagesTimeline.logic.test.ts and MessagesTimeline.browser.test.tsx pass, 186 in all. As a check that they cover this path: gathering the fold's entries in the wrong order fails one of them.

  • Row derivation per new item, in Node, on synthetic threads where each run opens with a prompt, plus a live turn of 150 tool calls. These are two alternating rounds, with load-spike runs left out:

    Items Every turn open Finished turns folded
    4,301 5.0–7.4 → 2.4–3.3 ms unchanged (1.7–2.4 ms)
    8,601 18–26 → 6.7–9.6 ms unchanged (3.3–4.4 ms)
  • vp run check:changed origin/maria/redesign/2-composer-timeline passes.

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:S 10-29 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 bb35ade

Macroscope's review found this PR approvable — This optimizes open chat timeline folds by sharing an entry index instead of repeatedly scanning the timeline. The change is limited to display construction and leaves product defaults and stored data unchanged.

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 mentioned this pull request Nov 8, 2026
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-open-folds-linear branch from bb35ade to 5e89c3e 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-open-folds-linear branch from 5e89c3e to e3e8ad0 Compare November 9, 2026 05:56
@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): open turn folds no longer make each timeline update quadratic
0b914c8
Row derivation gathers the work of every open turn fold to show it under the
fold. For each open fold it searched the whole entry list for the fold's
anchor, then filtered every entry before it, so an update cost the thread's
length times the number of open folds. Failed and usage-limited turns start
open, and every turn the user expands joins them. With every turn open, an
8,600-item thread spent 18-26 ms of each new item's update here.

- The entries are indexed by id once per update, and each open fold looks up
  its anchor and its hidden entries there, in timeline order as before.

User story: When I open many earlier turns, or a thread has many failed ones,
new tool calls still appear as smoothly as in a thread with every turn folded.
@Entrpi
Entrpi force-pushed the perf/redesign-open-folds-linear branch from e3e8ad0 to 0b914c8 Compare November 9, 2026 09:56
@maria-rcks

maria-rcks commented Nov 10, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Collaborator

Note

Written by claude-opus-5-5 on behalf of Maria

Base rebase merged

maria/redesign/2-composer-timeline was rebased, so this PR conflicted and showed 698 files. I merged the new base into the head with a merge commit (d5b85defa9), with no rebase. GitActionsControl.tsx took the base side, which this PR never touched. MessagesTimeline.logic.ts kept this PR's indexed fold lookup. The diff is back to that one file, +21/-7.

Checks on a testbox: vp run check:changed against the base passed, along with 142 MessagesTimeline.logic tests and 66 MessagesTimeline browser tests.

Agent context budget fails because of the base branch, not this PR. The base has mcpToolListJsonBytes 48217 and main has 48131. #33892, also on the new base, fails the same way. It clears once the base branch takes current main.


Verified in a real dev environment

verified functional behavior at 0b914c8856035503a25007b9385c2be0aeb97015 on linux using the dev web client, repository Playwright, and /usr/bin/google-chrome. created a project pointing at a real git checkout through the app and ran real Codex gpt-6.1-sol turns. no mocks or fixtures.

three completed tool-bearing turns produced groups of 3, 3, and 5 commands. opened all three turn folds, expanded their command groups, collapsed and reopened a fold, and checked the explicitly sequential commands stayed in order. a fourth real turn completed with all three earlier folds open. reloading retained all four responses and the earlier tool groups.

ran main 4c361199f4 first in a separate installed worktree, completed a real provider turn, and expanded its fold. stopped main before starting the exact pr head. the screenshots use the same project checkout, prompt, model, and reply marker; their different surrounding ui reflects the different branches.

existing checks through blacksmith: 136 timeline logic tests and 52 timeline browser tests passed. the browser worker initially lacked chromium; installed it and reran successfully. the pr reports 29 successful ci checks. no source changes or pushes were needed.

main: expanded real codex turn

pr: expanded real codex turn with the same prompt

pr: opening three folds and their command groups, then collapsing and reopening one

Not verified

the large-thread performance claim and original quadratic slowdown are unverified. today's main has a different fold implementation and no gatherOpenFoldWork; the real thread exercised here is small. these captures prove functional behavior, not a measured speedup or the reported 8,600-item timings.

native desktop/mobile clients, other providers, failed or usage-limited turns, dark theme, and remote/relay/tunnel connections were not exercised. this pass used the linux local web client and successful Codex turns.

All reactions

Sorry, something went wrong.

Uh oh!

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

@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
flamboh and others added 16 commits November 11, 2026 08:51
@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…
d5b85de
…ne' into perf/redesign-open-folds-linear

# Conflicts:
#	apps/web/src/components/GitActionsControl.tsx
#	apps/web/src/components/chat/MessagesTimeline.logic.ts
@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
maria-rcks pushed a commit that referenced this pull request Nov 15, 2026
@Entrpi @maria-rcks
fix(web): open turn folds no longer make each timeline update quadrat…
c1e58e8
…ic (#32786)

Each open fold searched and filtered the entire prefix of the entry list on every update. Index entries once, then gather only the hidden entries of each open fold in timeline order.
maria-rcks pushed a commit that referenced this pull request Nov 15, 2026
@Entrpi @maria-rcks
fix(web): open turn folds no longer make each timeline update quadrat…
edec521
…ic (#32786)

Each open fold searched and filtered the entire prefix of the entry list on every update. Index entries once, then gather only the hidden entries of each open fold in timeline order.
maria-rcks pushed a commit that referenced this pull request Nov 16, 2026
@Entrpi @maria-rcks
fix(web): open turn folds no longer make each timeline update quadrat…
fb06142
…ic (#32786)

Each open fold searched and filtered the entire prefix of the entry list on every update. Index entries once, then gather only the hidden entries of each open fold in timeline order.
maria-rcks pushed a commit that referenced this pull request Nov 17, 2026
@Entrpi @maria-rcks
fix(web): open turn folds no longer make each timeline update quadrat…
7416c8c
…ic (#32786)

Each open fold searched and filtered the entire prefix of the entry list on every update. Index entries once, then gather only the hidden entries of each open fold in timeline order.
maria-rcks pushed a commit that referenced this pull request Nov 17, 2026
@Entrpi @maria-rcks
fix(web): open turn folds no longer make each timeline update quadrat…
3362bd7
…ic (#32786)

Each open fold searched and filtered the entire prefix of the entry list on every update. Index entries once, then gather only the hidden entries of each open fold in timeline order.
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:S 10-29 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.