From a8681a9ffebc0168db11b101c5837708dd0b82a2 Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Wed, 11 Feb 2026 00:43:30 +0900 Subject: [PATCH] fix(session-recovery): return success=false for assistant_prefill_unsupported Returning true tricked the system into thinking recovery succeeded, triggering auto-continue which hit the same error again in an infinite loop. --- src/hooks/session-recovery/hook.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/session-recovery/hook.ts b/src/hooks/session-recovery/hook.ts index 324a2731b..8dedd3a02 100644 --- a/src/hooks/session-recovery/hook.ts +++ b/src/hooks/session-recovery/hook.ts @@ -120,7 +120,7 @@ export function createSessionRecoveryHook(ctx: PluginInput, options?: SessionRec await resumeSession(ctx.client, resumeConfig) } } else if (errorType === "assistant_prefill_unsupported") { - success = true + success = false } return success