Repository navigation
fix(telemetry): fingerprint coded errors by code, name the blocked-only drain - #1013
Merged
Merged
Conversation
🧙 Wizard CIRun the Wizard CI and test your changes against wizard-workbench example apps by replying with a GitHub comment using one of the following commands: Test all apps:
Test all apps in a directory:
Test an individual app:
Show more apps
Results will be posted here when complete. |
posthog
Bot
force-pushed
the
posthog-code/abort-telemetry-fingerprint
branch
from
September 23, 2026 15:23
90ae188 to
1dc653b
Compare
gewenyu99
force-pushed
the
posthog-code/abort-telemetry-fingerprint
branch
from
October 6, 2026 13:23
1dc653b to
93b394d
Compare
gewenyu99
approved these changes
Oct 6, 2026
…ly drain Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
gewenyu99
force-pushed
the
posthog-code/abort-telemetry-fingerprint
branch
from
October 6, 2026 13:46
93b394d to
50c3fa3
Compare
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.
Problem
Coded wizard errors split into one error-tracking issue per install route and release, because the stack's npx, bunx or pnpm path and the chunk hash end up in the fingerprint. "orchestrator drain ended with failed tasks" alone splits into 10 issues across 88 runs in 7 days, and it is also raised when nothing failed and tasks were only blocked.
Origin
420298eChanges
analytics.captureExceptionsets$exception_fingerprinttowizard_<code>for aWizardErrorwith a code, or for an exception captured with anerror_code. A caller's own fingerprint still wins, such as the OAuthwizard_oauth_<code>. This covers every abort and coded capture in one place.PHW_AGENT_ORCHESTRATOR_TASKS_BLOCKED("orchestrator drain ended with blocked tasks"). A failed required step keepsPHW_AGENT_ORCHESTRATOR_TASKS_FAILED. Both keeptasks_failed,tasks_blocked,failed_types,missing_oauth_scopesandqueue_state.docs/error-catalog.mdlist the new code.This supersedes the original branch, which targeted the pre-layer paths.
Test plan
analytics.test.ts: a codedWizardErrorand anerror_codecapture getwizard_<code>, and a caller's fingerprint is kept.optional-tasks.test.ts:drainFailureCodenames a failed drain and a blocked-only drain.Sources
src/tui/auth/oauth.ts:636.🤖 Generated with Claude Code