feat: direct-execute legacy create-assistant entry
This commit is contained in:
@@ -12070,6 +12070,14 @@ document.addEventListener("click", async (event) => {
|
||||
return;
|
||||
}
|
||||
if (name === "open-create-assistant") {
|
||||
const project = getSelectedProject();
|
||||
if (project?.id) {
|
||||
await runDirectWorkbenchAction("create-assistant", {
|
||||
busyLabel: "正在创建 Agent...",
|
||||
errorTitle: "创建 Agent 失败"
|
||||
});
|
||||
return;
|
||||
}
|
||||
openCreateAssistantAction();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1045,6 +1045,9 @@ test("playbook and review high-frequency actions now reuse direct execute handle
|
||||
assert.match(clickActions, /name === "open-real-cut"[\s\S]*const fallbackJob = getLatestCompletedProjectJob\(\)/);
|
||||
assert.match(clickActions, /name === "open-real-cut"[\s\S]*runDirectWorkbenchAction\("create-real-cut"/);
|
||||
assert.match(clickActions, /name === "open-real-cut"[\s\S]*openCreateRealCutAction\(\)/);
|
||||
assert.match(clickActions, /name === "open-create-assistant"[\s\S]*const project = getSelectedProject\(\)/);
|
||||
assert.match(clickActions, /name === "open-create-assistant"[\s\S]*runDirectWorkbenchAction\("create-assistant"/);
|
||||
assert.match(clickActions, /name === "open-create-assistant"[\s\S]*openCreateAssistantAction\(\)/);
|
||||
});
|
||||
|
||||
test("main agent landing notices expose a compact mobile follow-up strip", () => {
|
||||
|
||||
Reference in New Issue
Block a user