[Bug]: Session scroll stuck in long session in Web UI #7073

Closed
opened 2026-02-16 18:06:06 -05:00 by yindo · 2 comments
Owner

Originally created by @Ozmah on GitHub (Jan 21, 2026).

Originally assigned to: @adamdotdevin on GitHub.

Description

Session scroll is stuck if you click on a session message inside a long session. After some testing I found that around the 22 to 24 messages mark this starts to happen.

https://github.com/user-attachments/assets/3253cc07-8305-4fb9-abc2-bf95c409062e

I did some digging a bit and found that scrollToMessage calls updateHash(message.id) and never clears it but this doesn't happen in "shorter" sessions.

Running history.replaceState(null, "", location.href.replace(/#.*$/, "")) in console unsticks the scroll.

Potentially clearing the hash after a successful scroll in the attempt function in scrollToMessage might do the trick.

In the video:

  • Programming Session has 19 messages
  • Gaming Session has 22 messages

Win 11, Browser Helium (Tested in Zen, Chrome and Firefox, all confirmed)

Plugins

None

OpenCode version

v1.1.28

Steps to reproduce

  1. In the web version, hover over a long session (at least 22 messages in my experience)
  2. Move to the messages submenu
  3. Click on any message that is not the last one
  4. Scroll

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

No response

Originally created by @Ozmah on GitHub (Jan 21, 2026). Originally assigned to: @adamdotdevin on GitHub. ### Description Session scroll is stuck if you click on a session message inside a long session. After some testing I found that around the 22 to 24 messages mark this starts to happen. https://github.com/user-attachments/assets/3253cc07-8305-4fb9-abc2-bf95c409062e I did some digging a bit and found that `scrollToMessage` calls `updateHash(message.id)` and never clears it but this doesn't happen in "shorter" sessions. Running `history.replaceState(null, "", location.href.replace(/#.*$/, ""))` in console unsticks the scroll. Potentially clearing the hash after a successful scroll in the `attempt` function in `scrollToMessage` might do the trick. In the video: - Programming Session has 19 messages - Gaming Session has 22 messages Win 11, Browser Helium (Tested in Zen, Chrome and Firefox, all confirmed) ### Plugins None ### OpenCode version v1.1.28 ### Steps to reproduce 1. In the web version, hover over a long session (at least 22 messages in my experience) 2. Move to the messages submenu 3. Click on any message that is not the last one 4. Scroll ### Screenshot and/or share link _No response_ ### Operating System Windows 11 ### Terminal _No response_
yindo added the bugweb labels 2026-02-16 18:06:06 -05:00
yindo closed this issue 2026-02-16 18:06:06 -05:00
Author
Owner

@adamdotdevin commented on GitHub (Jan 22, 2026):

I believe we fixed this @Ozmah, can you install latest and confirm?

@adamdotdevin commented on GitHub (Jan 22, 2026): I believe we fixed this @Ozmah, can you install latest and confirm?
Author
Owner

@Ozmah commented on GitHub (Jan 22, 2026):

Yes, I can confirm it's fixed in v1.1.31, thank you guys!

@Ozmah commented on GitHub (Jan 22, 2026): Yes, I can confirm it's fixed in v1.1.31, thank you guys!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7073