Skip to content

[Feature] ストリーミング中のメッセージ自動スクロール #41

Description

@ktmage

Description

エージェントがメッセージをストリーミング中に、ユーザーが最下部にスクロールしている場合、新しいコンテンツに合わせて自動的にスクロールダウンする。

現状は初回マウント時のみ scrollIntoView が呼ばれ、メッセージ更新時には自動スクロールが発動しない。

Motivation

エージェントの応答をリアルタイムで読みたいとき、手動でスクロールし続ける必要があり不便。一般的なチャット UI では最下部にいる場合は自動追従するのが標準的な挙動。

Proposed Solution

  1. MessagesArea のスクロールコンテナに onScroll リスナーを追加し、ユーザーが最下部付近にいるかを isNearBottom フラグで管理する
  2. messages の更新時に isNearBottom が true であれば scrollIntoView を呼ぶ
  3. 閾値(例: 100px)以内であれば「最下部付近」と判定する

Activity

  1. added a commit that references this issue on Mar 1, 2026
    dbe18b1
  2. self-assigned this
    on Mar 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions