Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.
TypeScript adeagent-ideai-agentsautomationbotclaude-codecodexghosttygrok-bothermes-agentmobile-appmuseopenclawopencodeorchestrationpiruntimeterminalworktreesyc-backed
feat(telemetry): drop the plugin_uninstalled event; install counts are cumulative (#36214)
Neild6caa43719c9
diff --git a/docs/site/content/docs/telemetry.mdx b/docs/site/content/docs/telemetry.mdxindex cf8f8b86233..9589173fb32 100644--- a/docs/site/content/docs/telemetry.mdx+++ b/docs/site/content/docs/telemetry.mdx@@ -28,7 +28,7 @@ The categories of behavior we observe:- **Tab actions** — for a consistent 10% sample of anonymous installs, the first time per app session you choose “Close Tabs To The Left” or “Close Tabs To The Right,” limited to two events per session across all windows. For that first request in each direction, we record the selected tab's type, whether it is in a workspace or floating panel, how many unpinned tabs are eligible to close, and the sampling rate. The app-open event includes sample membership so we can measure the share of sampled sessions that use each command. Repeat requests are not recorded, so these events do not measure click frequency, overall usage by tab type or panel, or total tabs closed. This counts the request, including when you cancel a save prompt; never tab titles, file paths, or workspace identifiers.- **Privacy controls** — when you opt in or out of telemetry, so we can tell from aggregate data whether our consent UI is working.- **SSH remote runtime** — once per SSH host and outcome per app session, which runtime Orca used to run on that host and why, or that its runtime check could not be confirmed or failed: coarse host facts (operating system, CPU architecture, C library family and glibc minor version, and the host's Node.js major version when Orca runs on it), the category of any refusal (including security software blocking the runtime on Windows), whether a runtime was uploaded, and a coarse duration bucket. Never the hostname, user name, paths, or raw error text.-- **Plugins** — when you install, update or remove a plugin from Orca's official or community catalog. We record the plugin's public name (`publisher.id`), its version, which of those two catalogs it came from, whether it was a first install, an update or a reinstall, and whether you started it from the catalog, from an install link, or through automatic updates. These events power the public install counts on the plugin directory, which therefore count only users who share usage data. Plugins from a catalog you added yourself, from a Git URL, or from a local or development folder are never reported.+- **Plugins** — when you install or update a plugin from Orca's official or community catalog. We record the plugin's public name (`publisher.id`), its version, which of those two catalogs it came from, whether it was a first install, an update or a reinstall, and whether you started it from the catalog, from an install link, or through automatic updates. These events power the public install counts on the plugin directory, which therefore count only users who share usage data. Plugins from a catalog you added yourself, from a Git URL, or from a local or development folder are never reported.Fields include fixed enum values, version strings, numeric counts and revisions, and random local IDs. Conversation IDs allow repeated token summaries for the same conversation to be associated; they are pseudonymous. Plugin names are the public identifiers their catalog lists. No free-form strings from any UI input ever leave your machine.diff --git a/src/main/ipc/plugins.ts b/src/main/ipc/plugins.tsindex 7558134f101..834526a7899 100644--- a/src/main/ipc/plugins.ts+++ b/src/main/ipc/plugins.ts@@ -23,7 +23,6 @@ import {isAllowedPluginGitUrl,type PluginLockfile} from '../../shared/plugins/installation/plugin-install-lockfile'-import { trackPluginUninstalled } from '../telemetry/plugin-install-telemetry'import {registerPluginMarketplaceHandlers,type PluginMarketplaceHandlerServices@@ -259,7 +258,6 @@ export function registerPluginHandlers(pluginKey: parsed.pluginKey}))- trackPluginUninstalled(parsed.pluginKey, lock.plugins[parsed.pluginKey]?.source)const settings = store.getSettings()const consents = { ...settings.pluginConsents }delete consents[parsed.pluginKey]diff --git a/src/main/ipc/telemetry.ts b/src/main/ipc/telemetry.tsindex d5f46c036b4..863555b4c14 100644--- a/src/main/ipc/telemetry.ts+++ b/src/main/ipc/telemetry.ts@@ -30,7 +30,6 @@ const MAIN_OWNED_TELEMETRY_EVENTS = new Set<EventName>(['star_nag_outcome','feature_interaction_usage_bucket_reached','plugin_installed',- 'plugin_uninstalled','ssh_remote_runtime_resolved','ssh_host_server_decided','ssh_host_server_conversion',diff --git a/src/main/telemetry/plugin-install-telemetry.test.ts b/src/main/telemetry/plugin-install-telemetry.test.tsindex 027ed9bfd57..ed2871575ad 100644--- a/src/main/telemetry/plugin-install-telemetry.test.ts+++ b/src/main/telemetry/plugin-install-telemetry.test.ts@@ -3,19 +3,12 @@ import { eventSchemas } from '../../shared/telemetry-events'import {pluginInstallKind,pluginTelemetryCatalog,- trackPluginInstalled,- trackPluginUninstalled+ trackPluginInstalled} from './plugin-install-telemetry'const telemetry = vi.hoisted(() => ({ track: vi.fn() }))vi.mock('./client', () => telemetry)-const marketplaceSource = (url: string) => ({- kind: 'marketplace' as const,- marketplace: { url, ref: 'main', resolvedCommit: 'f'.repeat(40) },- plugin: { url: 'https://github.com/acme/notes.git', ref: 'main' }-})-beforeEach(() => {telemetry.track.mockReset()})@@ -50,32 +43,20 @@ describe('plugin install telemetry', () => {expect(telemetry.track).not.toHaveBeenCalled()})- it('reports an uninstall only for a public-catalog plugin', () => {- trackPluginUninstalled('acme.notes', { kind: 'local-path', path: '/Users/me/notes' })- trackPluginUninstalled('acme.notes', marketplaceSource('https://github.com/acme/private.git'))- trackPluginUninstalled('acme.notes', undefined)- expect(telemetry.track).not.toHaveBeenCalled()-- trackPluginUninstalled(- 'acme.notes',- marketplaceSource('https://github.com/stablyai/orca-community-plugins.git')- )- expect(telemetry.track).toHaveBeenCalledWith('plugin_uninstalled', {- plugin_key: 'acme.notes',- catalog: 'community'- })- })-it('never lets a telemetry failure escape', () => {telemetry.track.mockImplementation(() => {throw new Error('boom')})expect(() =>- trackPluginUninstalled(- 'acme.notes',- marketplaceSource('https://github.com/stablyai/orca-plugins.git')- )+ trackPluginInstalled({+ marketplaceUrl: 'https://github.com/stablyai/orca-plugins.git',+ plugin_key: 'acme.notes',+ version: '1.0.0',+ kind: 'install',+ trigger: 'catalog'+ })).not.toThrow()+ expect(telemetry.track).toHaveBeenCalledOnce()})it('schemas reject anything but a plugin key and enums', () => {@@ -96,9 +77,5 @@ describe('plugin install telemetry', () => {]) {expect(eventSchemas.plugin_installed.safeParse(bad).success).toBe(false)}- expect(- eventSchemas.plugin_uninstalled.safeParse({ plugin_key: 'acme.notes', catalog: 'community' })- .success- ).toBe(true)})})diff --git a/src/main/telemetry/plugin-install-telemetry.ts b/src/main/telemetry/plugin-install-telemetry.tsindex 5cfd6728b3d..e0555a6b78f 100644--- a/src/main/telemetry/plugin-install-telemetry.ts+++ b/src/main/telemetry/plugin-install-telemetry.ts@@ -1,13 +1,12 @@/**- * Install and uninstall rows for plugins from Orca's public catalogs, which feed the directory's- * install counts. Anything else (private catalogs, git, local and dev installs) never reports.+ * Install rows for plugins from Orca's public catalogs, which feed the directory's install counts.+ * Anything else (private catalogs, git, local and dev installs) never reports.*/import { COMMUNITY_MARKETPLACE_GIT_SOURCE } from '../../shared/plugins/catalog/plugin-install-link'import {isOfficialMarketplaceGitSource,isSameGitRepository} from '../../shared/plugins/catalog/plugin-marketplace'-import type { PluginInstallSource } from '../../shared/plugins/installation/plugin-install-lockfile'import type { EventProps } from '../../shared/telemetry-events'import { track } from './client'@@ -45,18 +44,6 @@ export function trackPluginInstalled(}}-/** Reports only when the removed plugin came from a public catalog. */-export function trackPluginUninstalled(- pluginKey: string,- source: PluginInstallSource | undefined-): void {- const catalog =- source?.kind === 'marketplace' ? pluginTelemetryCatalog(source.marketplace.url) : null- if (catalog) {- safeTrack(() => track('plugin_uninstalled', { plugin_key: pluginKey, catalog }))- }-}-function safeTrack(emit: () => void): void {try {// track() applies the consent gate and validates against the strict schema.diff --git a/src/shared/telemetry-event-registry.ts b/src/shared/telemetry-event-registry.tsindex a9de0c352ca..1c273b96a8f 100644--- a/src/shared/telemetry-event-registry.ts+++ b/src/shared/telemetry-event-registry.ts@@ -103,7 +103,7 @@ import {setupScriptPromptShownSchema,workspaceCreateFailedSchema} from './telemetry-repository-event-schemas'-import { pluginInstalledSchema, pluginUninstalledSchema } from './telemetry-plugin-event-schemas'+import { pluginInstalledSchema } from './telemetry-plugin-event-schemas'import { sshRemoteRuntimeResolvedSchema } from './telemetry-ssh-runtime-event-schemas'import { wslUsageSnapshotSchema } from './telemetry-wsl-usage-event-schemas'import {@@ -237,6 +237,5 @@ export const eventSchemas = {wsl_usage_snapshot: wslUsageSnapshotSchema,- plugin_installed: pluginInstalledSchema,- plugin_uninstalled: pluginUninstalledSchema+ plugin_installed: pluginInstalledSchema} as constdiff --git a/src/shared/telemetry-plugin-event-schemas.ts b/src/shared/telemetry-plugin-event-schemas.tsindex a18a296dbb5..03b2a4b6361 100644--- a/src/shared/telemetry-plugin-event-schemas.ts+++ b/src/shared/telemetry-plugin-event-schemas.ts@@ -24,10 +24,3 @@ export const pluginInstalledSchema = ztrigger: z.enum(PLUGIN_INSTALL_TRIGGERS)}).strict()--export const pluginUninstalledSchema = z- .object({- plugin_key: pluginKeySchema,- catalog: z.enum(PLUGIN_TELEMETRY_CATALOGS)- })- .strict()