Skip to content

feat(mobile): add Sentry integration#94

Merged
gricha merged 4 commits intomainfrom
clawd/sentry-mobile
Jan 11, 2026
Merged

feat(mobile): add Sentry integration#94
gricha merged 4 commits intomainfrom
clawd/sentry-mobile

Conversation

@gricha
Copy link
Copy Markdown
Owner

@gricha gricha commented Jan 11, 2026

Adds Sentry error tracking to the mobile app. Set EXPO_PUBLIC_SENTRY_DSN to enable.

🤖 Generated with Claude Code

gricha and others added 2 commits January 11, 2026 18:19
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Use Sentry.withScope() in captureError to isolate error context
- Extract configureClient() to reduce duplication in loadServerConfig/saveServerConfig

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Comment thread mobile/src/lib/api.ts Outdated
Comment on lines +136 to +140
function configureClient(host: string, port: number): void {
baseUrl = `http://${host}:${port}`
client = createClient()
setUserContext(baseUrl)
}

This comment was marked as outdated.

Add isInitialized flag to prevent crashes when EXPO_PUBLIC_SENTRY_DSN
is not set. setUserContext and captureError now safely no-op when
Sentry hasn't been initialized.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Comment thread mobile/App.tsx
)
}

export default Sentry.wrap(App)

This comment was marked as outdated.

Resolve conflicts by keeping demo mode logic from main and adding
setUserContext() calls for Sentry integration.
@gricha gricha merged commit 6191fb9 into main Jan 11, 2026
8 of 9 checks passed
@gricha gricha deleted the clawd/sentry-mobile branch January 11, 2026 19:22
@gricha gricha restored the clawd/sentry-mobile branch January 11, 2026 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant