desktop: sentry integration (#15300)

Co-authored-by: Jay V <air@live.ca>
This commit is contained in:
Brendan Allan 2026-05-01 11:56:31 +08:00 committed by GitHub
commit 163290bcf0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
34 changed files with 291 additions and 23 deletions

9
packages/desktop/src/env.d.ts vendored Normal file
View file

@ -0,0 +1,9 @@
interface ImportMetaEnv {
readonly VITE_SENTRY_DSN?: string
readonly VITE_SENTRY_ENVIRONMENT?: string
readonly VITE_SENTRY_RELEASE?: string
}
interface ImportMeta {
readonly env: ImportMetaEnv
}

View file

@ -14,6 +14,7 @@ import {
ServerConnection,
useCommand,
} from "@opencode-ai/app"
import * as Sentry from "@sentry/solid"
import type { AsyncStorage } from "@solid-primitives/storage"
import { getCurrentWindow } from "@tauri-apps/api/window"
import { readImage } from "@tauri-apps/plugin-clipboard-manager"