René's URL Explorer Experiment


Title: fix: exempt service accounts from user dormancy by ethanndickson · Pull Request #30824 · coder/coder · GitHub

Open Graph Title: fix: exempt service accounts from user dormancy by ethanndickson · Pull Request #30824 · coder/coder

X Title: fix: exempt service accounts from user dormancy by ethanndickson · Pull Request #30824 · coder/coder

Description: Closes CODAGT-1344 The Slack bot for Coder Agents (CODAGT-1098) runs inside coderd and acts as a service account that an admin picks. It creates chats and sends messages as that account through Go calls, not HTTP requests. Two dormancy rules break it: New service accounts start dormant. The CLI and the web "Create user" page send no status, and InsertUser falls back to dormant. So the bot's account is dormant from the start. Accounts go dormant after 90 days without a "last seen" update. Only the API key middleware updates last_seen_at, and only on HTTP requests. The bot never sends any, so its account goes dormant on day 90, even if people use the bot every day. A chat owner must be active, so once the bot's account is dormant, every Slack mention fails. Any other in-process integration that acts as a service account has the same problem. Dormancy does nothing useful for service accounts: It exists to free license seats, and service accounts never take a license seat (#24401, #27279). It isn't a lock. Any API request activates a dormant account again. System users already skip the dormancy job for the same reason. So this PR: creates service accounts as active when the request doesn't set a status, rejects an explicit dormant status for a service account with a 400, skips service accounts in the dormancy job, the same way it already skips system users. Side effects: a service account that nobody uses for 90 days now stays active. That has no effect on license seats. If the account has ever sent traffic through AI Gateway, it also keeps its AI Governance seat until an admin suspends or deletes it. That matters less than it sounds: AI Governance is now included with Premium rather than sold per seat (#27545), so the seat only counts on a license that still has an AI Governance seat limit, and there it only feeds the seat-limit warning. The dormancy job also no longer writes "marked dormant" audit entries for service accounts. I've left existing dormant service accounts alone rather than adding a migration. An admin can activate one, and any API request from it activates it too. This PR description was written by Coder Agents.

Open Graph Description: Closes CODAGT-1344 The Slack bot for Coder Agents (CODAGT-1098) runs inside coderd and acts as a service account that an admin picks. It creates chats and sends messages as that account through Go ...

X Description: Closes CODAGT-1344 The Slack bot for Coder Agents (CODAGT-1098) runs inside coderd and acts as a service account that an admin picks. It creates chats and sends messages as that account through Go ...

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

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:dc3c113b-cf49-fc2f-f4a6-890b710732bd
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD908:8800B:38E2A:4B7DF:6B017D85
html-safe-nonce8ace726a71fb8524419bd103210ffee07d38b3fb94e94eab73e7f07109e9aff2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTA4Ojg4MDBCOjM4RTJBOjRCN0RGOjZCMDE3RDg1IiwidmlzaXRvcl9pZCI6IjgxNzMxMzM0OTU0NjQ0NTk2NTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac18c6c788266d45b81f7857a03849f60c262aa924bb743d5e6a90cf10be4891ae
hovercard-subject-tagpull_request:4868684508
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/30824/files
twitter:imagehttps://avatars.githubusercontent.com/u/39577870?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/39577870?s=400&v=4
og:image:altCloses CODAGT-1344 The Slack bot for Coder Agents (CODAGT-1098) runs inside coderd and acts as a service account that an admin picks. It creates chats and sends messages as that account through Go ...
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/30824/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F30824%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%2F30824%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/30824/files
Reloadhttps://github.com/coder/coder/pull/30824/files
Reloadhttps://github.com/coder/coder/pull/30824/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
ethanndicksonhttps://github.com/ethanndickson
ethanndickson/chat-mcp-servers-internalhttps://github.com/coder/coder/tree/ethanndickson/chat-mcp-servers-internal
ethan/codagt-1344-exempt-service-accounts-from-user-dormancyhttps://github.com/coder/coder/tree/ethan/codagt-1344-exempt-service-accounts-from-user-dormancy
Conversation 12 https://github.com/coder/coder/pull/30824
Commits 4 https://github.com/coder/coder/pull/30824/commits
Checks 42 https://github.com/coder/coder/pull/30824/checks
Files changed https://github.com/coder/coder/pull/30824/files
Please reload this pagehttps://github.com/coder/coder/pull/30824/files
fix: exempt service accounts from user dormancy https://github.com/coder/coder/pull/30824/files#top
Show all changes 4 commits https://github.com/coder/coder/pull/30824/files
ec57a0b fix: exempt service accounts from user dormancy ethanndickson Oct 13, 2026 https://github.com/coder/coder/pull/30824/commits/ec57a0b6854667a2e71712f3e62d577fc9e39238
7825630 docs: drop hand-written dormancy docs changes ethanndickson Oct 15, 2026 https://github.com/coder/coder/pull/30824/commits/7825630218cf1a937515e6682e9a54bbb629c756
630d710 docs: note that service accounts are exempt from user dormancy ethanndickson Oct 19, 2026 https://github.com/coder/coder/pull/30824/commits/630d7108b2c7ca261d99d64a819d21a226f5a3c0
8ad3613 docs: drop the dormant status rejection note from the users page ethanndickson Oct 19, 2026 https://github.com/coder/coder/pull/30824/commits/8ad3613d8974c2a139f7b3f58c73ea07a2285d59
Clear filters https://github.com/coder/coder/pull/30824/files
Please reload this pagehttps://github.com/coder/coder/pull/30824/files
Please reload this pagehttps://github.com/coder/coder/pull/30824/files
docs.go https://github.com/coder/coder/pull/30824/files#diff-62ac3890066a69746687795ab05779ba2ddf1f4027cf2448425af7728c8da7b4
swagger.json https://github.com/coder/coder/pull/30824/files#diff-f7851d516b0d2ef3ed1f6bbdd199cd120f502761c6f2c2a472bd9ef2bc302d72
queries.sql.go https://github.com/coder/coder/pull/30824/files#diff-bc904829e61be3669efa87d9f79fe9137ea288eebef74d7ae9c87cfab9833c43
users.sql https://github.com/coder/coder/pull/30824/files#diff-b734f317bc8e54f4353e4e187651faa8e54f3a23fa582a22df9eeae6d69b000e
users.go https://github.com/coder/coder/pull/30824/files#diff-b4e10e23e473674139719f634b3ad7e760467574e342916c4bbb42df7a613722
users.go https://github.com/coder/coder/pull/30824/files#diff-300f8156df9bd44f20d854d8a65225e001e82d3a1ab670e2b826a43d0387cc9c
index.md https://github.com/coder/coder/pull/30824/files#diff-4dedae2e764967d2520eb75b84a37bcb10077890ab3f1ff32f04b3c34be4cc96
schemas.md https://github.com/coder/coder/pull/30824/files#diff-ea04dba9d1a3734ec0dcd3082f03ce87d32a417e47144882531d15dea6fd341d
dormantusersjob_test.go https://github.com/coder/coder/pull/30824/files#diff-78727d3836d48528f59a81e0e50b0a3d180908d6485712810daa537f9fc9ff7d
users_test.go https://github.com/coder/coder/pull/30824/files#diff-1c34558d2182e9be734b13e2e4e12d776b441fd0ebe36d01f0d255f277c59c89
typesGenerated.ts https://github.com/coder/coder/pull/30824/files#diff-0db594bd57651eba54a837eab00864ea5f931dfdf058eb3dc3b9e2e211fa6e7a
coderd/apidoc/docs.gohttps://github.com/coder/coder/pull/30824/files#diff-62ac3890066a69746687795ab05779ba2ddf1f4027cf2448425af7728c8da7b4
View file https://github.com/coder/coder/blob/8ad3613d8974c2a139f7b3f58c73ea07a2285d59/coderd/apidoc/docs.go
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/coder/coder/pull/30824/files
coderd/apidoc/swagger.jsonhttps://github.com/coder/coder/pull/30824/files#diff-f7851d516b0d2ef3ed1f6bbdd199cd120f502761c6f2c2a472bd9ef2bc302d72
View file https://github.com/coder/coder/blob/8ad3613d8974c2a139f7b3f58c73ea07a2285d59/coderd/apidoc/swagger.json
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/coder/coder/pull/30824/files
coderd/database/queries.sql.gohttps://github.com/coder/coder/pull/30824/files#diff-bc904829e61be3669efa87d9f79fe9137ea288eebef74d7ae9c87cfab9833c43
View file https://github.com/coder/coder/blob/8ad3613d8974c2a139f7b3f58c73ea07a2285d59/coderd/database/queries.sql.go
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/coder/coder/pull/30824/files
coderd/database/queries/users.sqlhttps://github.com/coder/coder/pull/30824/files#diff-b734f317bc8e54f4353e4e187651faa8e54f3a23fa582a22df9eeae6d69b000e
View file https://github.com/coder/coder/blob/8ad3613d8974c2a139f7b3f58c73ea07a2285d59/coderd/database/queries/users.sql
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/30824/{{ revealButtonHref }}
https://github.com/coder/coder/pull/30824/files#diff-b734f317bc8e54f4353e4e187651faa8e54f3a23fa582a22df9eeae6d69b000e
https://github.com/coder/coder/pull/30824/files#diff-b734f317bc8e54f4353e4e187651faa8e54f3a23fa582a22df9eeae6d69b000e
https://github.com/coder/coder/pull/30824/files#diff-b734f317bc8e54f4353e4e187651faa8e54f3a23fa582a22df9eeae6d69b000e
Please reload this pagehttps://github.com/coder/coder/pull/30824/files
https://github.com/coder/coder/pull/30824/files#diff-b734f317bc8e54f4353e4e187651faa8e54f3a23fa582a22df9eeae6d69b000e
coderd/users.gohttps://github.com/coder/coder/pull/30824/files#diff-b4e10e23e473674139719f634b3ad7e760467574e342916c4bbb42df7a613722
View file https://github.com/coder/coder/blob/8ad3613d8974c2a139f7b3f58c73ea07a2285d59/coderd/users.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/30824/{{ revealButtonHref }}
https://github.com/coder/coder/pull/30824/files#diff-b4e10e23e473674139719f634b3ad7e760467574e342916c4bbb42df7a613722
https://github.com/coder/coder/pull/30824/files#diff-b4e10e23e473674139719f634b3ad7e760467574e342916c4bbb42df7a613722
codersdk/users.gohttps://github.com/coder/coder/pull/30824/files#diff-300f8156df9bd44f20d854d8a65225e001e82d3a1ab670e2b826a43d0387cc9c
View file https://github.com/coder/coder/blob/8ad3613d8974c2a139f7b3f58c73ea07a2285d59/codersdk/users.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/30824/{{ revealButtonHref }}
https://github.com/coder/coder/pull/30824/files#diff-300f8156df9bd44f20d854d8a65225e001e82d3a1ab670e2b826a43d0387cc9c
https://github.com/coder/coder/pull/30824/files#diff-300f8156df9bd44f20d854d8a65225e001e82d3a1ab670e2b826a43d0387cc9c
docs/admin/users/index.mdhttps://github.com/coder/coder/pull/30824/files#diff-4dedae2e764967d2520eb75b84a37bcb10077890ab3f1ff32f04b3c34be4cc96
View file https://github.com/coder/coder/blob/8ad3613d8974c2a139f7b3f58c73ea07a2285d59/docs/admin/users/index.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/30824/{{ revealButtonHref }}
https://github.com/coder/coder/pull/30824/files#diff-4dedae2e764967d2520eb75b84a37bcb10077890ab3f1ff32f04b3c34be4cc96
https://github.com/coder/coder/pull/30824/files#diff-4dedae2e764967d2520eb75b84a37bcb10077890ab3f1ff32f04b3c34be4cc96
docs/reference/api/schemas.mdhttps://github.com/coder/coder/pull/30824/files#diff-ea04dba9d1a3734ec0dcd3082f03ce87d32a417e47144882531d15dea6fd341d
View file https://github.com/coder/coder/blob/8ad3613d8974c2a139f7b3f58c73ea07a2285d59/docs/reference/api/schemas.md
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/coder/coder/pull/30824/files
enterprise/coderd/dormancy/dormantusersjob_test.gohttps://github.com/coder/coder/pull/30824/files#diff-78727d3836d48528f59a81e0e50b0a3d180908d6485712810daa537f9fc9ff7d
View file https://github.com/coder/coder/blob/8ad3613d8974c2a139f7b3f58c73ea07a2285d59/enterprise/coderd/dormancy/dormantusersjob_test.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/30824/{{ revealButtonHref }}
https://github.com/coder/coder/pull/30824/files#diff-78727d3836d48528f59a81e0e50b0a3d180908d6485712810daa537f9fc9ff7d
https://github.com/coder/coder/pull/30824/files#diff-78727d3836d48528f59a81e0e50b0a3d180908d6485712810daa537f9fc9ff7d
https://github.com/coder/coder/pull/30824/files#diff-78727d3836d48528f59a81e0e50b0a3d180908d6485712810daa537f9fc9ff7d
https://github.com/coder/coder/pull/30824/files#diff-78727d3836d48528f59a81e0e50b0a3d180908d6485712810daa537f9fc9ff7d
https://github.com/coder/coder/pull/30824/files#diff-78727d3836d48528f59a81e0e50b0a3d180908d6485712810daa537f9fc9ff7d
https://github.com/coder/coder/pull/30824/files#diff-78727d3836d48528f59a81e0e50b0a3d180908d6485712810daa537f9fc9ff7d
enterprise/coderd/users_test.gohttps://github.com/coder/coder/pull/30824/files#diff-1c34558d2182e9be734b13e2e4e12d776b441fd0ebe36d01f0d255f277c59c89
View file https://github.com/coder/coder/blob/8ad3613d8974c2a139f7b3f58c73ea07a2285d59/enterprise/coderd/users_test.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/30824/{{ revealButtonHref }}
https://github.com/coder/coder/pull/30824/files#diff-1c34558d2182e9be734b13e2e4e12d776b441fd0ebe36d01f0d255f277c59c89
https://github.com/coder/coder/pull/30824/files#diff-1c34558d2182e9be734b13e2e4e12d776b441fd0ebe36d01f0d255f277c59c89
https://github.com/coder/coder/pull/30824/files#diff-1c34558d2182e9be734b13e2e4e12d776b441fd0ebe36d01f0d255f277c59c89
https://github.com/coder/coder/pull/30824/files#diff-1c34558d2182e9be734b13e2e4e12d776b441fd0ebe36d01f0d255f277c59c89
https://github.com/coder/coder/pull/30824/files#diff-1c34558d2182e9be734b13e2e4e12d776b441fd0ebe36d01f0d255f277c59c89
https://github.com/coder/coder/pull/30824/files#diff-1c34558d2182e9be734b13e2e4e12d776b441fd0ebe36d01f0d255f277c59c89
site/src/api/typesGenerated.tshttps://github.com/coder/coder/pull/30824/files#diff-0db594bd57651eba54a837eab00864ea5f931dfdf058eb3dc3b9e2e211fa6e7a
View file https://github.com/coder/coder/blob/8ad3613d8974c2a139f7b3f58c73ea07a2285d59/site/src/api/typesGenerated.ts
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/coder/coder/pull/30824/files
Please reload this pagehttps://github.com/coder/coder/pull/30824/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.