Repository navigation
Report errors users hit to Sentry from the app and server - #1455
Merged
Merged
Conversation
…h every enabled feature flag - The Codevisor server now reports uncaught exceptions, unhandled rejections, unexpected API failures, and harness turn failures to Sentry through a small dependency-free envelope sender. Messages are scrubbed of paths, emails, the account name, and credentials; reports are rate limited and grouped. - The macOS app reports every error banner and every message that fails to deliver, with a scrubbed description, error type, and stack trace. The privacy filter keeps scrubbed messages instead of dropping them. - "Share usage analytics" and "Send crash and error reports" sync across the account through the settings namespace, so servers can honor the choice. An opt-out made before syncing outranks earlier opt-ins. - PostHog events and Sentry reports carry the update channel and every enabled feature flag (feature_flags plus flag_<id>), read from the synced flags so new flags need no telemetry code. - Privacy policy and the Settings footer describe the new behavior. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Why
New users arrive tomorrow, and we can't see when Codevisor fails for them. Most failures happen in the server (turns, worktrees, git, first-run answers), which had no error reporting. The app's Sentry filter also dropped every error message.
What changes
@sentry/nodewould add about 40 OpenTelemetry packages to the runtime. Reports are rate limited (each distinct failure once per 10 minutes, at most 20 per window).settingsnamespace, so servers honor them. An opt-out made before syncing outranks earlier opt-ins. Servers that never received a choice report nothing.update_channel,feature_flags, andflag_<id>, read from the synced flags. New flags need no telemetry code, and internal traffic can be filtered withflag_developerMode.Needs sign-off
apps/www/src/routes/privacy.tsx: the policy still said analytics and crash reports are off by default, which hasn't been true since #1419. It also said exception messages are removed. Both sections are updated. The effective date (Oct 30) is unchanged; bump it if you want.Verified
false, thentrue, with real timestamps). The new footer text shows.e39b9f72…), with the path in its message scrubbed to<path>.🤖 Generated with Claude Code