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
+3
View File
@@ -521,6 +521,7 @@ export function createEventHandler(args: {
client: pluginContext.client,
sessionID,
source: `model-fallback:${source}`,
queueBehavior: "defer",
input: promptBody,
});
if (isInternalPromptDispatchAccepted(promptResult)) {
@@ -539,6 +540,7 @@ export function createEventHandler(args: {
client: pluginContext.client,
sessionID,
source: `model-fallback:${source}:sync`,
queueBehavior: "defer",
input: promptBody,
});
if (isInternalPromptDispatchAccepted(promptResult)) {
@@ -955,6 +957,7 @@ export function createEventHandler(args: {
client: pluginContext.client,
sessionID,
source: "session-recovery:post-compaction-continue",
queueBehavior: "defer",
input: {
path: { id: sessionID },
body: { parts: [createInternalAgentContinuationTextPart("continue")] },
@@ -46,6 +46,7 @@ describe("createUnstableAgentBabysitter", () => {
{
info: {
role: "assistant",
finish: "end_turn",
agent: "sisyphus",
model: { providerID: "openai", modelID: "gpt-4" },
},