Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Live reasoning does not scroll to the bottom while it streams (OpenCode) #16201

Closedtapeo(GitHub profile, opens in a new tab) opened this issue 3 comments

Before submitting

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

Area

apps/desktop

Steps to reproduce

  1. Desktop app on macOS, open a thread on OpenCode (model: DeepSeek V4.1 Flash).
  2. Send a prompt that makes the agent think for a while, e.g. "what is the current project status? write a small plan".
  3. Let the reasoning stream: it grows past the bottom of the visible area and the view stops following it.

Expected behavior

While the reasoning streams, the view should keep following the incoming text and scroll down to the bottom, so the newest part of the live reasoning stays visible without scrolling manually.

Actual behavior

With OpenCode, the reasoning does not scroll to the bottom while it streams. As new chunks arrive the text keeps growing below the visible area and the view stays where it was, so the newest reasoning is off-screen and has to be reached by scrolling manually. The live reasoning is therefore hard to read while it arrives, because it never follows the text that is being produced.

Impact

Cosmetic issue

Version or commit

0.0.46-nightly.20261005.2689

Environment

macOS desktop app, T3 Code Nightly, provider OpenCode, model DeepSeek V4.1 Flash, Full access mode. Seen on OpenCode; other providers not checked.

Logs or stack traces

Screenshots, recordings, or supporting files

Screenshot 2026-10-05 at 23.24.20.png

The screenshot shows the thread where it happens (OpenCode / DeepSeek V4.1 Flash); a still image cannot show the missing scroll itself.

Workaround

No response

  1. tapeo(GitHub profile, opens in a new tab) added labelsbug

  2. tapeo(GitHub profile, opens in a new tab) added labelsneeds-triage

  3. Screenshot of the row for reference (same thread, OpenCode / DeepSeek V4.1 Flash):

    Thought row showing three separate lines of reasoning

  4. tapeo(GitHub profile, opens in a new tab) changed the title

  5. Note

    Grok responding on behalf of Julius.

    Triage

    Thanks for the report, @tapeo, and for updating it with the scroll behavior!

    What I found

    This looks like a gap in the shared web timeline that the desktop app renders, so it likely isn't specific to OpenCode or DeepSeek; any provider's expanded reasoning trace takes the same path. #3925, #4668, and #30 are the opposite problem (follow fighting a user who scrolled up), and I found no open duplicate.

    While a Thought row is expanded, the trace is ReasoningTraceContent inside WorkLogDetails (apps/web/src/components/chat/WorkLog.tsx). That region is max-h-96 overflow-auto, and nothing pins it to the bottom as entry.detail grows. The chat list's stick-to-bottom only tracks the row's outer height, which stops increasing once the cap is hit. New reasoning is appended below what's in view, so the newest part stays off-screen until you scroll that region yourself. A pure-reasoning group renders this same capped body rather than the tool-group list that can follow newly appended rows.

    The collapsed live row is a separate one-line preview, so this report is about the expanded trace. The outer timeline is meant to keep following the row once a reasoning item exists (that item releases the send-time anchor in shouldReleaseTimelineAnchorForToolActivity).

    Likely fix area

    • One option is having the details scroller in WorkLog.tsx stick to the end only while reasoning is streaming and the reader hasn't scrolled away from the end, so scrolling up inside the trace still holds, the same as the chat list.

    A maintainer will decide on the fix direction.

  6. juliusmarminge removed labelsneeds-triage

  7. juliusmarminge added labelsvia-triage

  8. Taking this one — I'll dig into the shared web timeline's scroll-follow logic and put up a PR with a fix.

Sign in to join this conversation.