Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2.1 KiB
2.1 KiB
WR-4 TEAMS、Runtime 与 /chat 执行闭环
目标
完成 war-room 的最后一公里,让页面从“可编辑”升级为“可发起执行并观察结果”。
范围
- TEAMS 模式真实化
- Runtime strip 与运行记录联动
- 顶部
运行按钮接入/chat - 页面整体联调和回归验证
具体任务
1. TEAMS 模式
补齐:
- TeamCard
- TeamNetwork
- 协作协议说明
- 选中群组后的 Inspector 详情
2. Runtime Feed
最小要求:
- 读取最近执行记录
- 显示时间、事件、详情、状态
- 与当前 orchestration 或 team 建立过滤关系
3. /chat handoff
建议最小方案:
- 用户在
/war-room选择当前 orchestration - 点击
运行 - 前端调用执行准备接口,返回
execution_context - 跳转
/chat /chat根据上下文自动加载对应执行任务或预填 prompt
候选接口:
POST /api/orchestrations/:id/launch
返回建议:
orchestration_idexecution_idchat_seedtarget_route
4. 页面收口
- 统一顶部按钮行为
- 统一空态、错误态和加载态
- 完成视觉细节与响应式收口
- 去掉临时占位按钮和无效入口
建议文件变更
Frontend
- 新增
frontend/src/pages/war-room/components/stage-teams/StageTeams.vue - 新增
frontend/src/pages/war-room/components/stage-teams/TeamCard.vue - 新增
frontend/src/pages/war-room/components/stage-teams/TeamNetwork.vue - 扩展
RuntimeStrip.vue - 修改
/chat接收 war-room 上下文的入口逻辑
Backend
- 扩展 orchestration launch 接口
- 增加运行记录查询接口或复用现有日志/任务体系
验收标准
- TEAMS 模式展示真实群组数据。
- Runtime feed 能展示真实运行记录或最小真实事件流。
- 点击
运行可以从/war-room跳转/chat并带上执行上下文。 - 页面不存在主要占位假按钮。
验证建议
- 后端接口测试:
- launch
- runtime list
- 前端集成测试:
- launch 成功跳转
- runtime feed 刷新
- 手测:
- FIXED -> STUDIO -> 保存 -> 运行 -> /chat
- TEAMS 选中与 Inspector 联动