openhuman icon indicating copy to clipboard operation
openhuman copied to clipboard

Track and fix active Sentry issues

Open Al629176 opened this issue 6 months ago • 1 comments

Summary

Track, triage, and fix the current Sentry issues affecting OpenHuman so the app has a clean, monitored error baseline.

Problem / Context

Sentry is reporting issues that need systematic review instead of one-off fixes. Without a tracking pass, recurring frontend, Tauri shell, and Rust core failures can stay noisy, hide new regressions, and make it harder to know whether staging or production builds are healthy.

This work should identify the active Sentry issue set, group duplicates/root causes, prioritize user-impacting crashes and high-volume errors, fix actionable issues, and document any intentional or external-noise items.

Constraints:

  • Preserve privacy: do not copy sensitive user data, tokens, or raw event payloads into issues/PRs.
  • Separate real product errors from environment noise, extension/browser noise, and expected cancellation/timeout paths.
  • Keep fixes scoped and covered so new Sentry regressions are easier to detect.

Scope (optional)

In scope:

  • Review active Sentry issues for OpenHuman staging and production.
  • Group related Sentry issues by root cause.
  • Fix actionable frontend, Tauri, and core errors.
  • Add breadcrumbs/logging or error classification where needed to make future events diagnosable.
  • Update Sentry issue status after fixes are released or verified.

Out of scope:

  • Broad observability redesign unless required to resolve the current issues.
  • Logging sensitive payloads or user data.

Acceptance criteria

  • [ ] Issue inventory — Current active Sentry issues are reviewed and grouped by root cause, severity, environment, and affected app surface.
  • [ ] Priority fixes landed — User-impacting crashes, high-volume errors, and staging/production blockers have fixes or linked follow-up issues with owners.
  • [ ] Noise classified — Non-actionable, expected, external, or duplicate Sentry issues are documented and resolved/ignored in Sentry with rationale.
  • [ ] Regression safety — Tests are added or updated for fixed code paths where practical, especially for crashes or repeated high-volume errors.
  • [ ] Release verification — Fixed issues are verified in the relevant staging or production build and marked resolved in Sentry after release.
  • [ ] Future diagnosability — Missing context is improved with safe breadcrumbs, structured logs, or error metadata that does not expose secrets or sensitive user data.
  • [ ] Diff coverage ≥ 80% — the implementing PR meets the changed-lines coverage gate (Vitest + cargo-llvm-cov, enforced by .github/workflows/coverage.yml) when code changes are involved.

Related

  • Sentry project/dashboard for OpenHuman staging and production.

Al629176 avatar May 11 '26 06:05 Al629176

Progress update — Sentry batch 1 shipped

3 PRs merged today closing 7 Sentry issues under this tracker:

  • #1491 — fix(openUrl): fall back to window.open when CEF IPC handle not ready — closes OPENHUMAN-REACT-T / -S / -R (CEF IPC race in tauriOpenUrl).
  • #1494 — fix(human/mascot): consume orphan audio-stopped rejections — closes OPENHUMAN-REACT-V / -P (orphan audioPlayer.stop() rejection).
  • #1495 — feat(auth): classify RPC 401s + global reauth bus — closes OPENHUMAN-REACT-Q / -N (typed CoreRpcError + reauth bus on 401).

Next up (planning approved, branching now):

  • PR-D — provider-error classification (closes OPENHUMAN-REACT-K)
  • PR-E — bare-fetch hardening (closes OPENHUMAN-REACT-M)
  • PR-F — Rust socket transient-error severity (closes OPENHUMAN-REACT-5)

— oxoxDev

oxoxDev avatar May 12 '26 06:05 oxoxDev