fix(dashboards): Collapse Seer system prompt in dashboard chat#117307
Merged
DominikB2014 merged 1 commit intoJun 10, 2026
Conversation
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
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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)
Uncollapsed
Changes
splitDashboardPrompt(), which separates the prepended instructions from the user's actual query using the backend'sUser Query:marker.DashboardChatBlockwrapper around the shared SeerBlockComponent. For the instructions-bearing user block, it renders only the user's query in the chat bubble and tucks the instructions behind a collapsed, expandableDisclosure("System instructions"). All other blocks render unchanged.DashboardChatBlock.The prompt sent to Seer is unchanged, so generation quality is preserved — this is a display-only change.
Fixes DAIN-1711