Skip to content

fix: 刷新页面后恢复任务状态#58

Merged
jihe520 merged 1 commit intojihe520:mainfrom
greybot37:fix-refresh-task-state
Apr 30, 2026
Merged

fix: 刷新页面后恢复任务状态#58
jihe520 merged 1 commit intojihe520:mainfrom
greybot37:fix-refresh-task-state

Conversation

@greybot37
Copy link
Copy Markdown
Contributor

@greybot37 greybot37 commented Apr 27, 2026

变更内容

  • 新增任务历史消息接口,刷新任务页时先加载已保存消息。
  • 前端按 taskId 缓存、合并和去重消息,避免刷新后任务进度/消息丢失。
  • WebSocket 重连时不再重复发布“任务开始处理”,并增强断连清理逻辑。
  • 增加 task_id 安全校验,避免非法任务 ID 访问消息文件。
  • 为本地 Docker 运行增加 override 容器名,避免 fork 项目与本地原项目容器冲突。

验证

  • python3 -m py_compile backend/app/routers/common_router.py backend/app/routers/ws_router.py backend/app/services/ws_manager.py backend/app/utils/common_utils.py 通过。
  • pnpm install --offline 通过。

@jihe520 jihe520 merged commit c65a7eb into jihe520:main Apr 30, 2026
@jihe520
Copy link
Copy Markdown
Owner

jihe520 commented Apr 30, 2026

感谢你的贡献🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants