diff --git a/vibn-frontend/app/api/chat/route.ts b/vibn-frontend/app/api/chat/route.ts index 7260ced..7cc686e 100644 --- a/vibn-frontend/app/api/chat/route.ts +++ b/vibn-frontend/app/api/chat/route.ts @@ -1036,6 +1036,7 @@ export async function POST(request: Request) { if (ranVerification) { if (verifySig) { + // Blocked condition: Same exact error signature two rounds in a row, with no code progress made. if (lastVerifySig && verifySig === lastVerifySig && !progressed) { loopBreakReason = `Blocked on persistent error: ${verifySig.split(";;")[0]}`; } @@ -1423,7 +1424,7 @@ function getRoundVerifySignature(roundResults: any[]): string | null { Array.isArray(result.errors) && result.errors.length > 0 ) { - // Normalize: replace preview subdomain hashes and port numbers to keep signature stable + // Normalize: Keep status codes and line numbers intact! Only strip out volatile subdomains and timestamps. const cleanErrors = result.errors.map((e: string) => normalizeError(e), );