Repository navigation
feat: report agent connection methods and app identities - #30467
Merged
Merged
Conversation
This was referenced Oct 7, 2026
EhabY
force-pushed
the
feat/agent-connection-methods
branch
from
October 7, 2026 17:33
98e6a68 to
2ee229b
Compare
This was referenced Oct 8, 2026
EhabY
force-pushed
the
feat/agent-connection-methods
branch
2 times, most recently
from
October 8, 2026 14:36
0334811 to
3b02590
Compare
EhabY
force-pushed
the
feat/agent-connection-methods
branch
3 times, most recently
from
October 9, 2026 12:27
79e5cf4 to
527a142
Compare
EhabY
force-pushed
the
feat/agent-connection-methods
branch
from
October 12, 2026 12:42
527a142 to
8e4a0ba
Compare
EhabY
force-pushed
the
feat/agent-connection-methods
branch
3 times, most recently
from
October 12, 2026 13:19
13db794 to
5319db6
Compare
EhabY
marked this pull request as ready for review
October 12, 2026 13:19
EhabY
force-pushed
the
feat/agent-connection-methods
branch
3 times, most recently
from
October 12, 2026 21:01
d2199df to
9d1fb02
Compare
6 tasks done
1 of 3 tasks
EhabY
force-pushed
the
feat/agent-connection-methods
branch
from
October 13, 2026 16:48
9d1fb02 to
98590bc
Compare
code-asher
approved these changes
Oct 13, 2026
EhabY
force-pushed
the
feat/agent-connection-methods
branch
from
October 14, 2026 10:25
98590bc to
e61109c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Agents now report how a connection was made and which app made it, completing the agent side of the Completing Scalable IDE Session Tracking RFC. Follows merged #30466, which added the matching connection log fields.
Closes CLIENT-1037.
What changes
Agent API v2.13
Connectiongains two fields and the nestedMethodenum. Field numbers for existing fields are unchanged. TheMETHOD_prefix follows the protobuf enum naming guidance: enum values share theConnectionscope withType.app_namecursor. Empty when unknown.connection_methodMETHOD_SSH,METHOD_RECONNECTING_PTY, orMETHOD_PORT_FORWARDING(reserved; not sent yet).typeconnection_methodandapp_name. Agents no longer send it; coderd still reads it from agents before v2.13.API v2.12 shipped in v2.38.0; this PR requests v2.13 through
ConnectRPC213WithRole. Released servers predating the new fields reject that RPC version before receiving reports, so dual-send provides no compatibility benefit. Advance the minor if it ships without this handler.Agent
CODER_SSH_SESSION_TYPE. Sessions without one still count as SSH but report no app.Coderd
typeas before: VS Code and JetBrains become SSH with that app.type.Compatibility
type, as before.Stack
Follows #30466 (merged). Replaces #29675. Out of scope: JetBrains per-product names and a raw port-forward producer.
Review guide and line breakdown
Counts are relative to
main.agent.proto,sdk2dbingestion, v2.13 client plumbingagent/proto/agent.pb.goGenerated with Coder Agents on behalf of @EhabY.