René's URL Explorer Experiment


Title: perf(coderd/x/chatd): make chat stream reads lock-free by cstyan · Pull Request #30266 · coder/coder · GitHub

Open Graph Title: perf(coderd/x/chatd): make chat stream reads lock-free by cstyan · Pull Request #30266 · coder/coder

X Title: perf(coderd/x/chatd): make chat stream reads lock-free by cstyan · Pull Request #30266 · coder/coder

Description: Secure environments for developers and their agents - perf(coderd/x/chatd): make chat stream reads lock-free by cstyan · Pull Request #30266 · coder/coder

Open Graph Description: ChatMachine.ReadLock took a FOR SHARE row lock (GetChatByIDForShare) to give multi-statement readers a consistent snapshot. The stream loop runs it on every snapshot_version bump for every subscrib...

X Description: ChatMachine.ReadLock took a FOR SHARE row lock (GetChatByIDForShare) to give multi-statement readers a consistent snapshot. The stream loop runs it on every snapshot_version bump for every subscrib...

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

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:5fb22aae-42bd-7819-8ce8-2e256d1ed20b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD696:A70A9:2FFD86:3F8396:6B019007
html-safe-nonce97562b101a060f29ce0083ec1818b030cc1a76799ba7425da36f158a61211e4d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjk2OkE3MEE5OjJGRkQ4NjozRjgzOTY6NkIwMTkwMDciLCJ2aXNpdG9yX2lkIjoiNjE4MDExMzUwMDUxOTUwNTk5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac8499945bcb429a2403784332ac798cb12ea959eb4f0dc18deb3d0f45c2760ba8
hovercard-subject-tagpull_request:4710522249
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/30266/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/0dcbc52e19fdcf99dd1fa8021831a6e33a11ff6bd8bf84bf4febe9fe19ba0891/coder/coder/pull/30266
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0dcbc52e19fdcf99dd1fa8021831a6e33a11ff6bd8bf84bf4febe9fe19ba0891/coder/coder/pull/30266
og:image:altChatMachine.ReadLock took a FOR SHARE row lock (GetChatByIDForShare) to give multi-statement readers a consistent snapshot. The stream loop runs it on every snapshot_version bump for every subscrib...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamecstyan
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/30266#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F30266
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%2F30266
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/30266
Reloadhttps://github.com/coder/coder/pull/30266
Reloadhttps://github.com/coder/coder/pull/30266
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
cstyanhttps://github.com/cstyan
mainhttps://github.com/coder/coder/tree/main
callum/chatd-03-lock-free-readshttps://github.com/coder/coder/tree/callum/chatd-03-lock-free-reads
Conversationhttps://github.com/coder/coder/pull/30266
Commits2 (2)https://github.com/coder/coder/pull/30266/commits
Checkshttps://github.com/coder/coder/pull/30266/checks
Files changedhttps://github.com/coder/coder/pull/30266/files
perf(coderd/x/chatd): make chat stream reads lock-freehttps://github.com/coder/coder/pull/30266#top
cstyanhttps://github.com/cstyan
mainhttps://github.com/coder/coder/tree/main
callum/chatd-03-lock-free-readshttps://github.com/coder/coder/tree/callum/chatd-03-lock-free-reads
https://github.com/cstyan
cstyanhttps://github.com/cstyan
Oct 1, 2026https://github.com/coder/coder/pull/30266#issue-5670243985
Please reload this pagehttps://github.com/coder/coder/pull/30266
#30267https://github.com/coder/coder/pull/30267
#30264https://github.com/coder/coder/pull/30264
#30265https://github.com/coder/coder/pull/30265
#30266https://github.com/coder/coder/pull/30266
#30267https://github.com/coder/coder/pull/30267
#30268https://github.com/coder/coder/pull/30268
#30269https://github.com/coder/coder/pull/30269
#30270https://github.com/coder/coder/pull/30270
@cstyanhttps://github.com/cstyan
Please reload this pagehttps://github.com/coder/coder/pull/30266
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
cstyanhttps://github.com/cstyan
Oct 1, 2026https://github.com/coder/coder/pull/30266#event-32294787386
feat: add start and message jitter to chat scaletest #30264 https://github.com/coder/coder/pull/30264
feat: record per-transition duration and phase metrics #30265 https://github.com/coder/coder/pull/30265
perf(coderd): write the chats row once per chat transition #30267 https://github.com/coder/coder/pull/30267
perf(coderd): publish and return the chat row from the transition's commit write #30268 https://github.com/coder/coder/pull/30268
perf(coderd): acquire chats with a non-blocking row lock #30269 https://github.com/coder/coder/pull/30269
perf(coderd/x/chatd): finish the turn in the step commit transaction #30270 https://github.com/coder/coder/pull/30270
https://github.com/cstyan
cstyanhttps://github.com/cstyan
force-pushedhttps://github.com/coder/coder/compare/cafa79d6fa3210f2fe0c2e6f51d622e8a18dee26..d583cae276ecef98dea3386725bdc13540c73fe0
cafa79dhttps://github.com/coder/coder/commit/cafa79d6fa3210f2fe0c2e6f51d622e8a18dee26
d583caehttps://github.com/coder/coder/commit/d583cae276ecef98dea3386725bdc13540c73fe0
Compare https://github.com/coder/coder/compare/cafa79d6fa3210f2fe0c2e6f51d622e8a18dee26..d583cae276ecef98dea3386725bdc13540c73fe0
October 2, 2026 02:16https://github.com/coder/coder/pull/30266#event-32303859631
https://github.com/cstyan
cstyanhttps://github.com/cstyan
Oct 2, 2026https://github.com/coder/coder/pull/30266#event-32303869320
https://github.com/cstyan
cstyanhttps://github.com/cstyan
ethanndicksonhttps://github.com/ethanndickson
October 2, 2026 02:46https://github.com/coder/coder/pull/30266#event-32305076449
https://github.com/cstyan
cstyanhttps://github.com/cstyan
October 2, 2026 02:46https://github.com/coder/coder/pull/30266#event-32305078177
https://github.com/ethanndickson
ethanndicksonhttps://github.com/ethanndickson
Oct 2, 2026 https://github.com/coder/coder/pull/30266#pullrequestreview-5389245272
View reviewed changes https://github.com/coder/coder/pull/30266/files
coderd/x/chatd/chatstate/machine.gohttps://github.com/coder/coder/pull/30266/files#diff-948e4dd76cec157de46970c7128e38ed07c1f1c6ccf515e27e24b9059830391c
ethanndicksonhttps://github.com/ethanndickson
Oct 2, 2026https://github.com/coder/coder/pull/30266#discussion_r4163679724
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/30266
cstyanhttps://github.com/cstyan
Oct 3, 2026https://github.com/coder/coder/pull/30266#discussion_r4171163560
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/30266
https://github.com/ethanndickson
ethanndicksonhttps://github.com/ethanndickson
Oct 2, 2026https://github.com/coder/coder/pull/30266#issuecomment-5947359065
@codexhttps://github.com/codex
Please reload this pagehttps://github.com/coder/coder/pull/30266
https://github.com/ethanndickson
ethanndicksonhttps://github.com/ethanndickson
hugodutkahttps://github.com/hugodutka
October 2, 2026 07:26https://github.com/coder/coder/pull/30266#event-32316529898
https://github.com/ethanndickson
ethanndicksonhttps://github.com/ethanndickson
Oct 2, 2026https://github.com/coder/coder/pull/30266#issuecomment-5947362930
Please reload this pagehttps://github.com/coder/coder/pull/30266
https://github.com/apps/chatgpt-codex-connector
chatgpt-codex-connectorhttps://github.com/apps/chatgpt-codex-connector
Oct 2, 2026https://github.com/coder/coder/pull/30266#issuecomment-5947363060
Please reload this pagehttps://github.com/coder/coder/pull/30266
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/30266
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/30266#pullrequestreview-5389267128
View reviewed changes https://github.com/coder/coder/pull/30266/files
chatgpt-codex-connectorhttps://github.com/apps/chatgpt-codex-connector
https://github.com/coder/coder/pull/30266#pullrequestreview-5389267128
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/30266
coderd/x/chatd/hook_server.gohttps://github.com/coder/coder/pull/30266/files#diff-82738cf4308a3b02205841096a0b1a0d9b6484893951646a615fe430d64a0471
chatgpt-codex-connectorhttps://github.com/apps/chatgpt-codex-connector
Oct 2, 2026https://github.com/coder/coder/pull/30266#discussion_r4163698166
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://camo.githubusercontent.com/0854bfc38139c0d2b58a9d5d71f5ad92840cf0c17144621e462b474041793354/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f50322d79656c6c6f773f7374796c653d666c6174
Please reload this pagehttps://github.com/coder/coder/pull/30266
ethanndicksonhttps://github.com/ethanndickson
Oct 2, 2026https://github.com/coder/coder/pull/30266#discussion_r4163768778
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/30266
hugodutkahttps://github.com/hugodutka
Oct 2, 2026https://github.com/coder/coder/pull/30266#discussion_r4164405759
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/30266
https://github.com/hugodutka
hugodutkahttps://github.com/hugodutka
Oct 2, 2026 https://github.com/coder/coder/pull/30266#pullrequestreview-5390142014
View reviewed changes https://github.com/coder/coder/pull/30266/files
hugodutkahttps://github.com/hugodutka
https://github.com/coder/coder/pull/30266#pullrequestreview-5390142014
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/30266
https://github.com/cstyan
cstyanhttps://github.com/cstyan
force-pushedhttps://github.com/coder/coder/compare/d583cae276ecef98dea3386725bdc13540c73fe0..e363352e1d436caed30a614e58f84eee4d1bfe49
d583caehttps://github.com/coder/coder/commit/d583cae276ecef98dea3386725bdc13540c73fe0
e363352https://github.com/coder/coder/commit/e363352e1d436caed30a614e58f84eee4d1bfe49
Compare https://github.com/coder/coder/compare/d583cae276ecef98dea3386725bdc13540c73fe0..e363352e1d436caed30a614e58f84eee4d1bfe49
October 2, 2026 23:09https://github.com/coder/coder/pull/30266#event-32371572862
https://github.com/cstyan
perf(coderd/x/chatd): make chat stream reads lock-freehttps://github.com/coder/coder/pull/30266/commits/fe8cc3bddcb1da4b980c067bf4887945a0641034
fe8cc3bhttps://github.com/coder/coder/pull/30266/commits/fe8cc3bddcb1da4b980c067bf4887945a0641034
https://github.com/cstyan
cstyanhttps://github.com/cstyan
force-pushedhttps://github.com/coder/coder/compare/e363352e1d436caed30a614e58f84eee4d1bfe49..fe8cc3bddcb1da4b980c067bf4887945a0641034
e363352https://github.com/coder/coder/commit/e363352e1d436caed30a614e58f84eee4d1bfe49
fe8cc3bhttps://github.com/coder/coder/commit/fe8cc3bddcb1da4b980c067bf4887945a0641034
Compare https://github.com/coder/coder/compare/e363352e1d436caed30a614e58f84eee4d1bfe49..fe8cc3bddcb1da4b980c067bf4887945a0641034
October 2, 2026 23:21https://github.com/coder/coder/pull/30266#event-32372121874
https://github.com/cstyan
cstyanhttps://github.com/cstyan
Oct 3, 2026 https://github.com/coder/coder/pull/30266#ref-issue-5684996457
chatd can initiate tool calls via dispatch hooks while another such process is already ongoing #30316 https://github.com/coder/coder/issues/30316
https://github.com/cstyan
test(coderd/x/chatd): cover a transition committing during a stream readhttps://github.com/coder/coder/pull/30266/commits/067f874ef8d482b5fad161ad1ef81760759851bf
067f874https://github.com/coder/coder/pull/30266/commits/067f874ef8d482b5fad161ad1ef81760759851bf
https://github.com/cstyan
cstyanhttps://github.com/cstyan
1a96da2https://github.com/coder/coder/commit/1a96da2b6a2b91a69615b3d653d129cbd8058334
Oct 5, 2026https://github.com/coder/coder/pull/30266#event-32536675560
Please reload this pagehttps://github.com/coder/coder/pull/30266
https://github.com/cstyan
cstyanhttps://github.com/cstyan
October 5, 2026 18:47https://github.com/coder/coder/pull/30266#event-32536678365
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Oct 5, 2026https://github.com/coder/coder/pull/30266#event-32536690135
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%2F30266
https://github.com/hugodutka
hugodutka https://github.com/hugodutka
https://github.com/coder/coder/pull/30266/files/d583cae276ecef98dea3386725bdc13540c73fe0
https://github.com/ethanndickson
ethanndickson https://github.com/ethanndickson
https://github.com/coder/coder/pull/30266/files/d583cae276ecef98dea3386725bdc13540c73fe0
https://github.com/apps/chatgpt-codex-connector
chatgpt-codex-connector[bot] https://github.com/apps/chatgpt-codex-connector
https://github.com/coder/coder/pull/30266/files/d583cae276ecef98dea3386725bdc13540c73fe0
Please reload this pagehttps://github.com/coder/coder/pull/30266
https://github.com/cstyan
cstyan https://github.com/cstyan
Please reload this pagehttps://github.com/coder/coder/pull/30266
https://github.com/cstyan
https://github.com/ethanndickson
https://github.com/hugodutka
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.