Skip to content

fix(dashboards): Collapse Seer system prompt in dashboard chat#117307

Merged
DominikB2014 merged 1 commit into
masterfrom
dominikbuszowiecki/dain-1711-minimize-or-hide-system-prompt-during-dashboard-generation
Jun 10, 2026
Merged

fix(dashboards): Collapse Seer system prompt in dashboard chat#117307
DominikB2014 merged 1 commit into
masterfrom
dominikbuszowiecki/dain-1711-minimize-or-hide-system-prompt-during-dashboard-generation

Conversation

@DominikB2014

@DominikB2014 DominikB2014 commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

When generating or editing a dashboard with Seer, the dashboard generation endpoint prepends a block of generation instructions to the user's prompt before sending it to Seer. That combined string was rendered verbatim as the first user message in both the chat panel and the in-progress loading view, exposing the instructions ("system prompt") in the UI.

Default state (collapsed)

image

Uncollapsed

image

Changes

  • Add splitDashboardPrompt(), which separates the prepended instructions from the user's actual query using the backend's User Query: marker.
  • Add a DashboardChatBlock wrapper around the shared Seer BlockComponent. For the instructions-bearing user block, it renders only the user's query in the chat bubble and tucks the instructions behind a collapsed, expandable Disclosure ("System instructions"). All other blocks render unchanged.
  • Route both the dashboard chat panel and the generation loading view through DashboardChatBlock.

The prompt sent to Seer is unchanged, so generation quality is preserved — this is a display-only change.

Fixes DAIN-1711

The dashboard generation endpoint prepends a block of generation
instructions to the user's prompt before sending it to Seer, and that
combined string was rendered verbatim as the first user message in the
chat panel and loading view — exposing the instructions in the UI.

Split the prepended instructions from the user's actual query (on the
`User Query:` marker) and render only the query in the chat bubble,
tucking the instructions behind a collapsed disclosure. The prompt sent
to Seer is unchanged, so generation quality is preserved.

DAIN-1711
@linear-code

linear-code Bot commented Jun 10, 2026

Copy link
Copy Markdown

DAIN-1711

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jun 10, 2026
@DominikB2014 DominikB2014 marked this pull request as ready for review June 10, 2026 14:00
@DominikB2014 DominikB2014 requested a review from a team as a code owner June 10, 2026 14:00

@nikkikapadia nikkikapadia left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so cleannn

@DominikB2014 DominikB2014 merged commit 5deca13 into master Jun 10, 2026
72 checks passed
@DominikB2014 DominikB2014 deleted the dominikbuszowiecki/dain-1711-minimize-or-hide-system-prompt-during-dashboard-generation branch June 10, 2026 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants