Skip to content

feat(cmdk): Tag Seer chats started from the command palette - #130985

Open
sentry-junior[bot] wants to merge 1 commit into
masterfrom
feat/cmdk-seer-chat-referrer
Open

sentry-junior[bot] wants to merge 1 commit into
masterfrom
feat/cmdk-seer-chat-referrer

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

The command palette hands its query to Seer Explorer in two ways: Tab (even when there are results) and the no-results "Ask Seer: …" item. Either way the query is sent automatically as the first message. A lot of these first messages look like palette lookups (dsn, client keys, issue short IDs), and right now we can't separate them from chats started in the panel.

This PR records which handoff started the chat:

  • CommandPalette passes initialQueryReferrer: 'command_palette.tab' | 'command_palette.no_results' to openSeerExplorer.
  • The value is threaded next to initialQuery through the drawer, the sidebar context/panel and the PiP sidebar content into SeerExplorerContent's auto-submit.
  • useSeerExplorer.sendMessage takes it as an optional trailing argument. It sends referrer on the POST only when the message starts a new run, and adds entry_point to seer.explorer.session_created.

The backend side (accepting referrer and storing it on SeerRun.referrer) is a separate PR. DRF ignores unknown fields, so either PR can land first. Until the backend is deployed, the analytics entry_point still works on its own.

Existing sendMessage assertions were updated for the new trailing argument. New tests cover both palette handoffs, the sidebar pass-through, and "referrer on new runs only".

via @natemoo-re.

--

View Session [Sentry]

Pass where a forwarded query came from (Tab or the no-results Ask Seer item) through to the explorer-chat POST that starts the run, and add it to the session_created analytics event as entry_point. Continued runs never send it.

Co-Authored-By: Nate Moore <7118177+natemoo-re@users.noreply.github.com>
Co-Authored-By: Matt Duncan <matt.duncan@sentry.io>
@sentry-junior
sentry-junior Bot requested review from a team as code owners November 12, 2026 20:32
@sentry-junior
sentry-junior Bot requested a review from a team as a code owner November 12, 2026 20:32
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 12, 2026

This branch was successfully deployed

1 active deployment
Preview — 5a20781c Deployed Nov 12, 2026 by vercel[bot]
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.

1 participant