Repository navigation
Description
Phase 2 of the Scalable Approach for Adding New IDE Session Types RFC. Phase 1 (#27410) stores per-app session counts internally but keeps all external surfaces unchanged; this phase exposes the dynamic counts so admins can see Cursor vs VS Code vs anything else.
Externally visible surfaces publish the additive per-app shape alongside deprecated legacy outputs. The completion RFC leaves removal timing and policy TBD; one compatibility release does not automatically authorize removal:
codersdk.SessionCountDeploymentStats: expose theappsmap with normalized app names, counts, family, display name, and icon; keep the existingvscode/jetbrains/ssh/reconnecting_ptyfields populated by family until removal is separately approved- Prometheus: one session count gauge labeled by both
app_nameandfamilyalongside the fourcoderd_agentstats_session_count_*gauges, preserving per-app visibility and supporting family aggregation; the old gauges remain deprecated and keep publishing until the removal policy/release is separately approved - Telemetry snapshot: add a map field next to the legacy
SessionCount*fields; removal of the legacy fields must be coordinated with the telemetry ingestion owners - Deployment banner (
DeploymentBannerView.tsx): render the map dynamically instead of the four hardcoded entries - Extend the existing app registry in
codersdk/appname.go(appNameFamilies,NormalizeAppName, andAppNameFamily) with display-name metadata (e.g.vscode→ "VS Code") so the UI does not hardcode labels; unrecognized names fall back to the normalized raw identifier. This registry supersedes the earliercoderd/idemetadatadesign; do not introduce a separate registry.
Done when
-
appsmap in the deployment stats API, legacy fields still populated by family - Labeled gauge exported; legacy gauges deprecated in docs, with removal timing left TBD until approved
- Telemetry map field lands with ingestion sign-off
- Deployment banner shows a new app name (e.g.
cursor) without further frontend changes - Follow-up CLIENT-980 tracks eventual legacy removal under a separately agreed policy
Depends on #27410. The count queries already return per-app session_counts JSONB and fold into families in Go (#29109), so this is API/metrics/UI projection work with no SQL changes.
🤖 Created by Coder Agents on behalf of @EhabY.
Description updated by Coder Agents on behalf of @EhabY: corrected the registry location and recorded the agreed Prometheus label dimensions.
Compatibility policy corrected against the Completing Scalable IDE Session Tracking RFC by Coder Agents on behalf of @EhabY. The issue remains Done; this does not reopen completed work.
Activity
linear-code commentedon Jul 22, 2026
ENG-3075
[-]Expose per-app session counts in deployment stats, Prometheus, and the UI (IDE session types phase 2)[/-][+]Expose per-app session counts in deployment stats, Prometheus, and the UI[/+]feat: expose per-app session counts (coder#29351)