feat(telemetry): add events for skills, SSH, GitHub issues, and browser preview#826
Merged
arnestrickmann merged 3 commits intomainfrom Feb 11, 2026
Merged
feat(telemetry): add events for skills, SSH, GitHub issues, and browser preview#826arnestrickmann merged 3 commits intomainfrom
arnestrickmann merged 3 commits intomainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Greptile OverviewGreptile SummaryThis PR extends the telemetry surface area by:
The changes fit the existing architecture where renderer code calls One functional issue: Confidence Score: 4/5
|
| Filename | Overview |
|---|---|
| src/main/ipc/telemetryIpc.ts | Allowlisted new renderer telemetry events (skills, SSH remote projects, GitHub issues, browser preview, task_created_with_issue). |
| src/main/telemetry.ts | Extended TelemetryEvent union with new event names; no behavior changes. |
| src/renderer/components/GitHubIssueSelector.tsx | Added telemetry on issue list load and issue selection via dynamic import; no functional UI changes. |
| src/renderer/components/skills/SkillsView.tsx | Added telemetry for custom skill creation success. |
| src/renderer/components/skills/useSkills.ts | Added telemetry for install/uninstall/detail view; adjusted install callback deps. |
| src/renderer/components/ssh/AddRemoteProjectModal.tsx | Added telemetry for remote project modal open and connection test result. |
| src/renderer/components/titlebar/BrowserToggleButton.tsx | Added browser_preview_opened telemetry on click, but it currently fires even when the click closes the preview (toggle behavior). |
| src/renderer/hooks/useProjectManagement.tsx | Added skills_view_opened telemetry when navigating to the Skills view. |
| src/renderer/lib/taskCreationService.ts | Added task_created_with_issue telemetry for GitHub/Linear/Jira-linked tasks in single and multi-agent flows. |
Sequence Diagram
sequenceDiagram
participant UI as Renderer UI
participant TC as telemetryClient (renderer)
participant IPC as telemetryIpc (main)
participant PH as PostHog capture
Note over UI: Skills / SSH / GitHub / Browser / Task creation
UI->>TC: captureTelemetry(event, props)
TC->>IPC: ipcRenderer.invoke('telemetry:capture', {event, properties})
IPC->>IPC: validate event in RENDERER_ALLOWED_EVENTS
alt event == '$exception'
IPC->>PH: captureException(error, props)
else allowed
IPC->>PH: capture(event, sanitizedProps)
else not allowed
IPC-->>TC: { success:false, error:'event_not_allowed' }
end
Note over UI: Examples in this PR
UI->>TC: skill_created / skill_installed / skill_uninstalled
UI->>TC: remote_project_modal_opened / remote_project_connection_tested
UI->>TC: github_issues_searched / github_issue_selected
UI->>TC: task_created_with_issue
UI->>TC: browser_preview_opened
Address Greptile review: guard telemetry event behind !browser.isOpen check so toggling the preview closed doesn't fire an "opened" event. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
skill_installed,skill_uninstalled,skill_created,skill_detail_viewed,skills_view_opened)remote_project_modal_opened,remote_project_connection_tested,remote_project_created)github_issues_searched,github_issue_selected)task_created_with_issueevent for tracking tasks linked to GitHub, Linear, or Jira issuesbrowser_preview_openedevent to browser toggle buttonChanges
src/main/telemetry.ts: Register new event names in theTelemetryEventunion typesrc/main/ipc/telemetryIpc.ts: Allowlist new events inRENDERER_ALLOWED_EVENTSsrc/renderer/components/skills/useSkills.ts: Fire telemetry on skill install, uninstall, and detail view; fixcatalog?.skillsmissing fromuseCallbackdepssrc/renderer/components/skills/SkillsView.tsx: Fireskill_createdon successful custom skill creationsrc/renderer/components/ssh/AddRemoteProjectModal.tsx: Fire telemetry on modal open and connection testsrc/renderer/components/GitHubIssueSelector.tsx: Fire telemetry on issue search and selectionsrc/renderer/components/titlebar/BrowserToggleButton.tsx: Firebrowser_preview_openedon clicksrc/renderer/hooks/useProjectManagement.tsx: Fireskills_view_openedwhen navigating to skillssrc/renderer/lib/taskCreationService.ts: Firetask_created_with_issuefor linked issues in both single and multi-agent task flows