Repository navigation
Description
The plugin hardcodes --usage-app=jetbrains and CODER_SSH_SESSION_TYPE=JetBrains (CoderCLIManager.kt, in both coder/coder-jetbrains-toolbox and coder/jetbrains-coder), and server-side process detection cannot tell PyCharm from GoLand, so every JetBrains IDE buckets under jetbrains.
Server-side ingestion is unlocked (coder/coder#28338): app_name is a free-form string, normalized at ingestion.
App ID derivation: product code
There is no scheme-based shortcut here, unlike the VS Code side (coder/vscode-coder#1044):
- JetBrains registers a single
jetbrains://scheme with the product as the authority (jetbrains://idea/navigate/reference?...), and the IntelliJ platform has noenv.uriSchemeequivalent —CopyTBXReferenceActionbuilds those URLs from the platform prefix. jetbrains://idea/...is shared by Ultimate and Community, so the authority does not identify an edition either.PlatformUtilsprefixes cannot be used:IDEA_PREFIX = "idea"vsIDEA_CE_PREFIX = "Idea"differ only by case, whichNormalizeAppNamelowercases away, and PyCharm Professional's prefix is literally"Python".
So use the product code, the only source that reliably identifies the product (IntelliJPlatformProduct.java in intellij-community, and IntelliJPlatformType.kt in JetBrains/intellij-platform-gradle-plugin).
Important: both plugins run in Gateway/Toolbox, not inside the IDE, so ApplicationInfo.getInstance().build.productCode returns Gateway (GW/JBC), not the IDE. The code must come from the selected IDE — what the Toolbox plugin already resolves in CoderProtocolHandler.kt (params.ideProductCode() / resolveIdeIdentifier). If the selected IDE cannot be determined, keep sending jetbrains; never report GW or JBC as the workspace IDE.
| Product code | App name |
|---|---|
| IU, IC, IE | intellij |
| PY, PC, PE | pycharm |
| GO | goland |
| WS | webstorm |
| PS | phpstorm |
| RM | rubymine |
| CL | clion |
| RD | rider |
| RR | rustrover |
| DB | datagrip |
| DS | dataspell |
| MPS | mps |
| AI | android_studio |
Editions are not distinguished
The reported name identifies the editor, not the licence tier. All IntelliJ IDEA product codes map to intellij and all PyCharm codes to pycharm, Edu variants included.
This also avoids a naming problem introduced in 2025.3 (build 253): JetBrains now ships one unified IntelliJ IDEA distribution reporting IU and one unified PyCharm reporting PY, with paid features unlocked by licence rather than by a separate download, so IC and PC are no longer published (SDK docs). A name like intellij_ultimate would label every user "Ultimate" regardless of licence, and the older codes would fade out unevenly as users upgrade. One name per editor is stable across all versions.
Editor identity stays unambiguous: only IDEA and PyCharm ever had an edition split, and every other product keeps its own product code. Aqua (QA) is listed as removed as a target platform and is omitted.
The 64-name cap in capSessionCounts is per stats report (one agent, one interval), so registry size is not a constraint — it is not the reason for the collapse.
Scope
- Registry prerequisites are done: coder/coder#30116 added the JetBrains product names under
AppFamilyJetBrainsand closed #29928. This does not complete plugin reporting or watcher propagation; an unregistered name remains valid but groups asunknown. - Send the derived name through both mechanisms:
--usage-app=<name>andCODER_SSH_SESSION_TYPE=<name>. - Plumb the name into
JetbrainsChannelWatcher. The SSH environment variable alone does not reach the persistent forwarded channel that counts/logs JetBrains use. Explicit method/app reporting in CLIENT-1037 / #30467 does not itself supply the selected product name to this watcher. Choose and verify either backend-process identification or carrying identity from the originating connection; backend product-code availability remains unverified. Retain thejetbrainsfallback and avoid counting every short-lived SSH session. Test reporting withworkspace-usageboth enabled and disabled. - Version gate as in #1044: a specific name only when both deployment and CLI meet the supported gate and the CLI version is known, otherwise
jetbrains. Coder ≤ 2.37.x returns HTTP 400 for an unknownapp_name.
Gate release: 2.38
Use the 2.38.0 deployment/CLI gate described by CLIENT-643 and the completion RFC, confirming release support before shipping. Validate old running agents and both workspace-usage settings independently of that gate.
Connection-log server storage/API/UI landed in CLIENT-640; explicit agent reports remain in CLIENT-1037. Per-app insights reads/UI remain in CLIENT-642. Per-app storage landed in migration 000596, but records reported only as jetbrains cannot later be split into specific editors. The client gate does not guarantee all downstream work ships in the same release.
Done when
-
JetBrains product names are registered under the JetBrains family (#30116, closing #29928)
-
GoLand and PyCharm sessions are distinguishable in session counts on a 2.38+ deployment, and still roll up under the JetBrains family
-
Older deployments still receive
jetbrains -
The session count and connection log carry the specific editor name, not just the
jetbrainsfamily
Description updated by Coder Agents on behalf of @EhabY: product-code derivation (no usable URI scheme), one name per editor with editions collapsed, Gateway/Toolbox correction.
Stale registry and historical claims corrected against the Completing Scalable IDE Session Tracking RFC by Coder Agents on behalf of @EhabY. Issue status is unchanged.
Activity
linear-code commentedon Jul 22, 2026
DEVEX-639