Repository navigation
fix(workflow): 拉群开始把草稿的项目写进 run.json,没设默认目录的节点 Bot 在项目里起 - #3263
Merged
Merged
Conversation
deepcoldy
requested review from
47seek,
LucasIcarus,
xiaoxueSunn and
xiongz-c
as code owners
November 9, 2026 12:25
群内 Bot 接力设计 15.3 补带草稿项目的 run 在新旧 daemon 混跑时的写入条件与交接前拦截, 15.4 补 nodeProjectDir 在执行 Bot 侧的判定,并更新 initiator-union-id 路由的回答范围; Dashboard 编排设计 4.1、7.3 补上项目对节点会话的作用。 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Owner
Author
|
这是自动评审的初步意见,最终以维护者审阅为准。 结论:代码可以合并,没有阻断问题。 在分支上追加了一个只改设计文档的提交 83567ac(原提交未改动),并修正了 PR 描述里一处与实际行为不符的说法。 修正的两处
验证(PR 合并到最新 master 30d37de 之后的树上)
可选的后续(不阻断)
|
|
@deepcoldy 合入 master 后的 Midscene E2E 失败:Feishu live Midscene 失败。 这次运行覆盖 ab837b4…9d202b2ca(3 个提交),同批合入的还有 #3252 #3256,失败不一定由本 PR 引起。
|
|
🚀 Released in v3.59.0 |
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.
现象
上一个 PR(#3246)让 Dashboard 工作流草稿有了「项目」:没设默认目录的编排 Bot 必须先选项目,澄清就在这个项目里做。但点「拉群开始」以后,各节点的 Bot 还是按老规则找目录:没设默认目录的 Bot 会落到
~或者它仓库目录列表里的第一个,和澄清时的项目不是同一个地方。用户在草稿里已经选过一次项目,执行时却不在那个项目里。本机 55 个 Bot 里有 18 个没设默认目录,都会碰到。
改了什么
nodeProjectDir,只在 Bot 执行的 run 上出现,和approve-dag --working-dir写的nodeWorkingDir互斥。普通拉群和「运行模板」两条提交路径都写。defaultWorkingDir,或开着的 Oncall 模式目录):和以前完全一样,用自己的默认目录,项目既不用也不检查。--working-dir用的是同一个函数):在这个 Bot 配置的目录范围内就直接用;范围外要发起人此刻能对这个 Bot 用/cd且在群里才放行;否则节点不启动、被挡住,原因里写明「工作流的项目目录 …」和为什么不行,主 Bot 会被叫醒,可以改派。workflowNodeProjectDir: 'v1',新 daemon 在自己的在线描述里声明。拉群提交时,主 Bot 先看这个 run 的其他执行 Bot 是否都声明了它:没有新配置项。只影响从 Dashboard 草稿「拉群开始」的 run;飞书里
/workflow run、approve-dag的路径没动。对老用户的影响
~里起。/cd才会在项目里起,否则节点会被挡住并写明原因(以前是悄悄在~里跑)。怎么验证的
tsc(tsconfig.json和tsconfig.typecheck.json)、bun run build通过。/cd那个 Bot 时放行,不能时拒绝;nodeWorkingDir同时出现;daemon 描述里只认'v1'。