Skip to content

[Bug]: Expanding “Worked for …” higher up in a thread scrolls to the end #4568

Description

@colonelpanic8

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/web

Steps to reproduce

  1. Open a long thread with an older completed turn whose progress is collapsed behind a Worked for … row.
  2. Make sure there is enough conversation after that turn that the end of the thread is well below the viewport.
  3. Scroll up to the older Worked for … row so you are no longer at the end of the thread.
  4. Expand the row.

Expected behavior

The viewport should preserve the reader’s position. Ideally the clicked Worked for … row remains visually anchored while its hidden content expands.

Actual behavior

Expanding the older Worked for … row scrolls the viewport to the end of the thread, losing the reader’s place.

The amount of later content matters: if the thread is too short for the end to be offscreen, the jump is not observable.

Impact

Major degradation or frequent failure. On long threads, inspecting an earlier turn repeatedly throws the reader back to the newest content.

Version or commit

Observed in T3 Code desktop 0.0.28. A synthetic local fixture on 0e43e7fe0eef91c41fe19286148b781a532bebc3 did not reproduce the jump, so the exact trigger may be release-specific or depend on additional live thread state.

Environment

NixOS/Linux desktop app (Electron).

Logs or stack traces

No relevant error is emitted.

Screenshots, recordings, or supporting files

I attempted to capture this with an isolated long-thread fixture. The current source build preserved scrollTop in settled and active-turn variants, so I am not attaching a misleading non-reproduction recording.

Workaround

Avoid expanding older Worked for … rows in long threads, or manually scroll back to the prior position after the jump.

Activity

  1. t3dotgg commented on Aug 27, 2026

    @t3dotgg
    Member

    Thanks for the detailed report. We believe this is fixed by PR #5449.

    The timeline-positioning merge changes the exact Worked for expansion path. Before changing folded rows, it disables end-follow for the disclosure update and tells LegendList to preserve the clicked row when sizes change. This removes the mechanism that could send an older expanded turn to the bottom. No later failure is recorded.

    I'm closing this as fixed as part of an automated pass on all open issues. If this still happens in a current build that includes PR #5449, please reply with the T3 Code version and fresh logs or reproduction details, and we can reopen it.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions