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:
parent
c677042f05
commit
a8681a9ffe
@ -120,7 +120,7 @@ export function createSessionRecoveryHook(ctx: PluginInput, options?: SessionRec
|
|||||||
await resumeSession(ctx.client, resumeConfig)
|
await resumeSession(ctx.client, resumeConfig)
|
||||||
}
|
}
|
||||||
} else if (errorType === "assistant_prefill_unsupported") {
|
} else if (errorType === "assistant_prefill_unsupported") {
|
||||||
success = true
|
success = false
|
||||||
}
|
}
|
||||||
|
|
||||||
return success
|
return success
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user