Skip to content

[Bug]: The Desktop App chat scrollbar no longer follows the chat when new messages are displayed #42777

Closed

Description

@nonspacial

Bug Description

IT was working fine a week ago or so. Now I have to continuously scroll down to see the next message sent by the agent or myself. This is very annoying especially when there are "Allow" buttons to click. You can not know this for ages if you don't scroll to the end of the chat when the messages grow past the bottom of the page.

Steps to Reproduce

!. open the Desktop Chat.
2. Open a long enough chat or make your browser small enough that the chat continues beyond.
3. send a message and watch it disappear off the bottom of the screen as the LLM continues to work.

Expected Behavior

Chat should always be at the bottom of the chat if I scroll down there. If I choose to scroll up it should not reset as I'm likely looking at something, but If it's sitting at the very bottom waiting for the next response it should be autoscrolling with each message received. It actually did this before so..?

Actual Behavior

Pretty sure there's no error, It probably happened when trying to fix the bug others were complaining aboout where it randomly scrolled up a few pixels.

Affected Component

Agent Core (conversation loop, context compression, memory)

Messaging Platform (if gateway-related)

No response

Debug Report

Report       https://paste.rs/79nPp                                         
agent.log    https://paste.rs/zpibZ
gateway.log  https://paste.rs/RuVfo

Operating System

CachyOS

Python Version

3.12

Hermes Version

0.16.0

Additional Logs / Traceback (optional)

Root Cause Analysis (optional)

No response

Proposed Fix (optional)

No response

Are you willing to submit a PR for this?

  • I'd like to fix this myself and submit a PR

Activity

  1. added
    type/bugSomething isn't working
    P3Low — cosmetic, nice to have
    on Jun 9, 2026
  2. kostyaff commented on Jun 9, 2026

    @kostyaff

    +1 Same issue here on Windows 10 with Hermes Desktop v0.15.1. When the agent streams a long response, the chat does not auto-scroll to the bottom. I have to manually scroll down continuously to see the latest output. The scrollbar stays where it was before the response started. This happens on every turn, not just occasionally. Let me know if you need any logs or a screen recording.

  3. HughNonymous commented on Jun 9, 2026

    @HughNonymous

    I’m seeing the same behavior on Windows native Hermes Desktop.

    Environment

    Hermes Agent v0.16.0 (2026.6.5) · upstream 57775e9e
    Python: 3.11.15
    OpenAI SDK: 2.24.0
    OS: Windows native
    

    Repro I’m seeing

    1. Open Hermes Desktop.
    2. Start a longer-running session that streams tool calls / thinking / status updates.
    3. Leave the session at the bottom while output continues.
    4. Return after more output has streamed.

    Actual behavior

    The tool calls and streamed text continue below the visible viewport, but the chat/session window does not stay pinned to the newest output. I have to manually scroll down to find the latest activity.

    Expected behavior

    If the user is already at or near the bottom, the chat view should keep following new streamed output. If the user manually scrolls upward, auto-scroll should pause until they return to the bottom.

    No crash or traceback observed; this appears to be a Desktop UI scroll anchoring / auto-scroll regression. I’m not attaching logs or screenshots because they contain private local paths and conversation content, but the visible behavior matches this report.

  4. XGhozt commented on Jun 9, 2026

    @XGhozt

    Yup.. driving me crazy, it will not auto-scroll when the bar is at the bottom already. Tried different window sizes and various settings, seems like a bug.

  5. nonspacial commented on Jun 10, 2026

    @nonspacial
    Author

    It seems like someone requested that this was removed... lol what happens when too many people all want "their" functionality. I found these comments in the code:

    • // Intentionally NO streaming auto-follow. Earlier builds ran a
    • // ResizeObserver here that re-pinned the viewport to the bottom on every
    • // content growth while a turn was running, so the chat tracked tokens as
    • // they streamed. That behavior is removed by request: once a turn is in
    • // flight the viewport stays exactly where the user left it. The viewport
    • // is still moved to the bottom ONCE per user submit / new turn / session
    • // change (see the layout effect and the session-change effect below) so a
    • // freshly submitted message lands in view — but it does not chase the
    • // stream afterward.

    Now I think I found a workaround that I'm testing. It's a simple css trick in the running browser. Yep I think it's working...
    So if you open dev tools and the expand all the way down to this:

    and set that style property to unset that you see at the end, it overrides and works.

    This is the property that you are overriding on this 1 div:

    [data-slot=aui_thread-viewport] {
    overflow-anchor: none;
    }

    I literally just did this:

    element.style {
    overflow-anchor: unset;
    }

    Image
  6. nonspacial commented on Jun 10, 2026

    @nonspacial
    Author

    Also I've forked the repo and am working on a better fix than this, based on the comments from the code I'm trying to get it to do what it should do, which by my feeling is, autoscroll on load chat, autoscroll if at the bottom, no autoscroll if you scroll up manually until it is scrolled to the bottom again.

  7. nonspacial commented on Jun 10, 2026

    @nonspacial
    Author

    OK so I fixed it my end and made it as this PR:

    https://github.com/NousResearch/hermes-agent/pull/43624

    If anyone wants it if it doesn't get merged or before here's the branch you need on my fork:

    https://github.com/nonspacial/hermes-agent/tree/fix/desktop-chat-autoscroll

  8. nonspacial commented on Jun 11, 2026

    @nonspacial
    Author

    For anyone wanting to use the fix on their machine and stay up to date. I am syncinig the repo twice a day at least.

    The nuance I don't know how to make work without breaking everything is that on my machine I have to run hermes update, which then pulls from the nousreseach repo and updates the whole hermes install. Then I have to switch the repo to my branch and pull everything, then finally run hermes desktop again to build my fix into the desktop app. I'm probably doing this the hard way, but if anyone cares and needs it this is my solution until the PR is hopefully accepted.

  9. nonspacial commented on Jun 13, 2026

    @nonspacial
    Author

    PR is closed as it's been fixed in upstream yesterday. Happy days.

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

    P3Low — cosmetic, nice to havetype/bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions