From f382ef0369d490aa3d6556c475ba75f972ce9739 Mon Sep 17 00:00:00 2001 From: mawkone Date: Tue, 2 Jun 2026 12:26:04 -0700 Subject: [PATCH] fix: relax conversational guard on long/detailed messages over 60 chars to allow prompt tool execution --- vibn-frontend/app/api/chat/route.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/vibn-frontend/app/api/chat/route.ts b/vibn-frontend/app/api/chat/route.ts index 0b6d566..518d43a 100644 --- a/vibn-frontend/app/api/chat/route.ts +++ b/vibn-frontend/app/api/chat/route.ts @@ -763,6 +763,7 @@ export async function POST(request: Request) { // This is more reliable than a prompt rule against a "do-er" model. function isConversational(msg: string): boolean { const m = msg.trim(); + if (m.length > 60) return false; // Long/detailed messages are action statements or bug reports, not simple chit-chat if (m.length < 3) return true; // single word / emoji if (m.endsWith("?")) return true; // explicit question // Short phrases that are status checks or greetings