From f1d0c9e0b54b71b0176ee0752b4bb19fed26825f Mon Sep 17 00:00:00 2001 From: mawkone Date: Tue, 9 Jun 2026 14:18:44 -0700 Subject: [PATCH] chore(telemetry): jack up MAX_TOOL_ROUNDS to 150 for ultimate custom app-building runway --- vibn-frontend/app/api/chat/route.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vibn-frontend/app/api/chat/route.ts b/vibn-frontend/app/api/chat/route.ts index b6582c0e..1ee676d2 100644 --- a/vibn-frontend/app/api/chat/route.ts +++ b/vibn-frontend/app/api/chat/route.ts @@ -33,10 +33,10 @@ import { buildCodebaseSummary } from "@/lib/ai/codebase-summary"; import { execInDevContainer } from "@/lib/dev-container"; import type { ChatMessage, ToolCall } from "@/lib/ai/gemini-chat"; -// C-01: Raised to 60. Provides a massive engineering runway for complex coding -// tasks (like complete mobile-responsive styling), while the State-Based -// Governor acts as our real-time safetynet against loops. -const MAX_TOOL_ROUNDS = 60; +// C-01: Raised to 150. Provides a virtually unlimited, elite engineering runway +// for complex custom application building, while the State-Based +// Governor acts as our real-time safetynet to stop loops within 2 rounds. +const MAX_TOOL_ROUNDS = 150; let chatTablesReady = false; async function ensureChatTables() {