Repository navigation
[v2] 任务页工作区、用工作流处理(mock)和第 3 段演示镜头 - #353
Merged
Merged
Conversation
The run view took its tenant from the chat store, down to the Theater's node sessions, so no other page could host it. A host now passes its tenant, can show the run read-only and can put its own control at the start of the header. Chat is unchanged.
A split only said it was running, and nothing listed what a task had run. The task page now has a 工作流 tab between Agent 运行 and 讨论: a list of the runs, each opening the chat page's run view, read-only because a run started there would not belong to the task. Starting a split opens its run; an open run folds the subtasks and hides the composer to give the graph the room. The demo video's shot opens the folded subtasks.
An Agent run on a task has its own checkout, but only conversations and workflow runs exposed theirs. Anyone who can read the task can read its runs, so the same members can read what those runs changed.
The task page could show a run but not what it changed, so reviewing a task meant leaving it. The header's 工作区 opens the checkout of the run on screen in place of the side column, and names that run, since every run has its own checkout. The run view hands its panel to the page hosting it.
The server cannot tie a workflow run to a task yet, so with VITE_DEMO_MOCK=1 the assignee gets 用工作流处理: pick a workflow, edit the requirement and start a real run, which the task lists as its own. The link between run and task is mocked and registered in lib/demo.
A read-only run view has no such button, and the result card shows there too.
Three shots on one environment: 陈默 splits a requirement and assigns it, 苏芮 handles a task with a workflow and submits it, 陈默 reviews 苏芮's changes and accepts them.
…flow-mock # Conflicts: # frontend-v2/src/lib/demo/registry.ts # frontend-v2/video/src/shots/index.ts
…flow-mock # Conflicts: # frontend-v2/video/src/shots/index.ts
…flow-mock # Conflicts: # frontend-v2/video/src/shots/index.ts
…flow-mock # Conflicts: # frontend-v2/src/features/chat/workflow-run/run-pane.tsx
This was referenced Nov 10, 2026
Closed
This was referenced Nov 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs ora-space/circus#1003
v2,不涉及 specs。依赖 #342:本分支包含它的两个提交,#342 合并后这里的差异会自动变小。
改了什么
/api/v2/tenants/{tid}/tasks/{taskid}/runs/{rid}/workspace,能读任务的成员都能读。VITE_DEMO_MOCK=1时,任务负责人可以选工作流、编辑需求后启动。运行是真实的,运行和任务的关联、预填需求是 mock,已登记到src/lib/demo/registry.ts,跑完由负责人手动提交验收。team-split、team-human、team-review,登记时替换了lead-decompose。lead-decompose.ts保留,video/README.md还拿它做例子。出片
镜头共用一个环境连着录,顺序不能换;环境每次启动都会重置数据,改动任何一个镜头都要从
team-split重录。单独改文案、不改操作时也要重录,因为旁白长度决定时间线。只改合成部分(如角标)不用重录,重新渲染即可。
验证
frontend-v2的npm run check(780 个单测)、frontend-v2/video的npm run check通过;v2-server只跑了internal/server、internal/store、internal/taskrun,通过。ce1c9248上录完三个镜头:team-split44.4 秒、team-human45.5 秒、team-review27.8 秒,共约 118 秒。之后只改了章节页的03 /编号,不影响时间线,没有再录。真实运行的耗时每次不同,时长会有几秒浮动。team-review末句定格补 1.7 秒,不影响出片。npm run e2e,以 CI 为准。已知问题