René's URL Explorer Experiment


Title: refactor(codersdk): use shared error helpers in chat endpoints by dylanhuff-at-coder · Pull Request #27858 · coder/coder · GitHub

Open Graph Title: refactor(codersdk): use shared error helpers in chat endpoints by dylanhuff-at-coder · Pull Request #27858 · coder/coder

X Title: refactor(codersdk): use shared error helpers in chat endpoints by dylanhuff-at-coder · Pull Request #27858 · coder/coder

Description: Secure environments for developers and their agents - refactor(codersdk): use shared error helpers in chat endpoints by dylanhuff-at-coder · Pull Request #27858 · coder/coder

Open Graph Description: Migrate chat endpoint response decoding to ReadBodyAsJSON and consolidate ReadBodyAsError construction through newResponseError, so empty-body and non-JSON errors consistently include the request m...

X Description: Migrate chat endpoint response decoding to ReadBodyAsJSON and consolidate ReadBodyAsError construction through newResponseError, so empty-body and non-JSON errors consistently include the request m...

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

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:66081ced-1ce3-68c2-814c-ce641d33d66e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id827A:4E3C:1A5E394:22DA5B4:6B014BD6
html-safe-nonced44b10b25f64b0ca8a444ff94f5e978eaa422f9e65fe58168fa27fe45f0caf34
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MjdBOjRFM0M6MUE1RTM5NDoyMkRBNUI0OjZCMDE0QkQ2IiwidmlzaXRvcl9pZCI6IjE1Nzc1OTk0OTc0NDQzNDY4MzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac16bbb1174289e3bf1b2b552b2af52beb3f2ea08789084a17f94a7869ea60c969
hovercard-subject-tagpull_request:4205643110
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/27858/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/0aa0f8c3d75643a17d00f452d64f44b7b447b7d686c118d5e043b41d02bdcbc7/coder/coder/pull/27858
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0aa0f8c3d75643a17d00f452d64f44b7b447b7d686c118d5e043b41d02bdcbc7/coder/coder/pull/27858
og:image:altMigrate chat endpoint response decoding to ReadBodyAsJSON and consolidate ReadBodyAsError construction through newResponseError, so empty-body and non-JSON errors consistently include the request m...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedylanhuff-at-coder
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/27858#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F27858
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%2F27858
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/27858
Reloadhttps://github.com/coder/coder/pull/27858
Reloadhttps://github.com/coder/coder/pull/27858
coderhttps://github.com/coder
coderhttps://github.com/coder/coder
Codehttps://github.com/coder/coder
Issues320 (320)https://github.com/coder/coder/issues
Pull requests469 (469)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
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
mainhttps://github.com/coder/coder/tree/main
dylan/plat-378-chats-read-body-as-jsonhttps://github.com/coder/coder/tree/dylan/plat-378-chats-read-body-as-json
Conversationhttps://github.com/coder/coder/pull/27858
Commits2 (2)https://github.com/coder/coder/pull/27858/commits
Checkshttps://github.com/coder/coder/pull/27858/checks
Files changedhttps://github.com/coder/coder/pull/27858/files
refactor(codersdk): use shared error helpers in chat endpointshttps://github.com/coder/coder/pull/27858#top
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
mainhttps://github.com/coder/coder/tree/main
dylan/plat-378-chats-read-body-as-jsonhttps://github.com/coder/coder/tree/dylan/plat-378-chats-read-body-as-json
https://github.com/dylanhuff-at-coder
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
Aug 4, 2026https://github.com/coder/coder/pull/27858#issue-5063143645
Please reload this pagehttps://github.com/coder/coder/pull/27858
#27857https://github.com/coder/coder/pull/27857
#27859https://github.com/coder/coder/pull/27859
#27044https://github.com/coder/coder/issues/27044
@dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
Please reload this pagehttps://github.com/coder/coder/pull/27858
https://github.com/apps/linear-code
linear-codehttps://github.com/apps/linear-code
Aug 4, 2026https://github.com/coder/coder/pull/27858#issuecomment-5182396393
PLAT-378https://linear.app/codercom/issue/PLAT-378
Please reload this pagehttps://github.com/coder/coder/pull/27858
https://github.com/dylanhuff-at-coder
https://github.com/apps/graphite-app
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
Aug 4, 2026https://github.com/coder/coder/pull/27858#issuecomment-5182397881
Please reload this pagehttps://github.com/coder/coder/pull/27858
chore: forbid direct response body JSON decode in codersdk #27859https://github.com/coder/coder/pull/27859
https://app.graphite.com/github/pr/coder/coder/27859?utm_source=stack-comment-icon
refactor(codersdk): use shared error helpers in chat endpoints #27858https://github.com/coder/coder/pull/27858
https://app.graphite.com/github/pr/coder/coder/27858?utm_source=stack-comment-icon
(View in Graphite)https://app.graphite.com/github/pr/coder/coder/27858?utm_source=stack-comment-view-in-graphite
refactor(codersdk): use ReadBodyAsJSON in typed endpoints #27857https://github.com/coder/coder/pull/27857
https://app.graphite.com/github/pr/coder/coder/27857?utm_source=stack-comment-icon
fix: add codersdk JSON response decoder for typed API endpoints #27804https://github.com/coder/coder/pull/27804
https://app.graphite.com/github/pr/coder/coder/27804?utm_source=stack-comment-icon
Graphitehttps://graphite.dev?utm-source=stack-comment
stackinghttps://stacking.dev/?utm_source=stack-comment
Please reload this pagehttps://github.com/coder/coder/pull/27858
refactor(codersdk): use ReadBodyAsJSON in typed endpoints #27857 https://github.com/coder/coder/pull/27857
fix: add codersdk JSON response decoder for typed API endpoints #27804 https://github.com/coder/coder/pull/27804
chore: forbid direct response body JSON decode in codersdk #27859 https://github.com/coder/coder/pull/27859
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
Aug 4, 2026https://github.com/coder/coder/pull/27858#event-28964479393
https://github.com/dylanhuff-at-coder
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
force-pushedhttps://github.com/coder/coder/compare/c50480e007ad224d1cf25cad12b0c9da19b70958..8708970f98541e5575410ac6b3e0577fb9eda55c
c50480ehttps://github.com/coder/coder/commit/c50480e007ad224d1cf25cad12b0c9da19b70958
8708970https://github.com/coder/coder/commit/8708970f98541e5575410ac6b3e0577fb9eda55c
Compare https://github.com/coder/coder/compare/c50480e007ad224d1cf25cad12b0c9da19b70958..8708970f98541e5575410ac6b3e0577fb9eda55c
August 5, 2026 17:52https://github.com/coder/coder/pull/27858#event-29025294567
https://github.com/dylanhuff-at-coder
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
force-pushedhttps://github.com/coder/coder/compare/a08a60d0bafd52a2bdc236a5089d55a47359c2c5..0f4d0e0f6cbcd3b30c9a666734f7b453fd1ee0e1
a08a60dhttps://github.com/coder/coder/commit/a08a60d0bafd52a2bdc236a5089d55a47359c2c5
0f4d0e0https://github.com/coder/coder/commit/0f4d0e0f6cbcd3b30c9a666734f7b453fd1ee0e1
Compare https://github.com/coder/coder/compare/a08a60d0bafd52a2bdc236a5089d55a47359c2c5..0f4d0e0f6cbcd3b30c9a666734f7b453fd1ee0e1
August 5, 2026 17:52https://github.com/coder/coder/pull/27858#event-29025295248
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
Aug 5, 2026 https://github.com/coder/coder/pull/27858#ref-commit-76ae643
https://github.com/dylanhuff-at-coder
refactor(codersdk): use ReadBodyAsJSON in typed endpoints (https://github.com/coder/coder/commit/76ae64391a78adf9077e04fcd1b79206ffb5dd00
#27857https://github.com/coder/coder/pull/27857
)https://github.com/coder/coder/commit/76ae64391a78adf9077e04fcd1b79206ffb5dd00
76ae643https://github.com/coder/coder/commit/76ae64391a78adf9077e04fcd1b79206ffb5dd00
#27804https://github.com/coder/coder/pull/27804
#27858https://github.com/coder/coder/pull/27858
#27859https://github.com/coder/coder/pull/27859
#27044https://github.com/coder/coder/issues/27044
@dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
August 5, 2026 20:22https://github.com/coder/coder/pull/27858#event-29032154368
https://github.com/dylanhuff-at-coder
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
August 5, 2026 20:22https://github.com/coder/coder/pull/27858#event-29032160446
https://github.com/dylanhuff-at-coder
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
ibetitsmikehttps://github.com/ibetitsmike
johnstcnhttps://github.com/johnstcn
code ownershttps://github.com/coder/coder/blob/76ae64391a78adf9077e04fcd1b79206ffb5dd00/CODEOWNERS#L41
August 5, 2026 20:22https://github.com/coder/coder/pull/27858#event-29032160800
https://github.com/dylanhuff-at-coder
refactor(codersdk): use shared error helpers in chat endpointshttps://github.com/coder/coder/pull/27858/commits/c8446386d1019b181d7af4f610291f39b7ab8d63
c844638https://github.com/coder/coder/pull/27858/commits/c8446386d1019b181d7af4f610291f39b7ab8d63
https://github.com/dylanhuff-at-coder
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
force-pushedhttps://github.com/coder/coder/compare/8708970f98541e5575410ac6b3e0577fb9eda55c..c8446386d1019b181d7af4f610291f39b7ab8d63
8708970https://github.com/coder/coder/commit/8708970f98541e5575410ac6b3e0577fb9eda55c
c844638https://github.com/coder/coder/commit/c8446386d1019b181d7af4f610291f39b7ab8d63
Compare https://github.com/coder/coder/compare/8708970f98541e5575410ac6b3e0577fb9eda55c..c8446386d1019b181d7af4f610291f39b7ab8d63
August 5, 2026 20:31https://github.com/coder/coder/pull/27858#event-29032538553
https://github.com/dylanhuff-at-coder
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
August 5, 2026 20:50https://github.com/coder/coder/pull/27858#event-29033386737
https://github.com/dylanhuff-at-coder
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
August 5, 2026 20:54https://github.com/coder/coder/pull/27858#event-29033541684
https://github.com/dylanhuff-at-coder
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
August 5, 2026 21:02https://github.com/coder/coder/pull/27858#event-29033864376
https://github.com/dylanhuff-at-coder
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
August 5, 2026 21:12https://github.com/coder/coder/pull/27858#event-29034276759
https://github.com/dylanhuff-at-coder
refactor(codersdk): drop dead nil guard and test empty-body error fieldshttps://github.com/coder/coder/pull/27858/commits/56e043bb785172a5febcb5cd0a3222739f7b5c18
56e043bhttps://github.com/coder/coder/pull/27858/commits/56e043bb785172a5febcb5cd0a3222739f7b5c18
https://github.com/dylanhuff-at-coder
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
BobbyHohttps://github.com/BobbyHo
August 5, 2026 21:32https://github.com/coder/coder/pull/27858#event-29035106806
https://github.com/BobbyHo
BobbyHohttps://github.com/BobbyHo
Aug 5, 2026 https://github.com/coder/coder/pull/27858#pullrequestreview-4868995658
View reviewed changes https://github.com/coder/coder/pull/27858/files/56e043bb785172a5febcb5cd0a3222739f7b5c18
BobbyHohttps://github.com/BobbyHo
https://github.com/coder/coder/pull/27858#pullrequestreview-4868995658
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/27858
https://github.com/dylanhuff-at-coder
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
ed10064https://github.com/coder/coder/commit/ed10064748101088290170faa3bf8115e4c38c84
Aug 5, 2026https://github.com/coder/coder/pull/27858#event-29035485552
Please reload this pagehttps://github.com/coder/coder/pull/27858
https://github.com/dylanhuff-at-coder
dylanhuff-at-coderhttps://github.com/dylanhuff-at-coder
August 5, 2026 21:41https://github.com/coder/coder/pull/27858#event-29035487189
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Aug 5, 2026https://github.com/coder/coder/pull/27858#event-29035497179
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%2F27858
https://github.com/BobbyHo
BobbyHo https://github.com/BobbyHo
https://github.com/coder/coder/pull/27858/files/56e043bb785172a5febcb5cd0a3222739f7b5c18
https://github.com/ibetitsmike
ibetitsmike https://github.com/ibetitsmike
https://github.com/johnstcn
johnstcn https://github.com/johnstcn
Please reload this pagehttps://github.com/coder/coder/pull/27858
https://github.com/dylanhuff-at-coder
dylanhuff-at-coder https://github.com/dylanhuff-at-coder
Please reload this pagehttps://github.com/coder/coder/pull/27858
https://github.com/dylanhuff-at-coder
https://github.com/BobbyHo
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.