This repository was archived by the owner on Oct 23, 2026. It is now read-only.
Repository navigation
feat(init): measure interactive prompt wait time - #1257
Merged
Merged
Conversation
betegon
marked this pull request as ready for review
July 16, 2026 08:27
Contributor
|
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 eb105b5. Configure here.
Contributor
Codecov Results 📊✅ Patch coverage is 85.00%. Project has 5571 uncovered lines. Files with missing lines (2)
Coverage diff@@ Coverage Diff @@
## main #PR +/-##
==========================================
- Coverage 81.77% 81.27% -0.5%
==========================================
Files 424 425 +1
Lines 29453 29742 +289
Branches 19190 19317 +127
==========================================
+ Hits 24082 24171 +89
- Misses 5371 5571 +200
- Partials 2000 2012 +12Generated by Codecov Action |
betegon
force-pushed
the
feat/init-prompt-wait-telemetry
branch
3 times, most recently
from
July 16, 2026 09:27
062d9e1 to
6ad246f
Compare
betegon
force-pushed
the
feat/init-prompt-wait-telemetry
branch
from
July 16, 2026 09:39
6ad246f to
60cc143
Compare
5 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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.

Summary
Separates human think-time from actual
sentry initexecution time. Every real Ink prompt now emits aui.promptchild span, while automatic--yesand non-interactive paths remain uninstrumented.The root transaction also gets an accumulated
wizard.user_wait_msmeasurement, so active wizard time can be calculated as total duration minus user wait. Workflow prompts include the active step ID (for exampleselect-features); welcome, git, and preflight prompts are marked aspreflight.Feature selection now records
wizard.features.offeredbefore the prompt andwizard.features.selectedafter the response. This preserves the offered set even when the user cancels at the feature prompt or the workflow fails later.Test plan
pnpm exec tsc --noEmitpnpm exec biome check src/lib/telemetry.ts src/lib/init/interactive.ts src/lib/init/ui/ink-ui.ts test/lib/telemetry.test.ts test/lib/init/interactive.test.ts test/lib/init/ui/ink-ui-telemetry.test.tspnpm vitest run test/lib/initpnpm vitest run test/lib/telemetry.test.ts