René's URL Explorer Experiment


Title: perf(coderd): publish and return the chat row from the transition's commit write by cstyan · Pull Request #30268 · coder/coder · GitHub

Open Graph Title: perf(coderd): publish and return the chat row from the transition's commit write by cstyan · Pull Request #30268 · coder/coder

X Title: perf(coderd): publish and return the chat row from the transition's commit write by cstyan · Pull Request #30268 · coder/coder

Description: Secure environments for developers and their agents - perf(coderd): publish and return the chat row from the transition's commit write by cstyan · Pull Request #30268 · coder/coder

Open Graph Description: Two round-trip sources remained under the transition lock after #30267: every hot chat write in dbauthz (UpdateChatExecutionState, InsertChatMessages, IncrementChatGenerationAttempt, UpdateChatRetr...

X Description: Two round-trip sources remained under the transition lock after #30267: every hot chat write in dbauthz (UpdateChatExecutionState, InsertChatMessages, IncrementChatGenerationAttempt, UpdateChatRetr...

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

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:738335cf-fb87-5be0-f01f-330d722bfebf
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB7C8:A70A9:37B039:49B26F:6B0192F4
html-safe-nonced7fd8581e59189ed88048c11a0d80fda20bd812fef1bab186d3a417c4852a9f8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCN0M4OkE3MEE5OjM3QjAzOTo0OUIyNkY6NkIwMTkyRjQiLCJ2aXNpdG9yX2lkIjoiNzE0OTYzNTQxNDM2ODgxNzkwOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac1e01f57539043962e1377773e02e12cb7c40d01ec01abd001e8730a50acf6bc9
hovercard-subject-tagpull_request:4710523237
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/30268/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/c04328e549f09130465e5d639d276663659d32dfcc20c25519ffdf3195d7d93f/coder/coder/pull/30268
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c04328e549f09130465e5d639d276663659d32dfcc20c25519ffdf3195d7d93f/coder/coder/pull/30268
og:image:altTwo round-trip sources remained under the transition lock after #30267: every hot chat write in dbauthz (UpdateChatExecutionState, InsertChatMessages, IncrementChatGenerationAttempt, UpdateChatRetr...
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/30268#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F30268
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%2F30268
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/30268
Reloadhttps://github.com/coder/coder/pull/30268
Reloadhttps://github.com/coder/coder/pull/30268
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
callum/chatd-04-single-writehttps://github.com/coder/coder/tree/callum/chatd-04-single-write
callum/chatd-05-commit-write-resulthttps://github.com/coder/coder/tree/callum/chatd-05-commit-write-result
Conversationhttps://github.com/coder/coder/pull/30268
Commits1 (1)https://github.com/coder/coder/pull/30268/commits
Checkshttps://github.com/coder/coder/pull/30268/checks
Files changedhttps://github.com/coder/coder/pull/30268/files
perf(coderd): publish and return the chat row from the transition's commit writehttps://github.com/coder/coder/pull/30268#top
cstyanhttps://github.com/cstyan
callum/chatd-04-single-writehttps://github.com/coder/coder/tree/callum/chatd-04-single-write
callum/chatd-05-commit-write-resulthttps://github.com/coder/coder/tree/callum/chatd-05-commit-write-result
https://github.com/cstyan
cstyanhttps://github.com/cstyan
Oct 1, 2026https://github.com/coder/coder/pull/30268#issue-5670245152
Please reload this pagehttps://github.com/coder/coder/pull/30268
#30267https://github.com/coder/coder/pull/30267
#20662https://github.com/coder/coder/pull/20662
#21047https://github.com/coder/coder/pull/21047
#30267https://github.com/coder/coder/pull/30267
#30267https://github.com/coder/coder/pull/30267
#30269https://github.com/coder/coder/pull/30269
#30270https://github.com/coder/coder/pull/30270
#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/30268
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/30268#event-32294793680
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/x/chatd): make chat stream reads lock-free #30266 https://github.com/coder/coder/pull/30266
perf(coderd): write the chats row once per chat transition #30267 https://github.com/coder/coder/pull/30267
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/2ccb0e56f43255da3174f70f53d71a5293515e45..d304912e16d0cf1005dc6e7963ba92bfcaa28275
2ccb0e5https://github.com/coder/coder/commit/2ccb0e56f43255da3174f70f53d71a5293515e45
d304912https://github.com/coder/coder/commit/d304912e16d0cf1005dc6e7963ba92bfcaa28275
Compare https://github.com/coder/coder/compare/2ccb0e56f43255da3174f70f53d71a5293515e45..d304912e16d0cf1005dc6e7963ba92bfcaa28275
October 6, 2026 17:36https://github.com/coder/coder/pull/30268#event-32623020165
https://github.com/cstyan
cstyanhttps://github.com/cstyan
force-pushedhttps://github.com/coder/coder/compare/7636cf288e49be99812519f6c76bbd065815b8c5..8a281a27ce9bcb23c2d94887f7cfa4399b11e880
7636cf2https://github.com/coder/coder/commit/7636cf288e49be99812519f6c76bbd065815b8c5
8a281a2https://github.com/coder/coder/commit/8a281a27ce9bcb23c2d94887f7cfa4399b11e880
Compare https://github.com/coder/coder/compare/7636cf288e49be99812519f6c76bbd065815b8c5..8a281a27ce9bcb23c2d94887f7cfa4399b11e880
October 6, 2026 19:01https://github.com/coder/coder/pull/30268#event-32629158255
https://github.com/cstyan
perf(coderd): publish and return the chat row from the transition's c…https://github.com/coder/coder/pull/30268/commits/e43ac748102cb25028601dda6c598ff8f20a8cf0
e43ac74https://github.com/coder/coder/pull/30268/commits/e43ac748102cb25028601dda6c598ff8f20a8cf0
#20662https://github.com/coder/coder/pull/20662
#21047https://github.com/coder/coder/pull/21047
https://github.com/cstyan
cstyanhttps://github.com/cstyan
force-pushedhttps://github.com/coder/coder/compare/8a281a27ce9bcb23c2d94887f7cfa4399b11e880..e43ac748102cb25028601dda6c598ff8f20a8cf0
8a281a2https://github.com/coder/coder/commit/8a281a27ce9bcb23c2d94887f7cfa4399b11e880
e43ac74https://github.com/coder/coder/commit/e43ac748102cb25028601dda6c598ff8f20a8cf0
Compare https://github.com/coder/coder/compare/8a281a27ce9bcb23c2d94887f7cfa4399b11e880..e43ac748102cb25028601dda6c598ff8f20a8cf0
October 7, 2026 01:11https://github.com/coder/coder/pull/30268#event-32649951392
https://github.com/cstyan
cstyanhttps://github.com/cstyan
Oct 7, 2026https://github.com/coder/coder/pull/30268#issuecomment-6028789962
Please reload this pagehttps://github.com/coder/coder/pull/30268
https://github.com/apps/coder-agents-review
coder-agents-reviewhttps://github.com/apps/coder-agents-review
Oct 7, 2026https://github.com/coder/coder/pull/30268#issuecomment-6028790660
Please reload this pagehttps://github.com/coder/coder/pull/30268
View chathttps://dogfood.cdr.dev/agents/ecc43273-b947-4fff-8d2a-8c82257c519d
@cstyanhttps://github.com/cstyan
Reviewhttps://github.com/coder/coder/pull/30268#pullrequestreview-5436672457
0df197b..e43ac74https://github.com/coder/coder/compare/0df197b863a652c611ffd7661ce7bd0058d7b6bc...e43ac748102cb25028601dda6c598ff8f20a8cf0
Reviewhttps://github.com/coder/coder/pull/30268#pullrequestreview-5436672457
e43ac74https://github.com/coder/coder/commit/e43ac748102cb25028601dda6c598ff8f20a8cf0
0df197bhttps://github.com/coder/coder/commit/0df197b863a652c611ffd7661ce7bd0058d7b6bc
e43ac74https://github.com/coder/coder/commit/e43ac748102cb25028601dda6c598ff8f20a8cf0
Coder Agentshttps://coder.com
Please reload this pagehttps://github.com/coder/coder/pull/30268
https://github.com/apps/coder-agents-review
coder-agents-reviewhttps://github.com/apps/coder-agents-review
Oct 7, 2026 https://github.com/coder/coder/pull/30268#pullrequestreview-5436672457
View reviewed changes https://github.com/coder/coder/pull/30268/files/e43ac748102cb25028601dda6c598ff8f20a8cf0
coder-agents-reviewhttps://github.com/apps/coder-agents-review
https://github.com/coder/coder/pull/30268#pullrequestreview-5436672457
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
e43ac74https://github.com/coder/coder/commit/e43ac748102cb25028601dda6c598ff8f20a8cf0
Please reload this pagehttps://github.com/coder/coder/pull/30268
coderd/database/dbauthz/dbauthz.gohttps://github.com/coder/coder/pull/30268/files/e43ac748102cb25028601dda6c598ff8f20a8cf0#diff-5f3bb5c12d02726be93737d8bb2f1bbe034792f4254af2ae1d139b737dd67e77
coder-agents-reviewhttps://github.com/apps/coder-agents-review
Oct 7, 2026https://github.com/coder/coder/pull/30268#discussion_r4202229980
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/30268
coderd/database/queries/chats.sqlhttps://github.com/coder/coder/pull/30268/files/e43ac748102cb25028601dda6c598ff8f20a8cf0#diff-deaf675e579bf51b32df4a6af79415d37d3eb443281fa2c4321abfda2dd2f621
coder-agents-reviewhttps://github.com/apps/coder-agents-review
Oct 7, 2026https://github.com/coder/coder/pull/30268#discussion_r4202229988
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/30268
coderd/x/chatd/chatd.gohttps://github.com/coder/coder/pull/30268/files/e43ac748102cb25028601dda6c598ff8f20a8cf0#diff-9760d93414fe0e308947af4c1e3dc773ad63bdb871f2ed8fd433fae1124637db
coder-agents-reviewhttps://github.com/apps/coder-agents-review
Oct 7, 2026https://github.com/coder/coder/pull/30268#discussion_r4202229992
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/30268
coderd/database/dbauthz/dbauthz_test.gohttps://github.com/coder/coder/pull/30268/files/e43ac748102cb25028601dda6c598ff8f20a8cf0#diff-f669d065c47a9a51f2f751adb4b9a278b7c3f531c69fe2bcd6825c77222a9091
coder-agents-reviewhttps://github.com/apps/coder-agents-review
Oct 7, 2026https://github.com/coder/coder/pull/30268#discussion_r4202229995
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/30268
coderd/database/dbauthz/dbauthz.gohttps://github.com/coder/coder/pull/30268/files/e43ac748102cb25028601dda6c598ff8f20a8cf0#diff-5f3bb5c12d02726be93737d8bb2f1bbe034792f4254af2ae1d139b737dd67e77
coder-agents-reviewhttps://github.com/apps/coder-agents-review
Oct 7, 2026https://github.com/coder/coder/pull/30268#discussion_r4202230006
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/30268
coderd/x/chatd/chatstate/machine.gohttps://github.com/coder/coder/pull/30268/files/e43ac748102cb25028601dda6c598ff8f20a8cf0#diff-948e4dd76cec157de46970c7128e38ed07c1f1c6ccf515e27e24b9059830391c
coder-agents-reviewhttps://github.com/apps/coder-agents-review
Oct 7, 2026https://github.com/coder/coder/pull/30268#discussion_r4202230092
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/30268
coderd/httpmw/chatparam.gohttps://github.com/coder/coder/pull/30268/files/e43ac748102cb25028601dda6c598ff8f20a8cf0#diff-7d1ba7a86bd53d07ca8cc9403a7bb2f9e9d641c98b1c71f79b933bdd3b4c3b39
coder-agents-reviewhttps://github.com/apps/coder-agents-review
Oct 7, 2026https://github.com/coder/coder/pull/30268#discussion_r4202230095
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/30268
coderd/database/queries/chats.sqlhttps://github.com/coder/coder/pull/30268/files/e43ac748102cb25028601dda6c598ff8f20a8cf0#diff-deaf675e579bf51b32df4a6af79415d37d3eb443281fa2c4321abfda2dd2f621
coder-agents-reviewhttps://github.com/apps/coder-agents-review
Oct 7, 2026https://github.com/coder/coder/pull/30268#discussion_r4202230101
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/30268
coderd/x/chatd/chatstate/roundtrips_test.gohttps://github.com/coder/coder/pull/30268/files/e43ac748102cb25028601dda6c598ff8f20a8cf0#diff-ae7062de590e320778a8f69058799b220910e2ca14dc7bd5d3c50c9e469897f2
coder-agents-reviewhttps://github.com/apps/coder-agents-review
Oct 7, 2026https://github.com/coder/coder/pull/30268#discussion_r4202230106
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/30268
coderd/x/chatd/chatstate/machine.gohttps://github.com/coder/coder/pull/30268/files/e43ac748102cb25028601dda6c598ff8f20a8cf0#diff-948e4dd76cec157de46970c7128e38ed07c1f1c6ccf515e27e24b9059830391c
coder-agents-reviewhttps://github.com/apps/coder-agents-review
Oct 7, 2026https://github.com/coder/coder/pull/30268#discussion_r4202230110
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/30268
https://github.com/apps/linear-code
linear-codehttps://github.com/apps/linear-code
Oct 29, 2026https://github.com/coder/coder/pull/30268#issuecomment-6501300773
GRU-112https://linear.app/codercom/issue/GRU-112
Please reload this pagehttps://github.com/coder/coder/pull/30268
https://github.com/cstyan
cstyanhttps://github.com/cstyan
Nov 9, 2026https://github.com/coder/coder/pull/30268#event-35620325096
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%2F30268
https://github.com/apps/coder-agents-review
coder-agents-review[bot] https://github.com/apps/coder-agents-review
https://github.com/coder/coder/pull/30268/files/e43ac748102cb25028601dda6c598ff8f20a8cf0
Please reload this pagehttps://github.com/coder/coder/pull/30268
https://github.com/cstyan
cstyan https://github.com/cstyan
Please reload this pagehttps://github.com/coder/coder/pull/30268
https://github.com/cstyan
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.