feat(onboarding): Track agentic checklist refocuses - #123255
Open
evanpurkhiser wants to merge 1 commit into
Open
feat(onboarding): Track agentic checklist refocuses#123255evanpurkhiser wants to merge 1 commit into
evanpurkhiser wants to merge 1 commit into
Conversation
Record how long users leave the checklist and the current run and stage state when they return. Include the backend run ID so frontend refocuses can be correlated with stage completion events.
evanpurkhiser
requested review from
bcoe and
priscilawebdev
and removed request for
a team
August 31, 2026 21:48
Contributor
Story previewsPreview the stories changed in this PR on the Vercel deployment: Preview deployment: https://sentry-56de0403d.sentry.dev |
jaydgoss
reviewed
Aug 31, 2026
|
|
||
| function handleFocus() { | ||
| const blurredAt = blurredAtRef.current; | ||
| if (blurredAt === null) { |
Member
There was a problem hiding this comment.
Pretty sure this will end up missing the first focus event in most cases.
E.g. user blurs the window to paste the command into the terminal, at which point the agent isn't connected, so AgenticProgress isn't mounted and never records the blur time. User comes back and we miss that focus.
We'd only start capturing on a later blur that happens after the agent connects, which is probably less likely to happen.
Maybe just move the hook up to WelcomeAgentSetup?
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 agentic onboarding checklist sends users to work in the terminal while their setup progresses. Record when they return so we can understand where they re-engage and how long they spend away.
The new refocus event includes the current stage and stage status, overall run status, elapsed unfocused time in seconds, and the backend run ID for correlation with stage-completion events.
Tests cover the focus lifecycle and analytics payload.