fix(web): finished and wake-up folds work like the live working fold #30478
maria/redesign/2-composer-timeline fromrefs/pull/30478/head·merged by maria-rcks View on GitHubNote
🤖 Claude Opus 5.5 on behalf of Oliver
Fix for the redesign stack, targets layer 2 (#28840).
The live "Working for" fold and the finished "Worked for" fold are the same bar before and after a turn ends, but they behaved differently. The finished fold and the wake-ups fold had no caret. The live fold showed a caret and toggled even when its few rows already fit, so clicking it only flipped the caret. And if you had the live history open when the turn ended, it snapped shut.
Now all three folds follow one rule:
- One caret. The finished fold and the wake-ups fold use the same right↔down morphing caret as the live bar.
- A toggle only when it does something. The live bar is inert (no caret, no hover, not focusable, no
aria-expanded) while its history fits in the collapsed view. Once rows stream past that height, the caret fades in without moving the label. If the fold is open, it stays togglable. The finished fold already hides all its work, so it is togglable whenever it has work to show. - Same bar. The live and finished fold labels share one control, so they get the same hover, focus ring, and caret.
- The hand-off keeps your choice. A history that is open when the turn ends stays open as the finished fold.
- Opening fades the work in. When you open the finished fold or the wake-ups fold, the rows it reveals fade in once, with the live fold's 200 ms ease-out. Closing stays instant, and reduced motion gets no fade. It is a fade, not a height slide, because opacity runs on the compositor: no layout work, and the rows below don't have to move with it. Rows that mount later while you scroll the open fold don't fade again.
Audit: live bar vs finished fold#
| Live "Working for" | Finished "Worked for" | Result | |
|---|---|---|---|
| Caret | right↔down morph | right↔down morph | Same (was missing on the finished fold) |
| When it toggles | once its history overflows | whenever it has work | Same rule |
| Hover, focus ring | shared control | shared control | Same |
| Open state at turn end | kept | kept | Same (was snapping shut) |
| Open motion | 200 ms height ease-out | 200 ms opacity fade-in | Same timing (was none) |
| Label typography | 13px, weight 500, line height 17.94px, letter spacing normal, oklab(0.633 0 0), label box 17.94px tall | identical on every value | Same, measured on layer 2 and on this branch |
The label typography row is measured, not read off the classes: computed styles in a 1000 px wide dark window, on layer 2 and on this branch, with no ancestor opacity, filter, mask or transform on either label. The live label can look larger next to the finished one, but the shared "Wor" glyphs are pixel-identical in both captures. The difference you see is the "g" descender in "Working".
Before / after#
| Before (layer 2) | After |
|---|---|
![]() | ![]() |
![]() | ![]() |
Replay only, 1000 × 900, light theme, 2×. The slow turn is a local, uncommitted transcript swap (14 echo steps, about 26 seconds).
Live overflow, expand/collapse, then finished fold hover and toggle — before (layer 2):
After:
Open history across turn completion — before (layer 2):
After:
The after history is opened once overflow enables its toggle; before that, it is inert.
Opening and closing the finished fold. The first open and close run at normal speed, the second is slowed 5×:
Label typography on this branch, same window and theme:
| Live bar | Finished fold |
|---|---|
![]() | ![]() |
Validation#
- New browser test in
MessagesTimeline.browser.test.tsx: the live bar is not a toggle with 2 rows, becomes one at 30, and its open state carries into the finished fold. Fails on the layer, passes here. The whole file passes (50 tests). - Ran a slowed Replay turn on a dev server and checked the live bar was inert until its history passed 212px, then togglable. Also checked the finished fold's caret, and that an open history stays open after the turn ends.
- The browser test that opens a finished fold also checks the fade: only the revealed row fades, and the fade mark is gone once it ends, so a later remount cannot replay it. Fails without the fade, passes here. The whole file passes (51 tests).
- On a Replay dev server: the revealed row went from opacity 0.13 to 0.96 in 139 ms and its mark was cleared at about 200 ms. Closing started no fade, and reduced motion started none. With about 100 rows open, scrolling away and back mounted rows 40 times, remounted the revealed row 3 times, and replayed no fade.
vp run check:changedagainst the layer: all pass.
Made with Claude Opus 5.5 in Claude Code (T3 Code).
Takeover verification#
merged current main and the updated redesign base without rebasing at 64d377469a. blacksmith vp run check:changed passes format, lint, knip, 40 affected typechecks, 2,478 tests including 51 timeline browser tests, and compiler coverage. two independent source reviews approved the same head. all 33 check contexts completed without failures or pending checks; no conflicts or unresolved review threads.
chrome replay verification passed finished-fold mouse, space, and enter toggles, reduced motion, and the 800px layout. real providers, native clients, and remote connections were not rerun in this pass.

verified by gpt-6.1-sol through the codex harness in t3 code.
- 1
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:L
- apps/web/src/components/chat/MessagesTimeline.tsx line 683OutdatedResolvedby flamboh(GitHub profile, opens in a new tab)@@ -672,3 +679,5 @@672679 const workingHistoryOpen = rows.some(673680 (row) => row.kind === "working" && row.window?.historyOpen === true,674681 );682+ if (rows.some((row) => row.kind === "working")) {683+ const historyRunId = workingHistoryOpen ? (latestRun?.runId ?? null) : null;
🟠 High
chat/MessagesTimeline.tsx:683When native subagent work is runless, finishing it leaves the open history closed instead of opening the finished response's fold.
openHistoryRunIdonly trackslatestRun?.runId, butderiveTurnFoldsidentifies runless responses asrunless:${entry.id}, so the lookup at line 686 cannot find that fold. Track the live response's synthetic fold identity too, and use it to open the finished fold.No longer relevant as of 667211d2fb693ad0b8a8f4c5fbaee4e5441a8d1a
Fixed in 667211d2fb. While runless work is active, the open history now records the live response's
runless:<prompt id>fold key (same helperderiveTurnFoldsuses) instead oflatestRun, so the finished runless fold opens. The hand-off test now covers both run-backed and runless turns.Sorry, I'm unable to act on this request because you do not have permissions within this repository.
Approvability#
Verdict: Approved at
b6bad12Macroscope's review found this PR approvable — This change makes finished and background-work folds consistent with live work, preserves opened history, and adds reduced-motion-aware reveal animations. Its effects are limited to timeline presentation and disclosure interactions.
Notes:
- All code in this push has already been reviewed. Approvability was decided on eligibility alone.
Heads-up for merging this up into layer 6:
WorkingTimelineRowon layer 6 has an earlyif (worktreeSetupCardOwnsHeader) return null;. This PR adds auseReducer(fit/onOverflowChange) near the top of the same function, so it has to sit above that early return to keep hook order stable. Also, inCollapsedWorkingWindow, the resize effect's deps change from[]to[onOverflowChange], next to layer 6's spacerIntersectionObservereffect from #30419; both effects stay. That's how it's resolved in our dogfood build (typecheck andMessagesTimeline.browser.test.tsx49/49 pass there).Note
Written by
gpt-6.1-solon behalf of Mariaready at
64d377469a8be22734142f07465c2d2381c6a791. merged current main and the updated redesign base without rebasing, preserving the fold behavior and both sides' changes. removed two unused icon imports left by the merge. pushed to the existing contributor branch without force.all 33 check contexts are complete with no failures or pending checks. github reports mergeable and approved. no unresolved review threads. two independent source reviews approved this head.
blacksmith
vp run check:changedpassed format, lint, knip, 40 affected typechecks, 2,478 tests across 240 files (including all 51 timeline browser tests), and react compiler coverage. the existing run-backed and runless history handoff tests passed.on the merged head, chrome with the replay provider passed finished-fold mouse, space, and enter toggles, reduced motion, and an 800px layout without horizontal overflow. uploaded recording playback and seeking verified. real codex, native runless subagents, electron, native mobile, and remote/relay were not rerun in this pass; earlier real-provider evidence remains in the verification comment.

Note
Written by
gpt-6.1-solon behalf of MariaVerified in a real dev environment#
verified unchanged head
c7429dae1795fba6fd6e7446308ffbf86aea788con this linux vm. ran one background dev server at a time, with isolated task state, playwright from the repo, and/usr/bin/google-chrome. created the project and turns through the web app using real codexgpt-6.1-sol. no replay, mocks, fixtures, or demo data.- short live history: disabled control, no
aria-expanded, hidden caret. overflow enables the caret and open/close control. - opened live history stays open when the real 12-command turn finishes. the finished fold closes and reopens with mouse, space, and enter.
- opening starts the reveal fade; its marks clear afterward. closing and reduced motion start no fade. scrolling away and back starts no new fade.
- a subsequent short turn finishes closed and leaves the earlier fold closed.
- a real async codex child completes and wakes the parent, which runs eight commands. the wake-up fold has a caret, opens with a fade, and closes. its final answer stays visible while collapsed.
- exercised light 1280×900 and dark 800×900 layouts; the narrow view has no horizontal overflow.
blacksmith
vp run check:changed FETCH_HEADagainst the fetched redesign base passes format, lint, knip, affected typechecks, 181 tests including 51 timeline browser tests, and compiler coverage. current github checks have no failures or pending checks. no code changes or pushes were needed.baseline on
github/mainat567a105705, with the real 12-command turn:
pr rendering the same persisted turn:

new real turn on the pr, still open after completion:

finished-fold mouse and keyboard toggles, then wake-up toggle. uploaded playback and seeking checked in t3's browser:

Not verified#
current
github/mainalready has a finished-fold caret and lacks the redesign's live working-window control. the reported redesign regression could not be reproduced on main, so the baseline images are a comparison, not proof of a failing-before case. the redesign base was not run separately.native runless-subagent handoff was covered by the existing browser test, not a real native-child turn. electron, native ios/android, other providers, and remote/relay connections were not exercised on this linux web-client pass.
- short live history: disabled control, no
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:L
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XXL
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes
maria-rcks merged thisd9f3eea
maria-rcks closed this
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:XXL
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:L
Sign in to join this conversation.






macroscopeapp[bot](GitHub profile, opens in a new tab) reviewed