summaryrefslogtreecommitdiffhomepage
path: root/packages/desktop/src
diff options
context:
space:
mode:
authorBrendan Allan <[email protected]>2026-05-01 11:56:31 +0800
committerGitHub <[email protected]>2026-05-01 11:56:31 +0800
commit163290bcf08eacaf8d62330b8fff92cf0701eab5 (patch)
treed4ecfafa5159dd7df9af38f1ea876ab6b148f1fb /packages/desktop/src
parentc68c33d4fea5b34bf2ca8529b4f54fdb58d07701 (diff)
downloadopencode-163290bcf08eacaf8d62330b8fff92cf0701eab5.tar.gz
opencode-163290bcf08eacaf8d62330b8fff92cf0701eab5.zip
desktop: sentry integration (#15300)
Co-authored-by: Jay V <[email protected]>
Diffstat (limited to 'packages/desktop/src')
-rw-r--r--packages/desktop/src/env.d.ts9
-rw-r--r--packages/desktop/src/index.tsx1
2 files changed, 10 insertions, 0 deletions
diff --git a/packages/desktop/src/env.d.ts b/packages/desktop/src/env.d.ts
new file mode 100644
index 000000000..aff016842
--- /dev/null
+++ b/packages/desktop/src/env.d.ts
@@ -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
+}
diff --git a/packages/desktop/src/index.tsx b/packages/desktop/src/index.tsx
index a760cb409..1a0da014d 100644
--- a/packages/desktop/src/index.tsx
+++ b/packages/desktop/src/index.tsx
@@ -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"