René's URL Explorer Experiment


Title: fix(aibridge/intercept): close upstream response bodies in Responses interceptors by ibetitsmike · Pull Request #30287 · coder/coder · GitHub

Open Graph Title: fix(aibridge/intercept): close upstream response bodies in Responses interceptors by ibetitsmike · Pull Request #30287 · coder/coder

X Title: fix(aibridge/intercept): close upstream response bodies in Responses interceptors by ibetitsmike · Pull Request #30287 · coder/coder

Description: Secure environments for developers and their agents - fix(aibridge/intercept): close upstream response bodies in Responses interceptors by ibetitsmike · Pull Request #30287 · coder/coder

Open Graph Description: responseCopier.copyMiddleware hands the OpenAI SDK an io.NopCloser over a TeeReader of the upstream body, so readAll can drain the body after the SDK closes its view. Nothing closed the real body, ...

X Description: responseCopier.copyMiddleware hands the OpenAI SDK an io.NopCloser over a TeeReader of the upstream body, so readAll can drain the body after the SDK closes its view. Nothing closed the real body, ...

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

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:860cdd64-5976-ff6c-083c-9b331c47c21c
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idABEC:3DD488:129149C:178D1E5:6B0121B4
html-safe-nonce6cee7b4f2bb14665d0575ed0317192554041512b50b4cc7fe47f0a3395f263a0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQkVDOjNERDQ4ODoxMjkxNDlDOjE3OEQxRTU6NkIwMTIxQjQiLCJ2aXNpdG9yX2lkIjoiNTEyNTEwODczNDM2Mzc3MTMxNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac7d900fd9f1b4c407e53651a6a8faa106f8083ec365adfd5d1158c2bfe83b188b
hovercard-subject-tagpull_request:4717718204
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/30287/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/997597657e3d1f119823ccda0af7c66c8380bcc5b396dde2ba99e9bc3a455d51/coder/coder/pull/30287
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/997597657e3d1f119823ccda0af7c66c8380bcc5b396dde2ba99e9bc3a455d51/coder/coder/pull/30287
og:image:altresponseCopier.copyMiddleware hands the OpenAI SDK an io.NopCloser over a TeeReader of the upstream body, so readAll can drain the body after the SDK closes its view. Nothing closed the real body, ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameibetitsmike
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/30287#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F30287
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%2F30287
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/30287
Reloadhttps://github.com/coder/coder/pull/30287
Reloadhttps://github.com/coder/coder/pull/30287
coderhttps://github.com/coder
coderhttps://github.com/coder/coder
Codehttps://github.com/coder/coder
Issues320 (320)https://github.com/coder/coder/issues
Pull requests468 (468)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
ibetitsmikehttps://github.com/ibetitsmike
mike/golangci-lint-v2.14https://github.com/coder/coder/tree/mike/golangci-lint-v2.14
mike/aibridge-close-upstream-bodyhttps://github.com/coder/coder/tree/mike/aibridge-close-upstream-body
Conversationhttps://github.com/coder/coder/pull/30287
Commits3 (3)https://github.com/coder/coder/pull/30287/commits
Checkshttps://github.com/coder/coder/pull/30287/checks
Files changedhttps://github.com/coder/coder/pull/30287/files
fix(aibridge/intercept): close upstream response bodies in Responses interceptorshttps://github.com/coder/coder/pull/30287#top
ibetitsmikehttps://github.com/ibetitsmike
mike/golangci-lint-v2.14https://github.com/coder/coder/tree/mike/golangci-lint-v2.14
mike/aibridge-close-upstream-bodyhttps://github.com/coder/coder/tree/mike/aibridge-close-upstream-body
https://github.com/ibetitsmike
ibetitsmikehttps://github.com/ibetitsmike
Oct 2, 2026https://github.com/coder/coder/pull/30287#issue-5678938979
Please reload this pagehttps://github.com/coder/coder/pull/30287
golang/go#81411https://github.com/golang/go/issues/81411
chore: bump Go to 1.27.1 #30288https://github.com/coder/coder/pull/30288
e1b46fahttps://github.com/coder/coder/commit/e1b46fadeaa709b50a62afb21b195a1db1e7e9cc
35a4171https://github.com/coder/coder/commit/35a417163da95b25f9d780e67ab4d0521cfe3a03
35a4171https://github.com/coder/coder/commit/35a417163da95b25f9d780e67ab4d0521cfe3a03
chore: bump Go to 1.27.1 #30288https://github.com/coder/coder/pull/30288
5aaeb6fhttps://github.com/coder/coder/commit/5aaeb6f6d5d209c5ae3690fc2f2e4960c9ab3cc5
Please reload this pagehttps://github.com/coder/coder/pull/30287
https://github.com/ibetitsmike
fix(aibridge/intercept/responses): close upstream response bodieshttps://github.com/coder/coder/pull/30287/commits/33bf54e203097b7cb5e08efb5ce7cd980edae99d
33bf54ehttps://github.com/coder/coder/pull/30287/commits/33bf54e203097b7cb5e08efb5ce7cd980edae99d
https://github.com/ibetitsmike
ibetitsmikehttps://github.com/ibetitsmike
stack #30289https://github.com/coder/coder/stack/30289
October 2, 2026 14:36https://github.com/coder/coder/pull/30287#event-32341805002
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
ibetitsmikehttps://github.com/ibetitsmike
Oct 2, 2026https://github.com/coder/coder/pull/30287#event-32341816755
https://github.com/ibetitsmike
ibetitsmikehttps://github.com/ibetitsmike
Oct 2, 2026https://github.com/coder/coder/pull/30287#issuecomment-5956357263
@codexhttps://github.com/codex
@ibetitsmikehttps://github.com/ibetitsmike
Please reload this pagehttps://github.com/coder/coder/pull/30287
https://github.com/apps/chatgpt-codex-connector
chatgpt-codex-connectorhttps://github.com/apps/chatgpt-codex-connector
Oct 2, 2026https://github.com/coder/coder/pull/30287#issuecomment-5956363191
Please reload this pagehttps://github.com/coder/coder/pull/30287
Your team has set up Codex to review pull requests in this repohttps://chatgpt.com/codex/cloud/settings/general
@codexhttps://github.com/codex
@codexhttps://github.com/codex
Please reload this pagehttps://github.com/coder/coder/pull/30287
https://github.com/apps/chatgpt-codex-connector
chatgpt-codex-connectorhttps://github.com/apps/chatgpt-codex-connector
Oct 2, 2026 https://github.com/coder/coder/pull/30287#pullrequestreview-5394083753
View reviewed changes https://github.com/coder/coder/pull/30287/files/33bf54e203097b7cb5e08efb5ce7cd980edae99d
chatgpt-codex-connectorhttps://github.com/apps/chatgpt-codex-connector
https://github.com/coder/coder/pull/30287#pullrequestreview-5394083753
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Your team has set up Codex to review pull requests in this repohttps://chatgpt.com/codex/cloud/settings/general
@codexhttps://github.com/codex
@codexhttps://github.com/codex
Please reload this pagehttps://github.com/coder/coder/pull/30287
aibridge/intercept/responses/base.gohttps://github.com/coder/coder/pull/30287/files/33bf54e203097b7cb5e08efb5ce7cd980edae99d#diff-b664ea6a4e0b59f5efa182730fcc9a8e4b510d5e453c4dbdd156d66a0d0fcaaf
Please reload this pagehttps://github.com/coder/coder/pull/30287
https://github.com/ibetitsmike
fix(aibridge/intercept/responses): release the previous response befo…https://github.com/coder/coder/pull/30287/commits/e1b46fadeaa709b50a62afb21b195a1db1e7e9cc
e1b46fahttps://github.com/coder/coder/pull/30287/commits/e1b46fadeaa709b50a62afb21b195a1db1e7e9cc
https://github.com/ibetitsmike
ibetitsmikehttps://github.com/ibetitsmike
Oct 2, 2026https://github.com/coder/coder/pull/30287#issuecomment-5956720907
@codexhttps://github.com/codex
@ibetitsmikehttps://github.com/ibetitsmike
Please reload this pagehttps://github.com/coder/coder/pull/30287
https://github.com/apps/chatgpt-codex-connector
chatgpt-codex-connectorhttps://github.com/apps/chatgpt-codex-connector
Oct 2, 2026 https://github.com/coder/coder/pull/30287#pullrequestreview-5394282304
View reviewed changes https://github.com/coder/coder/pull/30287/files/e1b46fadeaa709b50a62afb21b195a1db1e7e9cc
chatgpt-codex-connectorhttps://github.com/apps/chatgpt-codex-connector
https://github.com/coder/coder/pull/30287#pullrequestreview-5394282304
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Your team has set up Codex to review pull requests in this repohttps://chatgpt.com/codex/cloud/settings/general
@codexhttps://github.com/codex
@codexhttps://github.com/codex
Please reload this pagehttps://github.com/coder/coder/pull/30287
aibridge/intercept/responses/base.gohttps://github.com/coder/coder/pull/30287/files/e1b46fadeaa709b50a62afb21b195a1db1e7e9cc#diff-b664ea6a4e0b59f5efa182730fcc9a8e4b510d5e453c4dbdd156d66a0d0fcaaf
Please reload this pagehttps://github.com/coder/coder/pull/30287
https://github.com/ibetitsmike
fix(aibridge/intercept): forward only the final upstream attempthttps://github.com/coder/coder/pull/30287/commits/35a417163da95b25f9d780e67ab4d0521cfe3a03
35a4171https://github.com/coder/coder/pull/30287/commits/35a417163da95b25f9d780e67ab4d0521cfe3a03
https://github.com/ibetitsmike
ibetitsmikehttps://github.com/ibetitsmike
Oct 2, 2026https://github.com/coder/coder/pull/30287#issuecomment-5957076853
@codexhttps://github.com/codex
@ibetitsmikehttps://github.com/ibetitsmike
Please reload this pagehttps://github.com/coder/coder/pull/30287
https://github.com/apps/chatgpt-codex-connector
chatgpt-codex-connectorhttps://github.com/apps/chatgpt-codex-connector
Oct 2, 2026https://github.com/coder/coder/pull/30287#issuecomment-5957159658
Your team has set up Codex to review pull requests in this repohttps://chatgpt.com/codex/cloud/settings/general
@codexhttps://github.com/codex
@codexhttps://github.com/codex
Please reload this pagehttps://github.com/coder/coder/pull/30287
https://github.com/ibetitsmike
ibetitsmikehttps://github.com/ibetitsmike
Oct 2, 2026https://github.com/coder/coder/pull/30287#event-32351154387
https://github.com/ibetitsmike
ibetitsmikehttps://github.com/ibetitsmike
Oct 2, 2026 https://github.com/coder/coder/pull/30287#ref-pullrequest-5678940661
chore: bump Go to 1.27.1 #30288 https://github.com/coder/coder/pull/30288
https://github.com/apps/linear-code
linear-codehttps://github.com/apps/linear-code
Oct 8, 2026https://github.com/coder/coder/pull/30287#issuecomment-6070821398
CODAGT-1116https://linear.app/codercom/issue/CODAGT-1116
Please reload this pagehttps://github.com/coder/coder/pull/30287
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
stale https://github.com/coder/coder/issues?q=state%3Aopen%20label%3Astale
Nov 11, 2026https://github.com/coder/coder/pull/30287#event-35744053071
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Nov 15, 2026https://github.com/coder/coder/pull/30287#event-36159934091
https://github.co/hiddenchars
https://github.com/coder/coder/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F30287
https://github.com/apps/chatgpt-codex-connector
chatgpt-codex-connector[bot] https://github.com/apps/chatgpt-codex-connector
https://github.com/coder/coder/pull/30287/files/e1b46fadeaa709b50a62afb21b195a1db1e7e9cc
Please reload this pagehttps://github.com/coder/coder/pull/30287
https://github.com/ibetitsmike
ibetitsmike https://github.com/ibetitsmike
stale https://github.com/coder/coder/issues?q=state%3Aopen%20label%3Astale
Please reload this pagehttps://github.com/coder/coder/pull/30287
https://github.com/ibetitsmike
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.