Skip to content

feat(onboarding): Track agentic checklist refocuses - #123255

Open
evanpurkhiser wants to merge 1 commit into
masterfrom
git/feat-onboarding-track-agentic-checklist-refocuses
Open

feat(onboarding): Track agentic checklist refocuses#123255
evanpurkhiser wants to merge 1 commit into
masterfrom
git/feat-onboarding-track-agentic-checklist-refocuses

Conversation

@evanpurkhiser

@evanpurkhiser evanpurkhiser commented Aug 31, 2026

Copy link
Copy Markdown
Member

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.

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
evanpurkhiser requested review from a team as code owners August 31, 2026 21:48
@evanpurkhiser
evanpurkhiser requested review from bcoe and priscilawebdev and removed request for a team August 31, 2026 21:48
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Aug 31, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Story previews

Preview the stories changed in this PR on the Vercel deployment:

Preview deployment: https://sentry-56de0403d.sentry.dev


function handleFocus() {
const blurredAt = blurredAtRef.current;
if (blurredAt === null) {

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.

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?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yeah good point

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