fix: capture IPC exceptions in PostHog (#3022)
## Summary
- route main-process `$exception` telemetry through
`posthog.captureException()` in the renderer
- normalize exception fields in IPC telemetry payloads and strip them
from extra context before capture
- add focused unit coverage for exception reconstruction and context
extraction
## Test plan
- npm run fmt && npm run lint:fix && npm run ts
- npm test
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- devin-review-badge-begin -->
---
<a href="https://app.devin.ai/review/dyad-sh/dyad/pull/3022"
target="_blank">
<picture>
<source media="(prefers-color-scheme: dark)"
srcset="https://static.devin.ai/assets/gh-open-in-devin-review-dark.svg?v=1">
<img
src="https://static.devin.ai/assets/gh-open-in-devin-review-light.svg?v=1"
alt="Open with Devin">
</picture>
</a>
<!-- devin-review-badge-end -->
正在显示
| ... | @@ -107,7 +107,7 @@ | ... | @@ -107,7 +107,7 @@ |
| "lucide-react": "^0.487.0", | "lucide-react": "^0.487.0", | ||
| "monaco-editor": "^0.52.2", | "monaco-editor": "^0.52.2", | ||
| "perfect-freehand": "^1.2.2", | "perfect-freehand": "^1.2.2", | ||
| "posthog-js": "^1.236.3", | "posthog-js": "^1.265.1", | ||
| "react": "^19.0.0", | "react": "^19.0.0", | ||
| "react-dom": "^19.0.0", | "react-dom": "^19.0.0", | ||
| "react-i18next": "^16.5.4", | "react-i18next": "^16.5.4", | ||
| ... | ... |
src/__tests__/telemetry.test.ts
0 → 100644
src/lib/posthogTelemetry.ts
0 → 100644
请
注册
或者
登录
后发表评论