Skip to content

feat(workflow-run): implement resumable generation orchestration - #86

Open
xyh202131 wants to merge 4 commits into
1024XEngineer:mainfrom
xyh202131:feat/workflow-run-core-clean
Open

feat(workflow-run): implement resumable generation orchestration#86
xyh202131 wants to merge 4 commits into
1024XEngineer:mainfrom
xyh202131:feat/workflow-run-core-clean

Conversation

@xyh202131

@xyh202131 xyh202131 commented Aug 3, 2026

Copy link
Copy Markdown

目的

实现可恢复的 WorkflowRun Entity 和前端用例编排,让角色生成、动作首帧选择与完整动画生成共用一套真实运行状态。

包含

  • purpose 判别的 WorkflowRun / WorkflowRevision / WorkflowStep 模型
  • model / store / service 内部职责分层和 Entity 公开入口
  • 版本化 localStorage Store、刷新恢复、运行/历史订阅和运行时快照校验
  • 角色生成 4 张临时候选,只确认 1 张正式结果
  • 角色 Run 完成后,用户点击生成动作才创建独立 add_action Run
  • 生成 4 张独立动作首帧候选,选中 1 张后才生成完整动画
  • 只持久化 Generation ID,不持久化临时候选 URL;刷新后只补齐缺失的首帧任务
  • 审核通过后以稳定 actionId 写回 Character,避免重试重复追加

边界

  • 本 PR 只修改 frontend/src/entities/index.tsfrontend/src/entities/workflow-run/
  • 不包含 pages、WorkflowController、HTTP/SSE 适配器、Playtest 或后端代码
  • CharacterCandidateConfirmationApis 要求后端原子完成“保存选中图 + 返回正式 ID + 清理其余 3 张”;当前不提供假成功降级

验证

  • npm run typecheck:通过
  • npm run lint:通过
  • npm test:23 项通过
  • npm run build:通过
  • WorkflowRun 范围格式检查和 git diff --check:通过
  • 后端变更:0 个文件

本 PR 仅供审核,不执行合并。替代已关闭且未合并的 #85

@vercel

vercel Bot commented Aug 3, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
windup Ready Ready Preview Aug 3, 2026 9:00am

@fennoai fennoai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found in this review.

Verified:

  • npm test -- --run src/entities/workflow-run/store.test.ts
  • npm run typecheck

Note: dependency installation completed with a Node engine warning because this sandbox uses Node 20 while react-router@8.3.0 declares Node >=22.22.0.

@xyh202131 xyh202131 changed the title feat(workflow-run): add versioned history store feat(workflow-run): implement resumable generation orchestration Aug 3, 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.

1 participant