MoonshotAI / MoonshotAI/kimi-code

[Bug] 任务触发子代理(subagent)执行期间,聊天窗口滚动条持续跳回底部,无法查阅历史消息

Open
#2,098 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
7.5k
Forks
1.2k
Avg merge
11h 53m
Merged PRs (30d)
350

Description

Bug 描述

当 agent 执行任务触发子代理(subagent)运行时,聊天窗口的滚动条会持续被强制刷新到最底端。用户在子代理执行期间尝试向上滑动查看历史对话时,会被强制拉回底部,无法正常浏览历史内容。

复现步骤

  1. 在对话中发送一个会触发子代理的 prompt(例如需要搜索文件系统、执行复杂多步骤任务的请求)
  2. 子代理被触发并开始执行,聊天界面持续追加新的子代理输出消息
  3. 在子代理运行期间,尝试向上滚动查看之前的对话历史
  4. 滚动条会被强制弹回底部

期望行为

用户手动向上滑动查看历史内容时,不应被自动滚动打断。只有当用户已经处于底部(或接近底部)时,新消息才应该触发自动滚动到底部。如果用户正在浏览历史内容,新消息不应改变滚动位置。

环境信息

  • 平台:macOS

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the chat window's scroll handling and the code that appends subagent output, then reproduce the issue on macOS with a prompt that triggers a subagent. Verify that new messages preserve the user's position when they are reading history, while still scrolling to the bottom when the user is already there.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.