Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Report the actual IDE (Cursor, Devin Desktop, ...) for session tracking

オープン
#1,044 コメント 2 件 リアクション 0 件 担当者 1 名 GitHub で見る

@EhabY がすでに取り組んでいます。

2026年7月23日 から。

評価

この issue はまだ評価されていません。

説明

Feature vs-code

Client half of the Scalable Approach for Adding New IDE Session Types RFC; supersedes coder/vscode-coder#696, closed as a duplicate of this issue. The extension hardcodes vscode in both identification mechanisms, so Cursor, Windsurf, and other forks are all recorded as VS Code. The server side (coder/coder#27410 → coder/coder#27412) accepts arbitrary app names; this issue makes the extension send the real one.

Scope (RFC: "Client-side changes" and "Rollout order and version gating"):

  • Add a getIdeType() util mapping vscode.env.appName to an app name: Visual Studio Code → vscode, Visual Studio Code - Insiders → vscode_insiders, Cursor → cursor, Windsu``rf/Devin Desktop → devin, plus positron, vscodium, ...; unknown editors send the raw app name and the server normalizes it (lowercase, - → _, 64-rune cap)
  • Use it in both mechanisms, which feed different pipelines:
    • --usage-app=<type> on the ProxyCommand (workspace usage API → session counts)
    • CODER_SSH_SESSION_TYPE=<type> via SSH SetEnv (agent magic env → session counts + connection log)
  • Version gate: one new FeatureSet flag evaluated on two instances, the existing CLI-binary-version instance and a second one built from the already-fetched /api/v2/buildinfo version; send a non-vscode name only when both pass, otherwise fall back to vscode (no regression against old servers, old agents, or stale custom binaries)
  • The gate targets the coder/coder release containing both the connection_logs ENUM → TEXT migration (coder/coder#27412) and the template_usage_stats JSONB merge (coder/coder#27413). Until 642, the phase-1 rollup drops non-canonical app names from template_usage_stats entirely (they are not even bucketed by family), so flipping the gate earlier would silently undercount those users' IDE minutes and agent-side usage in template insights. Gating on both closes that window without an interim schema workaround
  • Prior art (from coder/vscode-coder#696): wakatime/vscode-wakatime and kahole/edamagit detect the host editor via vscode.env.appName the same way
Done when
  • Cursor/Windsurf sessions show up under their own name on a new-enough deployment (session counts and connection log)
  • The same build falls back to vscode against an older server or CLI binary
  • An unmapped fork still connects and reports its raw app name

🤖 Created by Coder Agents on behalf of @EhabY.

主要言語
TypeScript
スター
131
フォーク
48
平均マージ
4日 15時間
マージ済み PR(30日)
17

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

coder/vscode-coder のほかの issue

coder/vscode-coder の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。