Skip to content

Tighten PR 2360 telemetry follow-ups#2407

Open
laxmanclo wants to merge 2 commits into
AgentWrapper:mainfrom
laxmanclo:codex/pr-2360-telemetry-review-fixes
Open

Tighten PR 2360 telemetry follow-ups#2407
laxmanclo wants to merge 2 commits into
AgentWrapper:mainfrom
laxmanclo:codex/pr-2360-telemetry-review-fixes

Conversation

@laxmanclo

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #2360 with the telemetry review fixes and an upstream main merge so the branch is no longer conflict-blocked.

Changes:

  • adds the missing project_add source for project-creation orchestrator spawn telemetry
  • converts notification mark-read telemetry into requested/succeeded/failed events
  • avoids counting ready-state daemon warnings like port_unconfirmed as daemon failures
  • normalizes orchestrator IDs in API error operation telemetry
  • preserves upstream main conflict changes in project/task settings and API error message handling

Validation

  • npm --prefix frontend run typecheck
  • npm --prefix frontend run test -- --run src/renderer/lib/api-client.test.ts src/renderer/lib/daemon-telemetry.test.ts src/renderer/lib/telemetry.test.ts src/shared/daemon-attach.test.ts
  • npx --prefix frontend prettier --check frontend/src/renderer/components/NewTaskDialog.tsx frontend/src/renderer/components/ProjectSettingsForm.tsx frontend/src/renderer/components/NotificationCenter.tsx frontend/src/renderer/lib/api-client.ts frontend/src/renderer/lib/api-client.test.ts frontend/src/renderer/lib/daemon-telemetry.ts frontend/src/renderer/lib/daemon-telemetry.test.ts frontend/src/renderer/lib/telemetry.ts frontend/src/renderer/lib/telemetry.test.ts frontend/src/renderer/routes/_shell.tsx

Note: tried pushing directly to Pritom14:feat/renderer-failure-cta-telemetry, but GitHub rejected the push for laxmanclo with 403.

Pritom14 and others added 2 commits July 2, 2026 23:20
Add PostHog instrumentation for app failures and user CTAs:
- daemon_failure (machine-readable code on DaemonStatus, IPC-forwarded)
- api_error central interceptor (categorized, IDs stripped)
- terminal_attach_failed (pane error + open timeout)
- CTA triads: task_create, session_kill, settings_save,
  orchestrator_spawn (board/restore_dialog), notification open/read

All events sanitized: project_id hashed, enum-only codes, raw error
messages never sent.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@laxmanclo laxmanclo changed the title [codex] Tighten PR 2360 telemetry follow-ups Tighten PR 2360 telemetry follow-ups Jul 4, 2026
@laxmanclo laxmanclo marked this pull request as ready for review July 4, 2026 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants