René's URL Explorer Experiment


Title: perf: reuse workspace agent API connections in chatd by mafredri · Pull Request #30053 · coder/coder · GitHub

Open Graph Title: perf: reuse workspace agent API connections in chatd by mafredri · Pull Request #30053 · coder/coder

X Title: perf: reuse workspace agent API connections in chatd by mafredri · Pull Request #30053 · coder/coder

Description: Secure environments for developers and their agents - perf: reuse workspace agent API connections in chatd by mafredri · Pull Request #30053 · coder/coder

Open Graph Description: Every workspace agent API request from coderd opens a new TCP connection over the tailnet: a reachability check, a handshake and the request, 3 round trips. A chatd read_file is 1 request and execu...

X Description: Every workspace agent API request from coderd opens a new TCP connection over the tailnet: a reachability check, a handshake and the request, 3 round trips. A chatd read_file is 1 request and execu...

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

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:01685747-63be-164c-bec4-bacefe1fa4f9
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8100:DB09F:1A3D917:2177C5C:6B0152C3
html-safe-noncec2a8f7d7e420551e18b0bdf4d182f3db97c90381b6a6ed5aa8f9fd7f4e37f41b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MTAwOkRCMDlGOjFBM0Q5MTc6MjE3N0M1Qzo2QjAxNTJDMyIsInZpc2l0b3JfaWQiOiI2MDYzMjk2NTk3MzE4NTIxNTM5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac332d433ee40d2c38e62658f50221138d172c03fd089616758f52bf60050f691f
hovercard-subject-tagpull_request:4667698136
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/30053/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/a0d5e3b13ec46dbfc276f18743cfe574cb8999282a88bc5706a56eae6560109a/coder/coder/pull/30053
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a0d5e3b13ec46dbfc276f18743cfe574cb8999282a88bc5706a56eae6560109a/coder/coder/pull/30053
og:image:altEvery workspace agent API request from coderd opens a new TCP connection over the tailnet: a reachability check, a handshake and the request, 3 round trips. A chatd read_file is 1 request and execu...
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/30053#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F30053
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%2F30053
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/30053
Reloadhttps://github.com/coder/coder/pull/30053
Reloadhttps://github.com/coder/coder/pull/30053
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
agent-api-conn-poolhttps://github.com/coder/coder/tree/agent-api-conn-pool
Conversationhttps://github.com/coder/coder/pull/30053
Commits12 (12)https://github.com/coder/coder/pull/30053/commits
Checkshttps://github.com/coder/coder/pull/30053/checks
Files changedhttps://github.com/coder/coder/pull/30053/files
perf: reuse workspace agent API connections in chatdhttps://github.com/coder/coder/pull/30053#top
mafredrihttps://github.com/mafredri
mainhttps://github.com/coder/coder/tree/main
agent-api-conn-poolhttps://github.com/coder/coder/tree/agent-api-conn-pool
https://github.com/mafredri
mafredrihttps://github.com/mafredri
Sep 28, 2026https://github.com/coder/coder/pull/30053#issue-5619323007
Please reload this pagehttps://github.com/coder/coder/pull/30053
feat: add ServerTailnet logs and metrics for unreachable agents #30133https://github.com/coder/coder/pull/30133
#30051https://github.com/coder/coder/pull/30051
#30051https://github.com/coder/coder/pull/30051
#30051https://github.com/coder/coder/pull/30051
#30051https://github.com/coder/coder/pull/30051
Please reload this pagehttps://github.com/coder/coder/pull/30053
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
mafredrihttps://github.com/mafredri
Sep 28, 2026https://github.com/coder/coder/pull/30053#event-32018201410
https://github.com/mafredri
mafredrihttps://github.com/mafredri
Sep 30, 2026 https://github.com/coder/coder/pull/30053#ref-pullrequest-5618482867
perf(coderd/x/chatd): reuse agent connection across steps #30051 https://github.com/coder/coder/pull/30051
https://github.com/mafredri
mafredrihttps://github.com/mafredri
force-pushedhttps://github.com/coder/coder/compare/9f1f2b5479e41236b53b5c1b08f2390d124730d8..c9caa57224de5de80027e300ca19140b0ca16434
9f1f2b5https://github.com/coder/coder/commit/9f1f2b5479e41236b53b5c1b08f2390d124730d8
c9caa57https://github.com/coder/coder/commit/c9caa57224de5de80027e300ca19140b0ca16434
Compare https://github.com/coder/coder/compare/9f1f2b5479e41236b53b5c1b08f2390d124730d8..c9caa57224de5de80027e300ca19140b0ca16434
September 30, 2026 08:52https://github.com/coder/coder/pull/30053#event-32149934852
https://github.com/mafredri
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F30053
https://github.com/apps/chatgpt-codex-connector
chatgpt-codex-connectorhttps://github.com/apps/chatgpt-codex-connector
Sep 30, 2026https://github.com/coder/coder/pull/30053#issuecomment-5907980328
Please reload this pagehttps://github.com/coder/coder/pull/30053
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/30053
https://github.com/apps/chatgpt-codex-connector
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F30053
https://github.com/mafredri
mafredrihttps://github.com/mafredri
force-pushedhttps://github.com/coder/coder/compare/0db9f773f77dbba996dd115177210b71cfcf7b9a..fad9c055ab00d1abe297adfd6bea1e5af051b0d8
0db9f77https://github.com/coder/coder/commit/0db9f773f77dbba996dd115177210b71cfcf7b9a
fad9c05https://github.com/coder/coder/commit/fad9c055ab00d1abe297adfd6bea1e5af051b0d8
Compare https://github.com/coder/coder/compare/0db9f773f77dbba996dd115177210b71cfcf7b9a..fad9c055ab00d1abe297adfd6bea1e5af051b0d8
September 30, 2026 13:10https://github.com/coder/coder/pull/30053#event-32167567517
https://github.com/apps/linear-code
linear-codehttps://github.com/apps/linear-code
Sep 30, 2026https://github.com/coder/coder/pull/30053#issuecomment-5914578742
Please reload this pagehttps://github.com/coder/coder/pull/30053
CODAGT-1261https://linear.app/codercom/issue/CODAGT-1261
CODAGT-1625https://linear.app/codercom/issue/CODAGT-1625
Please reload this pagehttps://github.com/coder/coder/pull/30053
https://github.com/mafredri
mafredrihttps://github.com/mafredri
force-pushedhttps://github.com/coder/coder/compare/fad9c055ab00d1abe297adfd6bea1e5af051b0d8..a07db2007ea88432fc03afb96b193d06e280112b
fad9c05https://github.com/coder/coder/commit/fad9c055ab00d1abe297adfd6bea1e5af051b0d8
a07db20https://github.com/coder/coder/commit/a07db2007ea88432fc03afb96b193d06e280112b
Compare https://github.com/coder/coder/compare/fad9c055ab00d1abe297adfd6bea1e5af051b0d8..a07db2007ea88432fc03afb96b193d06e280112b
September 30, 2026 16:39https://github.com/coder/coder/pull/30053#event-32183473956
https://github.com/mafredri
mafredrihttps://github.com/mafredri
Sep 30, 2026https://github.com/coder/coder/pull/30053#event-32183524499
https://github.com/mafredri
mafredrihttps://github.com/mafredri
force-pushedhttps://github.com/coder/coder/compare/caa389e43e9923250e05fda1e7f1c80d7ce7b3f4..c78e68aae36ed70fd5d0a410d7f40e3cfd27ff68
caa389ehttps://github.com/coder/coder/commit/caa389e43e9923250e05fda1e7f1c80d7ce7b3f4
c78e68ahttps://github.com/coder/coder/commit/c78e68aae36ed70fd5d0a410d7f40e3cfd27ff68
Compare https://github.com/coder/coder/compare/caa389e43e9923250e05fda1e7f1c80d7ce7b3f4..c78e68aae36ed70fd5d0a410d7f40e3cfd27ff68
October 7, 2026 13:16https://github.com/coder/coder/pull/30053#event-32692485121
https://github.com/mafredri
mafredrihttps://github.com/mafredri
force-pushedhttps://github.com/coder/coder/compare/415b42837344e604db7da09c5bcada65dbb9a367..c90d8bcb3a652cb32a455baf21ae9d2f55a49618
415b428https://github.com/coder/coder/commit/415b42837344e604db7da09c5bcada65dbb9a367
c90d8bchttps://github.com/coder/coder/commit/c90d8bcb3a652cb32a455baf21ae9d2f55a49618
Compare https://github.com/coder/coder/compare/415b42837344e604db7da09c5bcada65dbb9a367..c90d8bcb3a652cb32a455baf21ae9d2f55a49618
October 9, 2026 13:10https://github.com/coder/coder/pull/30053#event-32877205613
https://github.com/mafredri
mafredrihttps://github.com/mafredri
Oct 9, 2026https://github.com/coder/coder/pull/30053#event-32877242057
https://github.com/mafredri
mafredrihttps://github.com/mafredri
force-pushedhttps://github.com/coder/coder/compare/77f478375ab423c3f0f43c729c1d35bc625ddbd1..579f0379173fd5f8a95c4f0ff2ba8be7ea563f62
77f4783https://github.com/coder/coder/commit/77f478375ab423c3f0f43c729c1d35bc625ddbd1
579f037https://github.com/coder/coder/commit/579f0379173fd5f8a95c4f0ff2ba8be7ea563f62
Compare https://github.com/coder/coder/compare/77f478375ab423c3f0f43c729c1d35bc625ddbd1..579f0379173fd5f8a95c4f0ff2ba8be7ea563f62
October 13, 2026 11:33https://github.com/coder/coder/pull/30053#event-33128115968
https://github.com/mafredri
mafredrihttps://github.com/mafredri
force-pushedhttps://github.com/coder/coder/compare/579f0379173fd5f8a95c4f0ff2ba8be7ea563f62..c4386550a81a07459aee1bafdf464e8e621a4a1b
579f037https://github.com/coder/coder/commit/579f0379173fd5f8a95c4f0ff2ba8be7ea563f62
c438655https://github.com/coder/coder/commit/c4386550a81a07459aee1bafdf464e8e621a4a1b
Compare https://github.com/coder/coder/compare/579f0379173fd5f8a95c4f0ff2ba8be7ea563f62..c4386550a81a07459aee1bafdf464e8e621a4a1b
October 21, 2026 08:21https://github.com/coder/coder/pull/30053#event-33825202278
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 4, 2026https://github.com/coder/coder/pull/30053#event-35078028983
mafredrihttps://github.com/mafredri
November 4, 2026 10:32https://github.com/coder/coder/pull/30053#commits-pushed-647cf70
https://github.com/mafredri
feat(codersdk/workspacesdk): keep an idle agent API connectionhttps://github.com/coder/coder/pull/30053/commits/647cf7099b021e39dfbb14166f9e566271ea5850
647cf70https://github.com/coder/coder/pull/30053/commits/647cf7099b021e39dfbb14166f9e566271ea5850
https://github.com/mafredri
perf(coderd): reuse agent API connections in chatdhttps://github.com/coder/coder/pull/30053/commits/0b3e2a27ea4144b8d04198b072b95dd3a52d8e56
0b3e2a2https://github.com/coder/coder/pull/30053/commits/0b3e2a27ea4144b8d04198b072b95dd3a52d8e56
mafredrihttps://github.com/mafredri
November 4, 2026 10:32https://github.com/coder/coder/pull/30053#commits-pushed-144926a
https://github.com/mafredri
fix(codersdk/workspacesdk): read agent JSON responses to EOFhttps://github.com/coder/coder/pull/30053/commits/144926a57e9c2898a081d0606fdbcf69eeeaf052
144926ahttps://github.com/coder/coder/pull/30053/commits/144926a57e9c2898a081d0606fdbcf69eeeaf052
https://github.com/mafredri
perf: keep idle agent API connections for 5 minuteshttps://github.com/coder/coder/pull/30053/commits/bde66fc75ff2d382414187fea309b6dc5470a4bb
bde66fchttps://github.com/coder/coder/pull/30053/commits/bde66fc75ff2d382414187fea309b6dc5470a4bb
https://github.com/mafredri
refactor(codersdk/workspacesdk): build agent API transports oncehttps://github.com/coder/coder/pull/30053/commits/3e12f0bcc3ed4e613c4fd6ac15a92614b419685f
3e12f0bhttps://github.com/coder/coder/pull/30053/commits/3e12f0bcc3ed4e613c4fd6ac15a92614b419685f
https://github.com/mafredri
refactor: close every agent conn on releasehttps://github.com/coder/coder/pull/30053/commits/5bf5007c4db4f28bd9f68b4a8409dc80e0ad32ab
5bf5007https://github.com/coder/coder/pull/30053/commits/5bf5007c4db4f28bd9f68b4a8409dc80e0ad32ab
https://github.com/mafredri
refactor(codersdk/workspacesdk): send all requests on one clienthttps://github.com/coder/coder/pull/30053/commits/b543e4af9bbb350e7b3de314932d8eda32d375bf
b543e4ahttps://github.com/coder/coder/pull/30053/commits/b543e4af9bbb350e7b3de314932d8eda32d375bf
https://github.com/mafredri
perf: keep idle agent API connections for 15 secondshttps://github.com/coder/coder/pull/30053/commits/a8f88f9b9d62b28afd141facdaf1b45dc2b8c073
a8f88f9https://github.com/coder/coder/pull/30053/commits/a8f88f9b9d62b28afd141facdaf1b45dc2b8c073
https://github.com/mafredri
fix(codersdk/workspacesdk): explain the ignored drain errorhttps://github.com/coder/coder/pull/30053/commits/feeb993c0e40c5d31052df8968252e89160bff6b
feeb993https://github.com/coder/coder/pull/30053/commits/feeb993c0e40c5d31052df8968252e89160bff6b
https://github.com/mafredri
refactor(codersdk/workspacesdk): build the API transport in newAPIClienthttps://github.com/coder/coder/pull/30053/commits/a30f4034382791e20f903a9292a6ba0f4aa0d591
a30f403https://github.com/coder/coder/pull/30053/commits/a30f4034382791e20f903a9292a6ba0f4aa0d591
https://github.com/mafredri
test(codersdk/workspacesdk): test the keep-alive client directlyhttps://github.com/coder/coder/pull/30053/commits/dadfe6dfe56bf8236b6db780bef494917fbd017f
dadfe6dhttps://github.com/coder/coder/pull/30053/commits/dadfe6dfe56bf8236b6db780bef494917fbd017f
https://github.com/mafredri
refactor(coderd): say why the keep-alive timeout is a literalhttps://github.com/coder/coder/pull/30053/commits/5e365f7d83b8fb70d0dc0b0c6eafa06acef43a03
5e365f7https://github.com/coder/coder/pull/30053/commits/5e365f7d83b8fb70d0dc0b0c6eafa06acef43a03
https://github.com/mafredri
mafredrihttps://github.com/mafredri
force-pushedhttps://github.com/coder/coder/compare/f108b231f94e4a650e6d0057b5b4bf1cc960a852..5e365f7d83b8fb70d0dc0b0c6eafa06acef43a03
f108b23https://github.com/coder/coder/commit/f108b231f94e4a650e6d0057b5b4bf1cc960a852
5e365f7https://github.com/coder/coder/commit/5e365f7d83b8fb70d0dc0b0c6eafa06acef43a03
Compare https://github.com/coder/coder/compare/f108b231f94e4a650e6d0057b5b4bf1cc960a852..5e365f7d83b8fb70d0dc0b0c6eafa06acef43a03
November 4, 2026 10:59https://github.com/coder/coder/pull/30053#event-35119747606
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 5, 2026https://github.com/coder/coder/pull/30053#event-35188546836
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 13, 2026https://github.com/coder/coder/pull/30053#event-35976584779
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Nov 16, 2026https://github.com/coder/coder/pull/30053#event-36223446175
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%2F30053
Please reload this pagehttps://github.com/coder/coder/pull/30053
https://github.com/mafredri
mafredri https://github.com/mafredri
stale https://github.com/coder/coder/issues?q=state%3Aopen%20label%3Astale
Please reload this pagehttps://github.com/coder/coder/pull/30053
https://github.com/mafredri
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.