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.
This commit is contained in:
YeonGyu-Kim
2026-02-11 00:43:30 +09:00
parent c677042f05
commit a8681a9ffe

View File

@@ -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