chore(telemetry): correct Path Confusion loop breaker implementation

This commit is contained in:
2026-06-10 12:16:42 -07:00
parent e6721a0b72
commit ef539d34a7

View File

@@ -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