t3code icon indicating copy to clipboard operation
t3code copied to clipboard

[Bug]: Sending a message jumps the chat to the end while I'm scrolled up reading; scroll-to-end pill is hard to see

Open baohappy02 opened this issue 3 weeks ago • 5 comments

Before submitting

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

Area

apps/desktop

Steps to reproduce

  1. Open a thread with a few screens of history (desktop app).
  2. Scroll up and read an older message; the "Scroll to end" pill shows.
  3. Type a prompt in the composer and send it.

Expected behavior

If I'm scrolled up, sending keeps my place; the "Scroll to end" pill is there to jump to the new turn when I want.

The pill is easy to spot over chat text.

Actual behavior

  1. The chat jumps to the end on every send, losing my place. The send path calls anchorNewTurn for any non-queued send, and it dispatches followEnd whether or not the reader had left the end:

    • https://github.com/pingdotgg/t3code/blob/v0.1.8-nightly.20261106.4288/apps/web/src/components/chat/useComposerSend.ts#L1211-L1215
    • https://github.com/pingdotgg/t3code/blob/v0.1.8-nightly.20261106.4288/apps/web/src/components/chat/useTimelineFollow.ts#L546-L547

    Possible fix: only anchor/follow when the follow mode is following at send time (as onTimelineFooterGrow and the pending-message effect at ChatView.tsx#L3043 already do); otherwise keep the position and show the pill.

  2. The "Scroll to end" pill is faint and easy to miss. It uses the glass button variant (80% background, blurred, border-border/60), so it blends into the text behind it:

    • https://github.com/pingdotgg/t3code/blob/v0.1.8-nightly.20261106.4288/apps/web/src/components/chat/TimelineOverlays.tsx#L36-L42
    • https://github.com/pingdotgg/t3code/blob/v0.1.8-nightly.20261106.4288/apps/web/src/components/ui/button.tsx#L56-L57

Impact

Blocks work completely

Version or commit

Nightly 0.1.8-nightly.20261106.4288

Environment

macOS 26, desktop app

Logs or stack traces


Screenshots, recordings, or supporting files

No response

Workaround

None; scroll back up after sending.

baohappy02 avatar Nov 07 '26 04:11 baohappy02

Same here on T3 Code (Nightly) 0.1.9-nightly.20261110.4491, macOS 27.2, Claude Code provider.

I was scrolled up reading a long earlier reply, sent a short follow-up, and the thread jumped to the end. I lost my place and had to scroll back to find it.

Expected: if I'm scrolled up when I send, the thread keeps my position and the "Scroll to end" pill takes me to the new turn when I want.

svenrabe avatar Nov 11 '26 13:11 svenrabe

Yes, this is very necessary. It's quite annoying to have to constantly scroll all the way up to my reading position. As @svenrabe said, the "Scroll to end" pill already does the job of sending to the end when necessary.

diogovalada avatar Nov 14 '26 14:11 diogovalada

This is how it is meant to work: This is how most chat apps work I think?

Closing as not planned.

juliusmarminge avatar Nov 16 '26 05:11 juliusmarminge

This is how it is meant to work: This is how most chat apps work I think?

Closing as not planned.

Not really tho, when you are init the action to scroll out of the bottom to read some thing in the chat, you do not want it to kept scroll you down to the bottom every 1 minutes while the agents is working

baohappy02 avatar Nov 20 '26 10:11 baohappy02

This is how it is meant to work: This is how most chat apps work I think? Closing as not planned.

Not really tho, when you are init the action to scroll out of the bottom to read some thing in the chat, you do not want it to kept scroll you down to the bottom every 1 minutes while the agents is working

Agree. I often start reading a message way up and as I have questions or want to correct something, I just type and send. If there's already a message running, it's great: it doesn't scroll to the bottom. But if this kicks off new work, then it auto scrolls to the bottom and I struggle to know where I was at. It doesn't make any sense. We already have the "Scroll to end" button.

marco-ruiz-b avatar Nov 25 '26 17:11 marco-ruiz-b