fix(prompt-gate): harden sync and team prompt dispatch
This commit is contained in:
@@ -69,6 +69,7 @@ describe("delegate-task Oracle gap closure", () => {
|
||||
client: {
|
||||
session: {
|
||||
messages: async () => ({ data: [{ info: { agent: "explore", model: MODEL, variant: "max" } }] }),
|
||||
prompt: async () => ({}),
|
||||
promptAsync: async () => ({}),
|
||||
},
|
||||
},
|
||||
@@ -99,6 +100,7 @@ describe("delegate-task Oracle gap closure", () => {
|
||||
client: {
|
||||
session: {
|
||||
messages: async () => ({ data: [{ info: { agent: "explore", model: MODEL } }] }),
|
||||
prompt: async () => ({}),
|
||||
promptAsync: async () => ({}),
|
||||
},
|
||||
},
|
||||
@@ -190,6 +192,10 @@ describe("delegate-task Oracle gap closure", () => {
|
||||
client: {
|
||||
session: {
|
||||
messages: async () => ({ data: [{ info: { agent: "explore", model: MODEL } }] }),
|
||||
prompt: async (input: { body?: { system?: string } }) => {
|
||||
promptCalls.push(input)
|
||||
return {}
|
||||
},
|
||||
promptAsync: async (input: { body?: { system?: string } }) => {
|
||||
promptCalls.push(input)
|
||||
return {}
|
||||
|
||||
Reference in New Issue
Block a user