You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds new EVENT_TYPE entries (AI = "ai", TERMINAL = "term") and wires
metadata-only metrics across the editor's main feature surfaces. All
labels are stable enums; no user content (filenames, prompt text,
shell input/output, attached file paths) is recorded.
Coverage:
- src/view/CentralControlBar.js
Click metrics for every CCB icon — UI/ccb/{undo,redo,save,
designOn,designOff,sidebar,file}.
- src/view/SidebarTabs.js
Click metric for the sidebar nav tab bar — UI/navTab/<tabId>
(e.g. "ai", "files"). Programmatic setActiveTab calls are NOT
metric'd; only user clicks.
- src/extensionsIntegrated/Phoenix-live-preview/main.js
lp-edit/modeBtn/{toEdit,toPrev} on the inline edit-mode toggle
button (previewModeLivePreviewButton). The companion
designModeBtn already had a metric.
- src/extensionsIntegrated/Terminal/main.js
Terminal feature usage:
term/panel/open — panel becomes visible
term/new/<shell> — new tab created, shell family bucketed (bash,
zsh, fish, pwsh, cmd, ...)
term/tabs/<bucket> — concurrent tab count after creation, bucketed
one / LTE4 / LTE9 / GT10
term/pick/<shell> — user picked a default shell in the dropdown
term/close/user — terminal closed via UI
term/exit/{ok,err} — shell process exited on its own (status
bucketed)
- src-node/claude-code-agent.js
Per-turn token usage console-logs (each SDKAssistantMessage's
message.usage) and one rolled-up usage payload per query (the
terminal SDKResultMessage). The aggregate is forwarded to the
browser via a new aiUsage peer event with usage / modelUsage /
total_cost_usd / num_turns / duration_ms / duration_api_ms.
- src/utils/Metrics.js
EVENT_TYPE.AI and EVENT_TYPE.TERMINAL added so feature areas have
their own dimensions instead of overloading UI / PRO.
0 commit comments