René's URL Explorer Experiment


Title: refactor: normalize workspace agent session metadata by EhabY · Pull Request #28124 · coder/coder · GitHub

Open Graph Title: refactor: normalize workspace agent session metadata by EhabY · Pull Request #28124 · coder/coder

X Title: refactor: normalize workspace agent session metadata by EhabY · Pull Request #28124 · coder/coder

Description: Phase 1 of the Scalable Approach for Adding New IDE Session Types RFC, tracked in #27410. Gives agent session accounting one canonical vocabulary for app names, so later work can report a count per app without the agent and the server disagreeing about what an app is called. Adds codersdk/appname.go: NormalizeAppName for storage and lookup, and AppFamilyName for the places that need a bounded value, such as a Prometheus label or the Connection_Type enum. agentssh.Server keeps session counters in a map keyed by normalized name instead of three fixed atomics, dropping entries at zero. Drops MagicSessionType. Sessions carry plain app names, and unrecognized ones flow through as themselves rather than collapsing to unknown. Wire behavior is unchanged: the agent still reports the four session_count_* fields over Agent API 2.10. Stack this PR: normalize agent session metadata #28125: add the Stats.session_counts protocol field #28126: store session counts as JSONB (the only migration in the stack) #28337: attribute session counts by app family #28338: report arbitrary session types

Open Graph Description: Phase 1 of the Scalable Approach for Adding New IDE Session Types RFC, tracked in #27410. Gives agent session accounting one canonical vocabulary for app names, so later work can report a count per...

X Description: Phase 1 of the Scalable Approach for Adding New IDE Session Types RFC, tracked in #27410. Gives agent session accounting one canonical vocabulary for app names, so later work can report a count per...

