feat(explore): Apply Seer-suggested interval to Explore charts#117196
Merged
DominikB2014 merged 4 commits intoJun 10, 2026
Merged
feat(explore): Apply Seer-suggested interval to Explore charts#117196DominikB2014 merged 4 commits into
DominikB2014 merged 4 commits into
Conversation
The assisted query agent now optionally returns an interval per visualization. Thread it through so the Explore search bar preview shows it and the chart adopts it via the interval URL param.
Contributor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 45b54bb9611d03520bde62bc1ca7f62e4e16567f. Configure here.
Hoist the per-visualization interval Seer returns to a single chart-level field and surface it in the search bar preview, then apply it to the logs chart via the interval URL param (only overriding when Seer suggests one).
Apply the chart-level interval Seer returns to the metrics tab via the interval URL param, only overriding when Seer suggests one.
45b54bb to
46ec180
Compare
getRawSeerInterval picked the first visualization with any interval, but mapSeerResponseItem only keeps visualizations with y-axes. Restrict the interval to plotted visualizations so we don't surface an interval from a dropped, axis-less entry.
narsaynorath
approved these changes
Jun 10, 2026
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.

The assisted query agent now optionally returns an
intervalper visualization. The Explore search bar preview surfaces that interval, and applying a Seer suggestion sets it on the chart via theintervalURL param. This covers the spans, logs, and metrics tabs.Interval is hoisted to a single chart-level value
Seer returns the interval nested per-visualization, but the Explore chart uses one
intervalshared across all y-axes. We hoist the first interval Seer provides to a chart-level field (getRawSeerInterval/mapSeerResponseItem), surface it in the search bar preview (QueryTokens), and pass it into the chart.useChartIntervalalready validates the URL value against the allowed options for the active time range, so an interval that isn't valid for the selected range is silently ignored rather than breaking the chart.Only overrides when Seer suggests one
When Seer doesn't return an interval, the user's current interval is left untouched.
Refs BROWSE-546