Report the actual IDE (Cursor, Devin Desktop, ...) for session tracking
@EhabY がすでに取り組んでいます。
2026年7月23日 から。
評価
この issue はまだ評価されていません。
説明
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 mappingvscode.env.appNameto an app name:Visual Studio Code→vscode,Visual Studio Code - Insiders→vscode_insiders,Cursor→cursor,Windsu``rf/Devin Desktop→devin, pluspositron,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 SSHSetEnv(agent magic env → session counts + connection log)
- Version gate: one new
FeatureSetflag evaluated on two instances, the existing CLI-binary-version instance and a second one built from the already-fetched/api/v2/buildinfoversion; send a non-vscodename only when both pass, otherwise fall back tovscode(no regression against old servers, old agents, or stale custom binaries) - The gate targets the coder/coder release containing both the
connection_logsENUM → TEXT migration (coder/coder#27412) and thetemplate_usage_statsJSONB merge (coder/coder#27413). Until 642, the phase-1 rollup drops non-canonical app names fromtemplate_usage_statsentirely (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.appNamethe 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
vscodeagainst 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
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
coder/vscode-coder のほかの issue
-
coder/vscode-coder#1125 · コメント 1 件 · 担当者 1 名 ·
-
tech-debt
coder/vscode-coder#1119 · コメント 1 件 · 担当者 1 名 ·
-
enhancement tech-debt
難易度 3/5 1〜2日 初心者へのやさしさ 74/100
coder/vscode-coder#1118 · コメント 1 件 ·
-
coder/vscode-coder#1113 · コメント 3 件 · 担当者 1 名 ·
-
Flush the connection log buffer after N failed reconnect attempts against an unreachable server オープンenhancement tech-debt
難易度 5/5 1週間以上 初心者へのやさしさ 45/100
coder/vscode-coder#1112 · コメント 1 件 ·
coder/vscode-coder の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
mksglu/context-mode#1200 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
jaegertracing/jaeger-ui#4506 ·
-
area:desktop area:ui bug platform:macos
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
anthropics/claude-code#96687 ·
-
good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
AOSSIE-Org/DebateAI#582 · コメント 2 件 ·