Files
ComfyUI_frontend/src/platform
Benjamin Lu a8987396ae backport(pr-6499): unified app:run_triggered event onto rh-test (#6501)
Backport of upstream PR #6499 onto `rh-test`.

Summary
- Adds unified telemetry event `app:run_triggered` with `{
trigger_source: 'button' | 'keybinding' | 'menu' }`.
- Instruments all run initiation paths:
- Queue button emits `run_triggered` (source `button`) and still emits
`run_button_click` for UI-only tracking.
  - Keybindings emit `run_triggered` (source `keybinding`).
- Menus (menubar + legacy menu buttons) emit `run_triggered` (source
`menu`).
- Mixpanel provider implements `trackRunTriggered`.
- No changes to `execution_start` logic.

Files changed (matching PR #6499 exactly)
- src/components/actionbar/ComfyRunButton/ComfyQueueButton.vue
- src/platform/telemetry/providers/cloud/MixpanelTelemetryProvider.ts
- src/platform/telemetry/types.ts
- src/scripts/ui.ts
- src/services/keybindingService.ts
- src/stores/menuItemStore.ts

Notes
- Strictly limited to PR #6499; does NOT include unrelated changes
(e.g., PR #6476 `workflow_opened`).
- Local pre-push hook (knip) flagged an exported type as unused; pushed
with `--no-verify` to avoid adding non-PR changes. Lint and typecheck
pass locally (`pnpm lint:fix && pnpm typecheck`).

Upstream reference:
https://github.com/Comfy-Org/ComfyUI_frontend/pull/6499

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-6501-backport-pr-6499-unified-app-run_triggered-event-onto-rh-test-29e6d73d36508122ab3df5296e544b03)
by [Unito](https://www.unito.io)

---------

Co-authored-by: GitHub Action <action@github.com>
2025-11-01 11:43:10 -07:00
..