coder / coder/jetbrains-coder

Send the specific JetBrains IDE name for session tracking

Offen
#599 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Improvement jetbrains-toolbox
Vorherrschende Sprache
Kotlin
Sterne
33
Forks
18
Ø Merge
2 T. 13 Std.
Gemergte PRs (30 T.)
1

Beschreibung

Client-side follow-up from the [Scalable Approach for Adding New IDE Session Types RFC]() (lower priority than coder/vscode-coder#1044 since JetBrains IDEs are one vendor rather than many forks).

The plugin hardcodes `--usage-app=jetbrains` and `CODER_SSH_SESSION_TYPE=JetBrains` (`CoderCLIManager.kt`), and server-side process detection cannot tell PyCharm from GoLand, so every JetBrains IDE buckets under `jetbrains`.

Once the server accepts arbitrary app names (coder/coder#27410 → coder/coder#27412):

* Derive the product from the JetBrains platform API (e.g. `ApplicationInfo`/`ApplicationNamesInfo` product name) and send it through both mechanisms, e.g. `goland`, `pycharm`, `rustrover`; the server normalizes whatever is sent (lowercase, `-` → `_`)
* Same version-gating pattern as the VS Code extension: send a specific name only when the connected deployment is new enough, otherwise keep `jetbrains`
* Server-side family grouping keeps all of these under the JetBrains family in metric labels and legacy aggregates, so existing dashboards do not fragment

### Done when

- [ ] GoLand and PyCharm sessions are distinguishable in session counts on a new-enough deployment
- [ ] Older deployments still receive `jetbrains`

---

🤖 Created by Coder Agents on behalf of @EhabY.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne in CoderCLIManager.kt und untersuche die im Issue erwähnten JetBrains-Plattform-APIs, etwa ApplicationInfo oder ApplicationNamesInfo, für den Produktnamen. Vergleiche das Version-Gating-Muster der VS Code-Erweiterung und verfolge beide Mechanismen zur Sitzungsverfolgung. Als abgeschlossen gilt es, wenn GoLand und PyCharm bei neuen Deployments unterscheidbar sind, während ältere Deployments weiterhin jetbrains erhalten.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
kotlin
Bereich
tooling
Issue-Typ
Feature
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Ruhig
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
55/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.