Repository navigation
Open
Description
getsentry/cli#1501 prototyped sentry doctor, a read-only health check for an existing Sentry install. It scans the project, asks the API, and reports what is configured, what is broken, and what to fix. It supports --send-test-event and a dry-run --fix plan, and was live-tested on Android, Empower, and iOS projects. The PR is closing with the getsentry/cli archive, and BYK's review asked for a reshaped version before a command like this can land.
cc @romtsn, author of cli#1501.
Design direction (from BYK's review of cli#1501)
- SDK knowledge lives outside the CLI. Check lists, manifests, and init/build markers should come from one central place that the SDKs control and every product can read, most likely the release registry. The CLI should download that data at runtime rather than embed it at build time.
- No hand-rolled parser. Replace the custom capture-block parser with tree-sitter or ast-grep.
- Reuse existing CLI code instead of reimplementing it:
- If DSN discovery is missing something, improve the existing DSN discovery so every command benefits.
- Use the existing
send-eventcommand for--send-test-event. - Make redaction, if needed, a generic output-layer helper.
- Drop the doctor-specific flush timeout.
- Revert the unrelated
lib/dsn/code-scanner.tschange.
- Fixes go through an agent.
--fixshould produce a report for agents, or go through thesentry initbackend, instead of keeping its own fix system. @betegon owns the init backend. - Clarify the names and concepts:
- Rename the
doctoronline mode (for example toonline) so it doesn't read like a subcommand. - Explain what tier 1 and tier 2 checks mean.
- Explain magic numbers such as
31inlive.ts.
- Rename the
- Ship it smaller. The PR was large and hard to review. Split it into reviewable pieces.
Related
- feat(init): Verify Flutter and Expo setups with doctor commands #1627, ported from feat(init): Verify Flutter and Expo setups with doctor commands cli#1363, runs
flutter doctor/npx expo doctoraftersentry init. That work is separate from this command, which audits existing installs. If both need per-SDK verification metadata, they should read it from the same SDK-owned source. - Plan SDK-owned migrations for all Sentry SDK upgrades #1630: the same move of logic into SDK-owned data for SDK upgrades.
Refs getsentry/cli#1501
via BYK.
--
Metadata
Metadata
Assignees
Labels
No labels
Activity
linear-code commentedon Oct 23, 2026
MCP-1126