[Bug]: 已完成节点产物滚动到底部后,后续节点状态更新会把滚动位置重置到顶部

Open Beginner friendly
#1,259 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
66/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
javascript
Domain
frontend

Research direction

Start in the web UI code for the run detail page and find the component that renders a completed node's artifact/output panel together with the live node-status stream. Read how that panel re-renders when a later node changes state: look for a changing key, a conditional remount, or the scroll container being replaced on each update, since any of these resets scrollTop to 0. Reproduce with a run that has one finished node and one pending, scroll the artifact area to the bottom, and wait for the status push. Done means status updates re-render in place without moving the scroll position, while switching nodes or replacing the artifact content still returns to the top.

Written by the indexing model from the issue text.

Description

bug
Component / host

Platform — web / API

Edition

Platform

LoopForge version

v0.4.0

What happened?

在 run 详情页查看某个已完成节点的产物(artifact/输出)时,把产物区域的滚动条拉到底部阅读;此时后续节点(下一阶段)的状态发生更新,产物区的滚动位置会被重置回顶部,阅读位置丢失。

期望行为:后续节点的状态增量更新(pending→running→succeeded 等实时推送引发的重新渲染)不应重置用户已经滚动到的位置;只有在用户主动切换节点或产物内容整体替换时才回到顶部。

Reproduction
  1. 打开一个正在运行的 run 详情页(既有已完成节点,也有仍在进行/待执行的后续节点)。
  2. 展开已完成节点的产物或输出区域,把滚动条拉到底部。
  3. 等待后续节点状态更新(例如下一个节点开始运行或完成)。
  4. 观察到产物区的滚动条跳回顶部。

环境:LoopForge v0.4.0 本地部署(localhost:8090),Chrome。

Sanitized diagnostics

Safety checks
  • I removed credentials, private endpoints, internal identifiers, and personal data.
  • I searched existing issues for duplicates.
Dominant language
Go
Stars
5.4k
Forks
758
Avg merge
21h 9m
Merged PRs (30d)
171

Getting set up

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.

More from Tencent/LoopForge

All issues in Tencent/LoopForge

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.