任务日志自动跟随最新事件 #2

Merged
xhgit merged 1 commits from fix/task-log-follow into main 2026-11-07 18:53:33 +08:00
Owner

人工发现的 Bug

用户在任务执行页面发现,日志新增后滚动位置没有跟到最新一条,需要手动往下翻才能看到结果。

修复内容

  • 打开任务和收到新日志时,日志面板默认滚到最新一条。
  • 手动上翻时保留阅读位置,可点击「跳到最新日志」恢复跟随。
  • 日志接口返回最近 1000 条可见事件,按时间从早到晚排列。

验证结果

前端构建通过。浏览器验证了首次定位、轮询自动跟随、手动上翻、回到最新和切换任务。

## 人工发现的 Bug 用户在任务执行页面发现,日志新增后滚动位置没有跟到最新一条,需要手动往下翻才能看到结果。 ## 修复内容 - 打开任务和收到新日志时,日志面板默认滚到最新一条。 - 手动上翻时保留阅读位置,可点击「跳到最新日志」恢复跟随。 - 日志接口返回最近 1000 条可见事件,按时间从早到晚排列。 ## 验证结果 前端构建通过。浏览器验证了首次定位、轮询自动跟随、手动上翻、回到最新和切换任务。
xhgit added 1 commit 2026-11-07 18:49:24 +08:00
Follow the latest task logs while reading the tail
Verify control plane / verify (pull_request) Canceled after 0s
Verify control plane / verify (push) Canceled after 0s
6c5224fb6f
xhgit merged commit 6b5aea0a0d into main 2026-11-07 18:53:33 +08:00
xhgit deleted branch fix/task-log-follow 2026-11-07 18:53:33 +08:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: xhgit/webup-cloud#2