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