René's URL Explorer Experiment


Title: fix(coderd): allow agent auth during workspace shutdown by mafredri · Pull Request #21538 · coder/coder · GitHub

Open Graph Title: fix(coderd): allow agent auth during workspace shutdown by mafredri · Pull Request #21538 · coder/coder

X Title: fix(coderd): allow agent auth during workspace shutdown by mafredri · Pull Request #21538 · coder/coder

Description: Secure environments for developers and their agents - fix(coderd): allow agent auth during workspace shutdown by mafredri · Pull Request #21538 · coder/coder

Open Graph Description: Agents were losing authentication during workspace shutdown, causing shutdown scripts to fail. The auth query required agents to belong to the latest build, but during shutdown a stop build becomes...

X Description: Agents were losing authentication during workspace shutdown, causing shutdown scripts to fail. The auth query required agents to belong to the latest build, but during shutdown a stop build becomes...

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

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/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:a9a70162-eb97-edf4-cc4f-24679a615b5a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id94E8:31E99C:2507E63:317011A:6B019FA5
html-safe-nonce64b94900a344b6779b76880d757becc3f6a5d6addd56692b32677e01f18ad728
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NEU4OjMxRTk5QzoyNTA3RTYzOjMxNzAxMUE6NkIwMTlGQTUiLCJ2aXNpdG9yX2lkIjoiNjA1NDMxOTExOTIzNzQ4ODU0OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaccb8118cff95629c76dbea3f6b4aa249eaf97403899335dd911f1fca38b30caf3
hovercard-subject-tagpull_request:3181127455
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/coder/coder/21538/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/2c9ed72f5809245b1fe1a6857920e1a151433078214f57b4be5444b8f3dbf1b6/coder/coder/pull/21538
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2c9ed72f5809245b1fe1a6857920e1a151433078214f57b4be5444b8f3dbf1b6/coder/coder/pull/21538
og:image:altAgents were losing authentication during workspace shutdown, causing shutdown scripts to fail. The auth query required agents to belong to the latest build, but during shutdown a stop build becomes...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemafredri
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-cache
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
disable-turbofalse
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
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/coder/coder/pull/21538#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F21538
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%2F21538
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=coder%2Fcoder
Reloadhttps://github.com/coder/coder/pull/21538
Reloadhttps://github.com/coder/coder/pull/21538
Reloadhttps://github.com/coder/coder/pull/21538
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
https://github.com/coder/coder
mafredrihttps://github.com/mafredri
mainhttps://github.com/coder/coder/tree/main
mafredri/fix-workspace-agent-shutdown-authorizaitonhttps://github.com/coder/coder/tree/mafredri/fix-workspace-agent-shutdown-authorizaiton
Conversationhttps://github.com/coder/coder/pull/21538
Commits4 (4)https://github.com/coder/coder/pull/21538/commits
Checkshttps://github.com/coder/coder/pull/21538/checks
Files changedhttps://github.com/coder/coder/pull/21538/files
fix(coderd): allow agent auth during workspace shutdownhttps://github.com/coder/coder/pull/21538#top
mafredrihttps://github.com/mafredri
mainhttps://github.com/coder/coder/tree/main
mafredri/fix-workspace-agent-shutdown-authorizaitonhttps://github.com/coder/coder/tree/mafredri/fix-workspace-agent-shutdown-authorizaiton
https://github.com/mafredri
mafredrihttps://github.com/mafredri
Jan 16, 2026https://github.com/coder/coder/pull/21538#issue-3821868214
Please reload this pagehttps://github.com/coder/coder/pull/21538
coder/internal#1249https://github.com/coder/internal/issues/1249
#19467https://github.com/coder/coder/issues/19467
Please reload this pagehttps://github.com/coder/coder/pull/21538
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
mafredrihttps://github.com/mafredri
Jan 16, 2026https://github.com/coder/coder/pull/21538#event-22094901330
https://github.com/mafredri
mafredrihttps://github.com/mafredri
force-pushedhttps://github.com/coder/coder/compare/8e38e41323fc6b853fb8433bcd6df96daa469dc7..f464c6b497c3f6911f93ce91f07d4545992235ac
8e38e41https://github.com/coder/coder/commit/8e38e41323fc6b853fb8433bcd6df96daa469dc7
f464c6bhttps://github.com/coder/coder/commit/f464c6b497c3f6911f93ce91f07d4545992235ac
Compare https://github.com/coder/coder/compare/8e38e41323fc6b853fb8433bcd6df96daa469dc7..f464c6b497c3f6911f93ce91f07d4545992235ac
January 16, 2026 13:06https://github.com/coder/coder/pull/21538#event-22095440168
https://github.com/mafredri
mafredrihttps://github.com/mafredri
johnstcnhttps://github.com/johnstcn
spikecurtishttps://github.com/spikecurtis
January 16, 2026 13:19https://github.com/coder/coder/pull/21538#event-22095685364
https://github.com/mafredri
mafredrihttps://github.com/mafredri
January 16, 2026 13:19https://github.com/coder/coder/pull/21538#event-22095686009
https://github.com/mafredri
mafredrihttps://github.com/mafredri
Jan 16, 2026https://github.com/coder/coder/pull/21538#event-22096264259
https://github.com/johnstcn
johnstcnhttps://github.com/johnstcn
Jan 16, 2026 https://github.com/coder/coder/pull/21538#pullrequestreview-3670970805
View reviewed changes https://github.com/coder/coder/pull/21538/files
coderd/database/queries/workspaceagents.sqlhttps://github.com/coder/coder/pull/21538/files#diff-96d0a98547d207be2e9068311389d1be250bb5baa7a8784ebbb8951423422972
johnstcnhttps://github.com/johnstcn
Jan 16, 2026https://github.com/coder/coder/pull/21538#discussion_r2698592828
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://www.postgresql.org/docs/current/functions-conditional.html#FUNCTIONS-CASEhttps://www.postgresql.org/docs/current/functions-conditional.html#FUNCTIONS-CASE
Please reload this pagehttps://github.com/coder/coder/pull/21538
mafredrihttps://github.com/mafredri
Jan 16, 2026https://github.com/coder/coder/pull/21538#discussion_r2698604499
Please reload this pagehttps://github.com/coder/coder/pull/21538
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/21538
mafredrihttps://github.com/mafredri
Jan 16, 2026https://github.com/coder/coder/pull/21538#discussion_r2698650092
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
f5e1574 (#21538)https://github.com/coder/coder/pull/21538/commits/f5e1574fb922381fbad89fd0b876e6e1b02a894d
Please reload this pagehttps://github.com/coder/coder/pull/21538
https://github.com/johnstcn
johnstcnhttps://github.com/johnstcn
Jan 16, 2026 https://github.com/coder/coder/pull/21538#pullrequestreview-3671531543
View reviewed changes https://github.com/coder/coder/pull/21538/files
https://github.com/spikecurtis
spikecurtishttps://github.com/spikecurtis
Jan 20, 2026 https://github.com/coder/coder/pull/21538#pullrequestreview-3680566340
View reviewed changes https://github.com/coder/coder/pull/21538/files
coderd/database/queries/workspaceagents.sqlhttps://github.com/coder/coder/pull/21538/files#diff-96d0a98547d207be2e9068311389d1be250bb5baa7a8784ebbb8951423422972
spikecurtishttps://github.com/spikecurtis
Jan 20, 2026https://github.com/coder/coder/pull/21538#discussion_r2706959907
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/21538
mafredrihttps://github.com/mafredri
Jan 20, 2026https://github.com/coder/coder/pull/21538#discussion_r2708633691
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/21538
https://github.com/spikecurtis
spikecurtishttps://github.com/spikecurtis
Jan 20, 2026https://github.com/coder/coder/pull/21538#issuecomment-3771328824
Please reload this pagehttps://github.com/coder/coder/pull/21538
https://github.com/mafredri
mafredrihttps://github.com/mafredri
Jan 20, 2026https://github.com/coder/coder/pull/21538#issuecomment-3773360001
@spikecurtishttps://github.com/spikecurtis
#6175https://github.com/coder/coder/issues/6175
coder/internal#1271https://github.com/coder/internal/issues/1271
#6174https://github.com/coder/coder/issues/6174
Please reload this pagehttps://github.com/coder/coder/pull/21538
https://github.com/mafredri
mafredrihttps://github.com/mafredri
Jan 20, 2026 https://github.com/coder/coder/pull/21538#ref-issue-1582219729
Graceful shutdowns for coder agents and shutdown scripts #6175 https://github.com/coder/coder/issues/6175
mafredrihttps://github.com/mafredri
January 21, 2026 12:32https://github.com/coder/coder/pull/21538#commits-pushed-85001ba
https://github.com/mafredri
feat(coderd): allow agent auth during workspace shutdownhttps://github.com/coder/coder/pull/21538/commits/85001baed62371144d6fc0d05fd16eb82656448a
85001bahttps://github.com/coder/coder/pull/21538/commits/85001baed62371144d6fc0d05fd16eb82656448a
coder/internal#1249https://github.com/coder/internal/issues/1249
#19467https://github.com/coder/coder/issues/19467
https://github.com/mafredri
perf: use case in query to improve short-circuiting behaviorhttps://github.com/coder/coder/pull/21538/commits/b18fd50000e8e9b5d35fbdba589c1b99e8982ef5
b18fd50https://github.com/coder/coder/pull/21538/commits/b18fd50000e8e9b5d35fbdba589c1b99e8982ef5
https://github.com/mafredri
fix(coderd/database/queries): remove template version check from shut…https://github.com/coder/coder/pull/21538/commits/fb9472b67d8ed22989e023be922f0949bf5f47e7
fb9472bhttps://github.com/coder/coder/pull/21538/commits/fb9472b67d8ed22989e023be922f0949bf5f47e7
https://github.com/mafredri
mafredrihttps://github.com/mafredri
force-pushedhttps://github.com/coder/coder/compare/9b1c5a93a3f8e0ebf4c0c3b83741e980b172bf65..fb9472b67d8ed22989e023be922f0949bf5f47e7
9b1c5a9https://github.com/coder/coder/commit/9b1c5a93a3f8e0ebf4c0c3b83741e980b172bf65
fb9472bhttps://github.com/coder/coder/commit/fb9472b67d8ed22989e023be922f0949bf5f47e7
Compare https://github.com/coder/coder/compare/9b1c5a93a3f8e0ebf4c0c3b83741e980b172bf65..fb9472b67d8ed22989e023be922f0949bf5f47e7
January 21, 2026 12:32https://github.com/coder/coder/pull/21538#event-22187012140
https://github.com/mafredri
mafredrihttps://github.com/mafredri
January 21, 2026 12:36https://github.com/coder/coder/pull/21538#event-22187076742
https://github.com/mafredri
remvoe defunct testhttps://github.com/coder/coder/pull/21538/commits/ff5d2e94f679e08038387e25b8aa0f4eae308a07
ff5d2e9https://github.com/coder/coder/pull/21538/commits/ff5d2e94f679e08038387e25b8aa0f4eae308a07
https://github.com/mafredri
mafredrihttps://github.com/mafredri
97e8a5bhttps://github.com/coder/coder/commit/97e8a5b093971e26bfe24659e256fa086dd4f56c
Jan 21, 2026https://github.com/coder/coder/pull/21538#event-22188011411
Please reload this pagehttps://github.com/coder/coder/pull/21538
https://github.com/mafredri
mafredrihttps://github.com/mafredri
January 21, 2026 13:18https://github.com/coder/coder/pull/21538#event-22188011860
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Jan 21, 2026https://github.com/coder/coder/pull/21538#event-22188015399
https://github.co/hiddenchars
https://github.com/coder/coder/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F21538
https://github.com/spikecurtis
spikecurtis https://github.com/spikecurtis
https://github.com/coder/coder/pull/21538/files/f5e1574fb922381fbad89fd0b876e6e1b02a894d
https://github.com/johnstcn
johnstcn https://github.com/johnstcn
https://github.com/coder/coder/pull/21538/files/f5e1574fb922381fbad89fd0b876e6e1b02a894d
Please reload this pagehttps://github.com/coder/coder/pull/21538
https://github.com/mafredri
mafredri https://github.com/mafredri
Fix agent auth during shutdown scripts (#19467) https://github.com/coder/internal/issues/1249
Bug: Agent loses authorization before run_on_stop script completes https://github.com/coder/coder/issues/19467
Please reload this pagehttps://github.com/coder/coder/pull/21538
https://github.com/mafredri
https://github.com/spikecurtis
https://github.com/johnstcn
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.