refactor: slim thread execution prompts

This commit is contained in:
kris
2026-04-04 03:43:21 +08:00
parent 829005ba66
commit 2f741c327f
4 changed files with 27 additions and 20 deletions

View File

@@ -175,6 +175,12 @@ async function createConfirmedDispatchExecution() {
task.requestMessageId === messagePayload.dispatchPlan?.planId,
);
assert.ok(executionTask, "expected a queued dispatch execution master-agent task");
assert.ok(executionTask?.executionPrompt?.includes("请主 Agent 推荐要先同步的线程"));
assert.ok(executionTask?.executionPrompt?.includes(executionTask?.targetThreadDisplayName ?? ""));
assert.ok(!executionTask?.executionPrompt?.includes("groupProjectId:"), "dispatch prompt should not include group project id labels");
assert.ok(!executionTask?.executionPrompt?.includes("threadProjectId:"), "dispatch prompt should not include thread project id labels");
assert.ok(!executionTask?.executionPrompt?.includes("threadId:"), "dispatch prompt should not include raw thread id labels");
assert.ok(!executionTask?.executionPrompt?.includes("folderName:"), "dispatch prompt should not include folder labels");
return { groupProject, execution, executionTask };
}