delegate-task: block prometheus task delegation

This commit is contained in:
YeonGyu-Kim
2026-04-10 13:42:53 +09:00
parent e86b4f4c2b
commit c173fa8f24
7 changed files with 33 additions and 16 deletions
@@ -605,8 +605,8 @@ describe("executeSyncContinuation - toast cleanup error paths", () => {
})
})
test("keeps plan-family task delegation available during sync continuation", async () => {
//#given - a resumed plan-family session should keep its intended task capability
test("keeps task delegation disabled during prometheus sync continuation", async () => {
//#given - a resumed prometheus session should stay unable to delegate tasks
const promptAsyncCalls: Array<{ path: { id: string }; body: Record<string, unknown> }> = []
const mockClient = {
session: {
@@ -656,7 +656,7 @@ describe("executeSyncContinuation - toast cleanup error paths", () => {
const args = {
session_id: "ses_test_12345678",
prompt: "continue planning",
description: "resume plan task",
description: "resume prometheus task",
load_skills: [],
run_in_background: false,
}
@@ -667,7 +667,7 @@ describe("executeSyncContinuation - toast cleanup error paths", () => {
//#then
expect(promptAsyncCalls).toHaveLength(1)
expect(promptAsyncCalls[0]?.body.tools).toEqual({
task: true,
task: false,
call_omo_agent: true,
question: false,
})