fix(ai): bump roundSinceText cutoff to 30 to prevent panic loops

This commit is contained in:
2026-05-19 15:26:15 -07:00
parent 63b64d5fc2
commit 7c45fdc5cc
2 changed files with 2 additions and 2 deletions

View File

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