Repository navigation
Description
Completed server-side connection log storage, API, search, and UI work for the Scalable Approach for Adding New IDE Session Types RFC, refined by the Completing Scalable IDE Session Tracking RFC.
The original ENUM-to-TEXT proposal evolved into separating how a connection was made (connection_method) from which app made it (app_name). The server-side implementation landed in coder/coder#30466, replacing #29674. This issue remains completed/closed.
Landed scope
- Migration
000617separates method and app identity inconnection_logs. Historicalvscodeandjetbrainsrows become SSH rows with their canonical app names; other rows retain their methods with no app identity. -
GET /api/v2/connectionlogreturnsconnection_methodand optionalapp_name/app_display_name. Deprecatedtyperemains a plain string for compatibility. - Coderd maps legacy agent reports into the new storage shape.
- Search supports
method:and repeatableapp:filters with consistent list/count results. Deprecatedtype:retains its previous behavior and cannot be mixed with the new filters. - The UI uses a Method menu, shows app identity alongside the method, warns on deprecated
type:filters, and usesmethod:sshfor the Active SSH connections preset. - SDK/generated artifacts, migration and filter regression coverage, and API/filter documentation are updated.
Upgrade and rollback
Migration 617 rewrites connection_logs under an ACCESS EXCLUSIVE lock. #30466 measured about 5.8s for 1M rows, 49.7s for 10M, and 99.5s for 25M on indexed PostgreSQL 13 (single runs, excluding lock waits; not deployment guarantees). Rollback folds app names back into legacy types and loses per-app detail; apps registered after the migration fall back to SSH.
Separate follow-ups (not completion requirements)
- CLIENT-1037 / #30467: explicit agent API v2.13 method/app reports and their ingestion compatibility. The unmerged proto and agent-reporting work formerly listed here has moved to that issue, replacing feat: report the app that made a connection #29675.
- CLIENT-1010: duration API/UI and trustworthy disconnect timestamps.
- Future removal of deprecated
type,type:filters, andexcluded_app_names; workspace-app and port filters; JetBrains per-product propagation; and a raw port-forward producer are outside the landed scope.
Depends on the completed CLIENT-644 work.
Updated by Coder Agents on behalf of @EhabY.
Activity
linear-code commentedon Jul 22, 2026
ENG-3076
[-]Migrate connection_logs.type from ENUM to TEXT (IDE session types phase 3)[/-][+]Migrate connection_logs.type from ENUM to TEXT[/+]feat: separate connection log methods from app names (coder#30466)
[-]Migrate connection_logs.type from ENUM to TEXT[/-][+]Separate connection log methods from app identities[/+]