Repository navigation
fix(web-inspector): tell the automatic HUD intro apart from a user open - #7381
Merged
Merged
Conversation
The launcher HUD plays a 3.4-second preview after every mount. #7376 counts that preview as hud_viewed, hud_notification_viewed, hud_feature_toggle_viewed and hud_hide_viewed, the same as a hover or focus open. Every page load and every dev-server remount therefore adds views with no user action, and the HUD click-through rates read low. Every HUD event now carries `trigger: "intro" | "user"`. The value is set when a presentation starts. A user who takes over a playing intro keeps "intro", because that presentation was not requested. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configurationConfiguration used: Repository: CopilotKit/CopilotKit/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (3)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
@copilotkit/a2ui-renderer
@copilotkit/agentcore-runner
@copilotkit/angular
@copilotkit/channels
@copilotkit/channels-core
@copilotkit/channels-discord
@copilotkit/channels-intelligence
@copilotkit/channels-slack
@copilotkit/channels-teams
@copilotkit/channels-telegram
@copilotkit/channels-ui
@copilotkit/channels-whatsapp
@copilotkit/core
@copilotkit/intelligence-langgraph
@copilotkit/intelligence-mastra
@copilotkit/mcp-apps-renderer
@copilotkit/react-core
@copilotkit/react-native
@copilotkit/react-textarea
@copilotkit/react-ui
@copilotkit/runtime
@copilotkit/runtime-client-gql
@copilotkit/sdk-js
@copilotkit/shared
@copilotkit/sqlite-runner
@copilotkit/voice
@copilotkit/vue
@copilotkit/web-components
@copilotkit/web-inspector
commit: |
Contributor
|
Size Change: +232 B (+0.01%) Total Size: 1.74 MB 📦 View Changed
ℹ️ View Unchanged
|
BenTaylorDev
marked this pull request as ready for review
September 23, 2026 15:39
BenTaylorDev
requested review from
jpr5,
marthakelly,
mme,
ranst91 and
tylerslaton
as code owners
September 23, 2026 15:39
AlemTuzlak
added a commit
that referenced
this pull request
Sep 23, 2026
Port #7381 into the launcher controller: every HUD event carries the trigger that opened the presentation. Move the pure Learning bucket helpers out of the privacy layer to keep it under the size ceiling.
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.
Summary
Every launcher HUD event from #7376 now carries
trigger: "intro" | "user".Why
The HUD plays a 3.4-second preview 500 ms after every mount (
scheduleLauncherHudIntro, called fromconnectedCallbackand when a one-day dismissal expires). #7376 records that preview ashud_viewed,hud_notification_viewed,hud_feature_toggle_viewedandhud_hide_viewed, the same as a hover or focus open. So every page load and every dev-server remount adds views that had no user action. The HUD click-through rates then read too low, and no property lets you filter the preview out later.#7376 is not released yet (the last release is v1.73.3), so no data in PostHog has the old shape.
How
launcherHudTriggeris set when a presentation starts:"intro"inscheduleLauncherHudIntro,"user"inopenLauncherHud.openLauncherHudreturns early, so the value stays"intro". This is intentional: that presentation was not requested. TheHudTriggerJSDoc records the rule.Sink allowlist
No sink change is needed. I checked
oss-path-to-productiononmain:telemetry-sink-ingestallows events by prefix, andoss.inspector.is inALLOWED_EVENT_PREFIXES.telemetry-sink-fanoutsends every accepted event to PostHog exceptPOSTHOG_EXCLUDED_PREFIXES(oss.runtime.agent_execution_,eip.cli_identity_linked,eip.channel.).Testing
web-inspector.spec.ts:trigger: "intro", and a toggle click after a hover takeover still sends"intro"."user".trigger: "user"on every view and click event."user": both new tests fail (2 failed, 726 passed).openLauncherHudsets the trigger before its early return: the takeover test fails (1 failed, 727 passed).nx run @copilotkit/web-inspector:test --skip-nx-cachenx run @copilotkit/web-inspector:check-types --skip-nx-cacheoxfmt --checkis clean.oxlintfinds no new warnings in the changed lines.Not in this PR
These are smaller findings from the same review:
tsat flush time, not at the time the user saw it.hud_hide_viewedalways equalshud_viewed, because the hide button always renders.🤖 Generated with Claude Code
Summary by CodeRabbit