Skip to content

feat: report arbitrary workspace agent session types - #28127

Draft
EhabY wants to merge 1 commit into
perf/workspace-agent-session-counts-jsonbfrom
feat/arbitrary-session-count-producers
Draft

feat: report arbitrary workspace agent session types#28127
EhabY wants to merge 1 commit into
perf/workspace-agent-session-counts-jsonbfrom
feat/arbitrary-session-count-producers

Conversation

@EhabY

@EhabY EhabY commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Turns the producers on now that the schema and the write path are in place.

  • The agent connects on Agent API 2.11 and reports Stats.session_counts from its normalized map.
  • Reconnecting PTY activity is merged into that map rather than overwriting it, since a client is free to label an ssh session reconnecting_pty.
  • coder ssh --usage-app passes any app name through instead of rewriting unrecognized ones to ssh.
  • The workspace usage API accepts any app_name, normalized at ingestion, so a new IDE needs no Coder change to show up in usage reporting.
  • codersdk.AllowedAppNames stays as the deprecated well-known-name list, and the 2.9 and 2.10 client constructors stay for compatibility.

Depends on #28126.

@EhabY
EhabY force-pushed the feat/arbitrary-session-count-producers branch from 05f88db to ce51155 Compare August 13, 2026 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant