fix(prompt-gate): harden sync and team prompt dispatch

This commit is contained in:
YeonGyu-Kim
2026-05-19 17:43:37 +09:00
parent 1492bffd20
commit bcea4a9d28
44 changed files with 688 additions and 140 deletions
@@ -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 {}