Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): finished and wake-up folds work like the live working fold #30478

Mergedflamboh(GitHub profile, opens in a new tab)merged 187 commits intomaria/redesign/2-composer-timeline fromrefs/pull/30478/headmerged by maria-rcks View on GitHub

Note

🤖 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
Caretright↔down morphright↔down morphSame (was missing on the finished fold)
When it togglesonce its history overflowswhenever it has workSame rule
Hover, focus ringshared controlshared controlSame
Open state at turn endkeptkeptSame (was snapping shut)
Open motion200 ms height ease-out200 ms opacity fade-inSame timing (was none)
Label typography13px, weight 500, line height 17.94px, letter spacing normal, oklab(0.633 0 0), label box 17.94px tallidentical on every valueSame, 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
Live history with at most five rows, beforeLive history with at most five rows, after
Finished work history bar, beforeFinished work history bar, 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):

https://gh-file-drop-api-prod-galwoqjslzlnws6s.oliver-boorstein.workers.dev/f/9478c6417e0f589e/before-toggle.mp4

After:

https://gh-file-drop-api-prod-galwoqjslzlnws6s.oliver-boorstein.workers.dev/f/7b0fedb6e9b8c34d/after-toggle.mp4

Open history across turn completion — before (layer 2):

https://gh-file-drop-api-prod-galwoqjslzlnws6s.oliver-boorstein.workers.dev/f/8a2c8044d8c42238/before-handoff.mp4

After:

https://gh-file-drop-api-prod-galwoqjslzlnws6s.oliver-boorstein.workers.dev/f/5bd0fa9bd97fc7d4/after-handoff.mp4

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×:

https://gh-file-drop-api-prod-galwoqjslzlnws6s.oliver-boorstein.workers.dev/f/65e580b5ae17acf2/finished-fold-fade.mp4

Label typography on this branch, same window and theme:

Live barFinished fold
Live bar label "Working for 4s"Finished fold label "Worked for 26s" with its caret

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:changed against 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.

finished fold mouse and keyboard toggles on the merged head

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

    2. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Approvability

      Verdict: Approved at b6bad12

      Macroscope'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.
      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    3. Heads-up for merging this up into layer 6: WorkingTimelineRow on layer 6 has an early if (worktreeSetupCardOwnsHeader) return null;. This PR adds a useReducer (fit / onOverflowChange) near the top of the same function, so it has to sit above that early return to keep hook order stable. Also, in CollapsedWorkingWindow, the resize effect's deps change from [] to [onOverflowChange], next to layer 6's spacer IntersectionObserver effect from #30419; both effects stay. That's how it's resolved in our dogfood build (typecheck and MessagesTimeline.browser.test.tsx 49/49 pass there).

    4. maria-rckscommented

      Note

      Written by gpt-6.1-sol on behalf of Maria

      ready 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:changed passed 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.

      finished fold mouse and keyboard toggles on the merged head

    5. maria-rckscommented

      Note

      Written by gpt-6.1-sol on behalf of Maria

      Verified in a real dev environment

      verified unchanged head c7429dae1795fba6fd6e7446308ffbf86aea788c on 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 codex gpt-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_HEAD against 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/main at 567a105705, with the real 12-command turn:

      main baseline with real codex turn

      pr rendering the same persisted turn:

      pr head with matching real codex data

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

      real live history remains open after completion

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

      finished and wake-up fold interactions with real codex data

      Not verified

      current github/main already 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.

    6. maria-rcks merged thisd9f3eea

    7. maria-rcks closed this

Sign in to join this conversation.