From c46109c50cddbf4f7842af8839f263536f15dd32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E5=AE=87=E7=90=A8?= Date: Fri, 31 Jul 2026 23:28:08 +0800 Subject: [PATCH 1/4] feat(spx-gui): integrate Sentry monitoring for SPX runtime panics Add Sentry integration to ProjectRunner to capture and report runtime errors from tools/ispx with structured context including file, line, function, and column information. Key features: - Parse panic JSON logs from tools/ispx console output - Report runtime panics to Sentry with SpxRuntimePanic exception type - Add structured context (file, line, column, function) to events - Instrument lifecycle spans for engine init, build, start, and stop - Deduplicate errors within 5-second window to prevent duplicate reports - Graceful degradation when Sentry is unavailable - Async reporting to avoid interfering with WASM panic unwinding Closes #2419 Co-Authored-By: Claude Sonnet 5 --- .../project/runner/ProjectRunner.vue | 122 +++++++++++++++++- 1 file changed, 115 insertions(+), 7 deletions(-) diff --git a/spx-gui/src/components/project/runner/ProjectRunner.vue b/spx-gui/src/components/project/runner/ProjectRunner.vue index d3c5497742..a15b4b0469 100644 --- a/spx-gui/src/components/project/runner/ProjectRunner.vue +++ b/spx-gui/src/components/project/runner/ProjectRunner.vue @@ -145,6 +145,7 @@ type State =