Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: report arbitrary workspace agent session types - #28127

Closed
EhabY wants to merge 2 commits into
perf/workspace-agent-session-counts-jsonbfrom
feat/arbitrary-session-count-producers
Closed

feat: report arbitrary workspace agent session types#28127
EhabY wants to merge 2 commits 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 #28337, which adds the family grouping these names are counted under. Phase 1 of #27410.

Ships with #27412, which makes connection_logs.type TEXT. Without it, a Cursor connection is recorded as vscode in the connection log.

@EhabY
EhabY force-pushed the perf/workspace-agent-session-counts-jsonb branch from b654c59 to 102d860 Compare August 13, 2026 16:29
@EhabY
EhabY force-pushed the feat/arbitrary-session-count-producers branch from 05f88db to ce51155 Compare August 13, 2026 16:30
@EhabY
EhabY force-pushed the perf/workspace-agent-session-counts-jsonb branch from 102d860 to ec55b67 Compare August 18, 2026 13:05
@EhabY
EhabY force-pushed the feat/arbitrary-session-count-producers branch from ce51155 to f83aab9 Compare August 18, 2026 13:05
@EhabY
EhabY force-pushed the perf/workspace-agent-session-counts-jsonb branch from ec55b67 to a105341 Compare August 19, 2026 11:19
@EhabY
EhabY force-pushed the feat/arbitrary-session-count-producers branch 2 times, most recently from a04f695 to 5ff38f2 Compare August 19, 2026 12:32
@EhabY
EhabY force-pushed the perf/workspace-agent-session-counts-jsonb branch from 9009c59 to 5b4c776 Compare August 19, 2026 14:14
@EhabY
EhabY force-pushed the feat/arbitrary-session-count-producers branch from 5ff38f2 to 7ea9b9f Compare August 19, 2026 14:14
@EhabY
EhabY force-pushed the perf/workspace-agent-session-counts-jsonb branch from 5b4c776 to 88ce165 Compare August 19, 2026 23:25
@EhabY
EhabY force-pushed the feat/arbitrary-session-count-producers branch from 7ea9b9f to ff7f27c Compare August 19, 2026 23:25
EhabY added 2 commits August 20, 2026 02:39
Usage reporting recognized only the four canonical app names, so a
session reported as "cursor" was dropped from template insights and the
deployment stats. Read paths now group app names into families supplied
by idemetadata, and any session at all counts as activity, so an
unrecognized app costs unattributed minutes instead of an idle user.
@EhabY
EhabY force-pushed the perf/workspace-agent-session-counts-jsonb branch from 88ce165 to ae67674 Compare August 19, 2026 23:43
@EhabY
EhabY force-pushed the feat/arbitrary-session-count-producers branch from ff7f27c to a9d73b0 Compare August 19, 2026 23:43
@EhabY

EhabY commented Aug 19, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #28338. Split so the read-side family grouping (#28337) lands before the producers; GitHub does not allow changing the base of a PR in a stack, so this one is replaced rather than repointed.

@EhabY EhabY closed this Aug 19, 2026
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