feat(desktop): add beta enhanced diagnostics#10176
Conversation
|
@cursor address merge conflict |
|
Resolved the merge conflict and pushed to Conflict:
Resolution: Kept both methods in that order. The rest of the merge (including Commit: The PR should be mergeable with |
Keep both recordBetaLogError (beta enhanced diagnostics) and recordVoiceTurnStarted (voice turn telemetry from main). Co-authored-by: David Zhang <Git-on-my-level@users.noreply.github.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d887d64703
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
|
||
| // Stable keeps the existing low-volume transient-error behavior. Beta captures | ||
| // these typed failures with the expanded diagnostic trail for release triage. | ||
| if isNonActionableTransient(error), !enhancedBetaDiagnostics { return } |
There was a problem hiding this comment.
Keep beta transient errors on the local trail
On beta builds, errors that isNonActionableTransient classifies as offline/timeouts/cancellations/sign-out races now fall through to the SentrySDK.capture(message:) path instead of returning after the typed trail entry. I checked AppDelegate.shouldDropSentryEvent, and its transient filter only examines exception events, while this path sends a message event with the NSError in context, so common transient loops can create Sentry issues every dedup window rather than just enriching later incident attachments.
Useful? React with 👍 / 👎.


Summary
Privacy and scope
Validation
xcrun swift test --package-path Desktop— 2,866 tests passed../scripts/swiftlint-wrapper.sh lintpython3 scripts/check_desktop_test_quality.pypython3 scripts/check-e2e-flow-coverage.py --base origin/main --strictgit diff --check