(message: string, stderrTail: string)
| 135 | * a running window" case, which is otherwise invisible. |
| 136 | */ |
| 137 | export const reportSidecarCrash = (message: string, stderrTail: string) => { |
| 138 | // No-op when Sentry isn't initialized — captures are dropped client-side. |
| 139 | Sentry.captureMessage(message, { |
| 140 | level: "error", |
| 141 | extra: { stderrTail }, |
| 142 | }); |
| 143 | }; |
| 144 | |
| 145 | // --------------------------------------------------------------------------- |
| 146 | // Diagnostics export — one zip in ~/Downloads a user can attach to a report. |