Skip to content

parity: keep the toggled row in place when expanding work details at the end (pingdotgg/t3code#29166) #120

Closed

Description

@rynfar

Upstream pingdotgg/t3code#29166 (ec3ebdbb67, digest #14) changed TR-GROUPING behaviour that native already ships.

Web before: expanding a work-details disclosure while the transcript was at the end pinned the list back to the end, so the expanded content pushed the toggled row up. Web after: MessagesTimeline.tsx always restores the visible content position to the toggled row (disclosureAnchorKeyRef); the details open below the row, and the reader stays on it even at the end.

Native today (to be confirmed with an offscreen capture): crates/core/src/timeline/anchor.rs capture returns None while the bottom-aligned list follows its tail, so ThreadView::toggle_run/toggle_attempt/toggle_group (rederive → keep_place) keep the tail pinned, and toggle_entry only remeasures. That is the old web behaviour.

Done when: at the end of a transcript, expanding a work group, run/attempt fold or work entry keeps the toggled row where it was and the details open below it; mid-transcript anchoring is unchanged; the tail still follows streaming when nothing was toggled. Failing-first test in crates/core/src/timeline/anchor tests, before/after offscreen captures.

Blocked on file overlap: PR #119 touches crates/app/src/thread_view.rs; dispatch after #119 merges.

Activity

  1. added this to the M2 Parity core milestone on Nov 3, 2026
  2. added
    parity
    parity:regression-risk
    status:in-progress
    native:feature
    status:review
    and removed
    status:in-progress
    on Nov 3, 2026
  3. rynfar commented on Nov 3, 2026

    @rynfar
    OwnerAuthor

    Implemented in #124 at 66f782fa0459b7d54ca917752846fe7d5d21aebc.

    The tail regression was confirmed before changes and corrected for run/attempt folds, work groups, and work entries, including short bottom-aligned transcripts. TR-GROUPING remains partial; its existing broader gaps are unchanged. Read-only offscreen Replay captures verify run/group/entry expansion and scrolled entry expansion. Failing-first core cases and all required checks pass (1,112 native tests).

    Evidence and logs: /private/tmp/native-factory-2f5f764a/evidence-120. No visible superseded-attempt fold was available in the selected fixture; that path is covered in core. A new streaming turn was not started under the read-only constraint; passive tail-following assertions remain intact.

  4. rynfar commented on Nov 3, 2026

    @rynfar
    OwnerAuthor

    Addressed the follow-tail review finding in #124 at 09037d7b474e998bfc70415659a8cbd78dd13030, rebased on fork/native at c194dff4de.

    Disclosure anchoring now holds through two settling frames, rejects stale layout tickets, restores the tail sentinel within the web's 40px end rule, and retains one-viewport eligibility for the next content change. Navigation cancels the pending work. Core and real GPUI regressions cover settling then appending/growing, expand/collapse then append/grow, short transcripts, threshold boundaries, and cancellation. The GPUI failing-first proof observes the appended row staying detached (item 0 instead of the tail at item 3).

    All required checks and check:changed pass, including 1,120 native tests. Final logs and read-only offscreen captures: /private/tmp/native-factory-2f5f764a/evidence-120/review/ (gpui-append-failing-first.log, tests.log, expanded.png, collapsed.png, mid-expanded.png).

    TR-GROUPING remains partial with existing gaps unchanged. Runtime superseded-attempt visuals and a new server streaming turn remain unverified; append/growth behavior is tested directly against GPUI without server writes.

  5. rynfar commented on Nov 3, 2026

    @rynfar
    OwnerAuthor

    Addressed both re-review findings in #124 at 33a1c525177ddef9b8f8498ef5a2de727d8c0228, rebased onto typography #125 (6a5f25d945). The merge resolution preserves its typography fields, render invalidation, and tests alongside disclosure settling.

    Settling now leaves positive end distances untouched and rearms eligibility for the next content change. Only exact-end positions become the tail sentinel immediately. Forwarded minimap wheels cancel maintenance before stopping propagation, so later appends and growing rows respect the user's navigation.

    Both regressions failed first against the real GPUI list: the 20px case moved the header from 40px to 20px, and the minimap case let an append override scrolling. Both pass for short and overflowing transcripts. All common checks and check:changed pass, including 1,124 native tests.

    Evidence: /private/tmp/native-factory-2f5f764a/evidence-120/review2/ — settle-failing-first.log, minimap-failing-first.log, tests.log, closed.png, run-expanded.png, expanded.png, collapsed.png, mid-expanded.png.

    TR-GROUPING stays partial; existing gaps unchanged. Runtime superseded-attempt visuals and a new server streaming turn remain unverified under read-only smoke verification; real GPUI tests exercise settling, forwarded wheels, appends, and growth.

  6. removed
    status:review
    on Nov 3, 2026
  7. rynfar commented on Nov 3, 2026

    @rynfar
    OwnerAuthor

    Merged in #124 as 799fc02916, from exact gated head 33a1c52517.

    Expanding a work group, run/attempt fold or work entry at the tail now keeps the toggled row in place and opens details below, as pingdotgg/t3code#29166 does. Disclosure settling restores tail-follow under the web rule, and user navigation, including minimap-forwarded wheels, cancels pending maintenance.

    Review: three independent Sol rounds:

    • round 1: tail-follow lost after a toggle (P2)
    • round 2: small expansions moved after settling, and minimap wheels bypassed cancellation (two P2s)
    • all three fixed with deterministic GPUI/core tests that failed first
    • round 3 raised a typography-remeasure interaction inside the two-frame settle window; accepted as a documented P3 limitation (see PR comment)

    Gate: onto 6a5f25d945, GREEN, 1,124 tests.

    Unverified: attempt-fold runtime visuals and a live streaming turn.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    native:featureparityparity:regression-risk

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions