feat: 多频道任务队列总览卡片
部署到群晖 / deploy (push) Successful in 52s

- download_stat 新增 _task_queue / _completed_chats 与三个辅助函数
- 切频道前自动把上一个频道的最终进度快照进 completed_chats
- save_and_restart(_multi) 启动任务时设置队列,供前端渲染总览
- 前端 banner 改为"任务队列"多卡片列表(已完成 / 🚀当前 / 排队中),
  含进度条、跳过明细;兼容单频道场景

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
yuming
2026-04-23 12:47:44 +08:00
parent 58194ba29f
commit e5e375c30d
4 changed files with 225 additions and 76 deletions
+3
View File
@@ -18,6 +18,7 @@ from module.download_stat import (
update_download_status,
update_task_progress,
reset_task_progress,
snapshot_current_chat,
increment_task_stat,
get_task_progress,
is_message_skipped,
@@ -602,6 +603,8 @@ async def download_chat_task(
node: TaskNode,
):
"""Download all task"""
# 切到下一个频道前,先把上一个频道的最终进度快照进 _completed_chats
snapshot_current_chat()
# Reset and update task progress
reset_task_progress()