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