Thanks to visit codestin.com
Credit goes to github.com

Skip to content

macOS webchat: Auto-scroll to bottom when sending a message while scrolled up #2470

@kennyklee

Description

@kennyklee

Problem

When the user is scrolled up reading older messages and sends a new message, the chat stays in place instead of scrolling to show the sent message.

Expected behavior

Sending a message should always scroll to the bottom so the user can see their message and the response.

Solution

Add an onChange handler for isSending that scrolls to bottom when the user starts sending a message, regardless of current scroll position.

Files affected

  • apps/shared/ClawdbotKit/Sources/ClawdbotChatUI/ChatView.swift

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