René's URL Explorer Experiment


Title: chore: switch agent gone response from 502 to 404 by rowansmithau · Pull Request #23090 · coder/coder · GitHub

Open Graph Title: chore: switch agent gone response from 502 to 404 by rowansmithau · Pull Request #23090 · coder/coder

X Title: chore: switch agent gone response from 502 to 404 by rowansmithau · Pull Request #23090 · coder/coder

Description: When a user creates a workspace, opens the web terminal, then the workspace stops but the web terminal remains open the web terminal will retry the connection. Coder will issue a HTTP 502 Bad Gateway response when this occurs because coderd cannot connect to the workspace agent, however this is problematic as any load balancer sitting in front of Coder sees a 502 and thinks Coder is unhealthy. The main change is in https://github.com/coder/coder/pull/23090/changes#diff-bbe3b56ed3532289481a0e977867cd15048b7ca718ce676aae3f3332378eebc2R97, however the main test and downstream tests are also updated. This PR changes the response to a HTTP 404 after internal discussion. Created with the help of Mux, reviewed and tested by a human

Open Graph Description: When a user creates a workspace, opens the web terminal, then the workspace stops but the web terminal remains open the web terminal will retry the connection. Coder will issue a HTTP 502 Bad Gatew...

X Description: When a user creates a workspace, opens the web terminal, then the workspace stops but the web terminal remains open the web terminal will retry the connection. Coder will issue a HTTP 502 Bad Gatew...

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

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:911c418a-fa0a-4c7c-1636-d6481bcd8bc2
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id89E2:2E3FEE:20A4129:2954C53:6B016DFF
html-safe-nonce617f5ed2a1b7840dbcf20c254bcecd49f51f59cf1af363bd2232d55ae4544176
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OUUyOjJFM0ZFRToyMEE0MTI5OjI5NTRDNTM6NkIwMTZERkYiLCJ2aXNpdG9yX2lkIjoiMzEwNTc3NzgzOTUwNTUwMTY5NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacf74a9154c8d1fa7b66f7ed3937c1b7700e7232b243f9dc5c1971096d9782241b
hovercard-subject-tagpull_request:3401936260
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/23090/files
twitter:imagehttps://avatars.githubusercontent.com/u/27829641?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/27829641?s=400&v=4
og:image:altWhen a user creates a workspace, opens the web terminal, then the workspace stops but the web terminal remains open the web terminal will retry the connection. Coder will issue a HTTP 502 Bad Gatew...
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/23090/changes#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F23090%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%2F23090%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/23090/changes
Reloadhttps://github.com/coder/coder/pull/23090/changes
Reloadhttps://github.com/coder/coder/pull/23090/changes
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
spikecurtishttps://github.com/spikecurtis
mainhttps://github.com/coder/coder/tree/main
rowan/fix/workspace_agent_502https://github.com/coder/coder/tree/rowan/fix/workspace_agent_502
Conversation 3 https://github.com/coder/coder/pull/23090
Commits 4 https://github.com/coder/coder/pull/23090/commits
Checks 30 https://github.com/coder/coder/pull/23090/checks
Files changed https://github.com/coder/coder/pull/23090/files
Please reload this pagehttps://github.com/coder/coder/pull/23090/changes
chore: switch agent gone response from 502 to 404 https://github.com/coder/coder/pull/23090/changes#top
Show all changes 4 commits https://github.com/coder/coder/pull/23090/files
18d4417 ENG-666 switch 502 to 410 for workspace agent stopped rowansmithau Mar 15, 2026 https://github.com/coder/coder/pull/23090/commits/18d4417ae30ca4550a5876726ed1b25e91e4a19c
f3d5e5d switch from 410 to 404 rowansmithau Mar 23, 2026 https://github.com/coder/coder/pull/23090/commits/f3d5e5d583c7b5ce83ae12886a3424f80da88a95
2ed91e1 Merge remote-tracking branch 'origin/main' into rowan/fix/workspace_a… rowansmithau Mar 23, 2026 https://github.com/coder/coder/pull/23090/commits/2ed91e12393f7038d481418141994d9f6775071f
e02cf7e test updates rowansmithau Mar 24, 2026 https://github.com/coder/coder/pull/23090/commits/e02cf7e2a6acb634d226a8a3bef05833d2396170
Clear filters https://github.com/coder/coder/pull/23090/files
Please reload this pagehttps://github.com/coder/coder/pull/23090/changes
Please reload this pagehttps://github.com/coder/coder/pull/23090/changes
coderd_test.go https://github.com/coder/coder/pull/23090/changes#diff-6b61bc19528a39433f1baa55e71df772e7c50dd682424e23e2cad337f3886941
db_test.go https://github.com/coder/coder/pull/23090/changes#diff-5c6f2a9b72508d18be45791a907f72e86b7f6faed99c8a54ece3b6c0698143b7
errors.go https://github.com/coder/coder/pull/23090/changes#diff-bbe3b56ed3532289481a0e977867cd15048b7ca718ce676aae3f3332378eebc2
coderd/coderd_test.gohttps://github.com/coder/coder/pull/23090/changes#diff-6b61bc19528a39433f1baa55e71df772e7c50dd682424e23e2cad337f3886941
View file https://github.com/coder/coder/blob/e02cf7e2a6acb634d226a8a3bef05833d2396170/coderd/coderd_test.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/23090/{{ revealButtonHref }}
https://github.com/coder/coder/pull/23090/changes#diff-6b61bc19528a39433f1baa55e71df772e7c50dd682424e23e2cad337f3886941
https://github.com/coder/coder/pull/23090/changes#diff-6b61bc19528a39433f1baa55e71df772e7c50dd682424e23e2cad337f3886941
coderd/workspaceapps/db_test.gohttps://github.com/coder/coder/pull/23090/changes#diff-5c6f2a9b72508d18be45791a907f72e86b7f6faed99c8a54ece3b6c0698143b7
View file https://github.com/coder/coder/blob/e02cf7e2a6acb634d226a8a3bef05833d2396170/coderd/workspaceapps/db_test.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/23090/{{ revealButtonHref }}
https://github.com/coder/coder/pull/23090/changes#diff-5c6f2a9b72508d18be45791a907f72e86b7f6faed99c8a54ece3b6c0698143b7
https://github.com/coder/coder/pull/23090/changes#diff-5c6f2a9b72508d18be45791a907f72e86b7f6faed99c8a54ece3b6c0698143b7
coderd/workspaceapps/errors.gohttps://github.com/coder/coder/pull/23090/changes#diff-bbe3b56ed3532289481a0e977867cd15048b7ca718ce676aae3f3332378eebc2
View file https://github.com/coder/coder/blob/e02cf7e2a6acb634d226a8a3bef05833d2396170/coderd/workspaceapps/errors.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/coder/coder/pull/23090/{{ revealButtonHref }}
https://github.com/coder/coder/pull/23090/changes#diff-bbe3b56ed3532289481a0e977867cd15048b7ca718ce676aae3f3332378eebc2
https://github.com/coder/coder/pull/23090/changes#diff-bbe3b56ed3532289481a0e977867cd15048b7ca718ce676aae3f3332378eebc2
https://github.com/coder/coder/pull/23090/changes#diff-bbe3b56ed3532289481a0e977867cd15048b7ca718ce676aae3f3332378eebc2
Please reload this pagehttps://github.com/coder/coder/pull/23090/changes
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.