Opengraph URL: https://github.com/coder/coder/pull/28124

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:19210f23-c49a-85e1-66f4-fda7a5f105bd
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB01E:2BE220:1B78D42:24A54E8:6B0160C8
html-safe-nonce8a06a212b77c004e4c5b8b6417a612a2152892de5dcd81afabdfcf8241ce0ebf
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDFFOjJCRTIyMDoxQjc4RDQyOjI0QTU0RTg6NkIwMTYwQzgiLCJ2aXNpdG9yX2lkIjoiODU1ODM5NjAxNzU4MDUzMTkxMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac5f0b283535d9df381be7b6260332efe06caa4ac81f0617db4985db9f9795afdf
hovercard-subject-tagpull_request:4272481925
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/coder/coder/pull/28124/files
twitter:imagehttps://avatars.githubusercontent.com/u/12927950?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/12927950?s=400&v=4
og:image:altPhase 1 of the Scalable Approach for Adding New IDE Session Types RFC, tracked in #27410. Gives agent session accounting one canonical vocabulary for app names, so later work can report a count per...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/coder/coder git https://github.com/coder/coder.git
octolytics-dimension-user_id95932066
octolytics-dimension-user_logincoder
octolytics-dimension-repository_id440752086
octolytics-dimension-repository_nwocoder/coder
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id440752086
octolytics-dimension-repository_network_root_nwocoder/coder
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/coder/coder/pull/28124/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F28124%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F28124%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=coder%2Fcoder
Reloadhttps://github.com/coder/coder/pull/28124/files
Reloadhttps://github.com/coder/coder/pull/28124/files
Reloadhttps://github.com/coder/coder/pull/28124/files
coderhttps://github.com/coder
coderhttps://github.com/coder/coder
Codehttps://github.com/coder/coder
Issues320 (320)https://github.com/coder/coder/issues
Pull requests470 (470)https://github.com/coder/coder/pulls
Discussionshttps://github.com/coder/coder/discussions
Actionshttps://github.com/coder/coder/actions
Projectshttps://github.com/coder/coder/projects
Security and quality49 (49)https://github.com/coder/coder/security
Insightshttps://github.com/coder/coder/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fcoder%2Fcoder%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fcoder%2Fcoder%2Fissues%2Fnew%2Fchoose
EhabYhttps://github.com/EhabY
mainhttps://github.com/coder/coder/tree/main
refactor/normalize-agent-session-metadatahttps://github.com/coder/coder/tree/refactor/normalize-agent-session-metadata
Conversation 32 https://github.com/coder/coder/pull/28124
Commits 4 https://github.com/coder/coder/pull/28124/commits
Checks 39 https://github.com/coder/coder/pull/28124/checks
Files changed https://github.com/coder/coder/pull/28124/files
Please reload this pagehttps://github.com/coder/coder/pull/28124/files
refactor: normalize workspace agent session metadata https://github.com/coder/coder/pull/28124/files#top
Show all changes 4 commits https://github.com/coder/coder/pull/28124/files
341e227 refactor: normalize workspace agent session metadata EhabY Aug 13, 2026 https://github.com/coder/coder/pull/28124/commits/341e22793e0f354c3b49ca956a5f2105549769fb
211489d refactor: move session app name vocabulary into codersdk EhabY Aug 20, 2026 https://github.com/coder/coder/pull/28124/commits/211489d506e3bc172fc0a66dd1d4d1a0126fb09f
f4134b4 refactor: name session app names as app names, not magic types EhabY Aug 20, 2026 https://github.com/coder/coder/pull/28124/commits/f4134b46a2cc899f677542a991dca1466a6275fe
51db48a refactor(agent): rename MagicSessionTypeEnvironmentVariable to AppNam… EhabY Aug 20, 2026 https://github.com/coder/coder/pull/28124/commits/51db48a41a1cdb28b95e9daba05a0c1dd2dbadc1
Clear filters https://github.com/coder/coder/pull/28124/files
Please reload this pagehttps://github.com/coder/coder/pull/28124/files
Please reload this pagehttps://github.com/coder/coder/pull/28124/files
agent.go https://github.com/coder/coder/pull/28124/files#diff-62b6ad581fe3a3059ae8c85ef0f31dde4092bfdecfa7d6857c470bcacaa8cc8b
agent_test.go https://github.com/coder/coder/pull/28124/files#diff-e12d66df9a328a0b4b4e61abbde9a65eb60a4c8a6a8ca9249a455f173007ac89
agentssh.go https://github.com/coder/coder/pull/28124/files#diff-e2fb60d4b313fc2ad42c37ce065c0c880e04615b339a843e14892338d0bb4396
appname_internal_test.go https://github.com/coder/coder/pull/28124/files#diff-7cdd6cc1eaa5cb25c5f5e656aa6d6b425709e1580d731068a20964a501c181e3
jetbrainstrack.go https://github.com/coder/coder/pull/28124/files#diff-6055ab9728a53779a329969d96969999fcf5d2a4ceb36fd8be45c6a6ea28afb7
metrics.go https://github.com/coder/coder/pull/28124/files#diff-7bb15ef604a44c68f6c8d57c71c9d948134500d120ba2a99d7616d281462540b
appname.go https://github.com/coder/coder/pull/28124/files#diff-5f9558acac5e96bee6bc5a5f37b9ba9d2bd2ab195907552fe63ad3d1208c04e9
appname_internal_test.go https://github.com/coder/coder/pull/28124/files#diff-c1cdfc1a8cd2a6950fc07d73fc0aaca0813cbeee767833fc7125ac113ba93a43
appname_test.go https://github.com/coder/coder/pull/28124/files#diff-6875c47a33bfe8e59d46c0602099a46174a3bd483125d56966773e7a717d2cfe
agent/agent.gohttps://github.com/coder/coder/pull/28124/files#diff-62b6ad581fe3a3059ae8c85ef0f31dde4092bfdecfa7d6857c470bcacaa8cc8b
View file https://github.com/coder/coder/blob/51db48a41a1cdb28b95e9daba05a0c1dd2dbadc1/agent/agent.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/28124/{{ revealButtonHref }}
https://github.com/coder/coder/pull/28124/files#diff-62b6ad581fe3a3059ae8c85ef0f31dde4092bfdecfa7d6857c470bcacaa8cc8b
https://github.com/coder/coder/pull/28124/files#diff-62b6ad581fe3a3059ae8c85ef0f31dde4092bfdecfa7d6857c470bcacaa8cc8b
https://github.com/coder/coder/pull/28124/files#diff-62b6ad581fe3a3059ae8c85ef0f31dde4092bfdecfa7d6857c470bcacaa8cc8b
https://github.com/coder/coder/pull/28124/files#diff-62b6ad581fe3a3059ae8c85ef0f31dde4092bfdecfa7d6857c470bcacaa8cc8b
agent/agent_test.gohttps://github.com/coder/coder/pull/28124/files#diff-e12d66df9a328a0b4b4e61abbde9a65eb60a4c8a6a8ca9249a455f173007ac89
View file https://github.com/coder/coder/blob/51db48a41a1cdb28b95e9daba05a0c1dd2dbadc1/agent/agent_test.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/28124/{{ revealButtonHref }}
https://github.com/coder/coder/pull/28124/files#diff-e12d66df9a328a0b4b4e61abbde9a65eb60a4c8a6a8ca9249a455f173007ac89
https://github.com/coder/coder/pull/28124/files#diff-e12d66df9a328a0b4b4e61abbde9a65eb60a4c8a6a8ca9249a455f173007ac89
https://github.com/coder/coder/pull/28124/files#diff-e12d66df9a328a0b4b4e61abbde9a65eb60a4c8a6a8ca9249a455f173007ac89
Please reload this pagehttps://github.com/coder/coder/pull/28124/files
Please reload this pagehttps://github.com/coder/coder/pull/28124/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.