You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(dashboards): stop routing every chat message through full dashboard generation
Every message sent in the dashboard builder's chat — including a bare "hi" —
was wrapped in DashboardAgentService.buildTask's full ground+write-SQL+verify+
self-review pipeline, since there was no other path. That's why trivial
messages took ~3 minutes: the agent was dutifully trying to build a dashboard
in response to a greeting.
DashboardAgentService now classifies each message with a direct, single
ChatModel call (no agent session, no tools) before deciding which path to
take — a real LLM judgment call, not a keyword match, since a fixed word list
can't tell "make it prettier" or "no, the other one" from a real edit ask.
The classification prompt is explicitly biased toward "this is a real
request" on anything ambiguous, so a genuine request is never misrouted to
the lightweight reply-only path.
Verified against the running backend: "hi" and "thanks!" both classify as
chat-only and reply in seconds; "make it prettier" (which a keyword list
would have missed — no build-related word in it) correctly routes to the
full grounding+SQL+verify pipeline.
Frontend (dashboardGenerator.js, DashboardWorkspace.jsx) grows an onChat
handler that appends the reply as a plain agent bubble without touching the
saved config or triggering an auto-save.
0 commit comments