Skip to content

fix(dashboards): emit SSE chat event so greetings are not treated as builds - #46

Merged
venkateshsakamuri-lab merged 1 commit into
mainfrom
cursor/fix-dashboard-chat-sse-event
Aug 13, 2026
Merged

fix(dashboards): emit SSE chat event so greetings are not treated as builds#46
venkateshsakamuri-lab merged 1 commit into
mainfrom
cursor/fix-dashboard-chat-sse-event

Conversation

@venkateshsakamuri-lab

@venkateshsakamuri-lab venkateshsakamuri-lab commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Backend chat-only replies (e.g. "hi") now stream as a dedicated SSE chat event instead of reusing done.
  • Frontend handles chat separately and guards the workspace onDone path so a chat-shaped payload cannot append the canned “Done — built…” save message or clobber the artifact.

Why

Sumit’s chat-intent classifier in #42 was working (Hermes ran the greeting task), but the UI still showed “Done — built and verified…” because that line is hardcoded on the build-success path, which was driven by the shared done event.

Test plan

  • Hard-refresh Dashboards, open an existing draft, send hi
  • Expect a normal greeting reply — not “Done — built…”
  • Artifact HTML / KPIs unchanged after the greeting
  • A real edit (“add a filter”) still streams done and saves as before
  • curl/SSE: prompt=hi yields event:chat and no event:done

…builds

Out-of-context messages like "hi" were correctly classified as chat-only,
but still arrived on the done event. The workspace done handler always
appends the canned "Done — built…" line, so greetings looked like rebuilds.
@cursor

cursor Bot commented Aug 13, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@venkateshsakamuri-lab
venkateshsakamuri-lab merged commit f9cfbd7 into main Aug 13, 2026
7 checks passed
@venkateshsakamuri-lab
venkateshsakamuri-lab deleted the cursor/fix-dashboard-chat-sse-event branch August 13, 2026 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant