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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user