From ef539d34a7c5c9c42229a1bf84bc3699f3468cf3 Mon Sep 17 00:00:00 2001 From: mawkone Date: Wed, 10 Jun 2026 12:16:42 -0700 Subject: [PATCH] chore(telemetry): correct Path Confusion loop breaker implementation --- vibn-frontend/app/api/chat/route.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vibn-frontend/app/api/chat/route.ts b/vibn-frontend/app/api/chat/route.ts index 7750e26..6835960 100644 --- a/vibn-frontend/app/api/chat/route.ts +++ b/vibn-frontend/app/api/chat/route.ts @@ -71,7 +71,7 @@ function classifyTurnIntent(message: string): TurnIntent { // Feature build if ( - /(build|create|add|implement|make a|setup|wire up|scaffold|integrate)/.test( + /(build|create|add|implement|make|setup|wire|scaffold|integrate|restart|start|reboot|run)/.test( m, ) ) { @@ -94,7 +94,7 @@ function classifyTurnIntent(message: string): TurnIntent { return "status_check"; // Conversational fallback - if (m.length < 20 || /^(hi|hello|thanks|ok|yes|no)/.test(m)) + if (m.length < 5 || /^(hi|hello|thanks|ok|yes|no)/.test(m)) return "conversational"; // Default to a generous feature build if we can't tell