fix(ai): bump roundSinceText cutoff to 30 to prevent panic loops
This commit is contained in:
@@ -897,7 +897,7 @@ export async function POST(request: Request) {
|
||||
(round >= MAX_TOOL_ROUNDS ||
|
||||
!!loopBreakReason ||
|
||||
assistantText.trim().length === 0 ||
|
||||
roundsSinceText >= 8 ||
|
||||
roundsSinceText >= 30 ||
|
||||
lastToolResultsHadFailure(messages));
|
||||
|
||||
if (needsRecovery) {
|
||||
|
||||
Reference in New Issue
Block a user