René's URL Explorer Experiment


Title: perf(coderd): write the chats row once per chat transition by cstyan · Pull Request #30267 · coder/coder · GitHub

Open Graph Title: perf(coderd): write the chats row once per chat transition by cstyan · Pull Request #30267 · coder/coder

X Title: perf(coderd): write the chats row once per chat transition by cstyan · Pull Request #30267 · coder/coder

Description: Secure environments for developers and their agents - perf(coderd): write the chats row once per chat transition by cstyan · Pull Request #30267 · coder/coder

Open Graph Description: Discussing some potential changes to this with @hugodutka on slack, will update description to match reality once a path forward is decided. Extended AI description Postgres re-runs every foreign ...

X Description: Discussing some potential changes to this with @hugodutka on slack, will update description to match reality once a path forward is decided. Extended AI description Postgres re-runs every foreign ...

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

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:4388efea-bf88-4a11-4031-f9c6003da519
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id94C0:1F2D:1CD399C:247AEC9:6B0192EB
html-safe-nonceb926ff240ed22afb41d6ee062b5e3eb05da1607d0029e18fb3d2c2b4cfe57c52
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NEMwOjFGMkQ6MUNEMzk5QzoyNDdBRUM5OjZCMDE5MkVCIiwidmlzaXRvcl9pZCI6IjIwODU4MzgxMDg3NDk4Mjg4NDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac686afd76ac14803a5bed0ffd2b2a517f19266b7e63913fa09242cb5a7c15c141
hovercard-subject-tagpull_request:4710522704
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/30267/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/ad3da339f83661f3b1dcadaa3cee5ea89746a3b23a7bd588de55b1f6931fe338/coder/coder/pull/30267
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ad3da339f83661f3b1dcadaa3cee5ea89746a3b23a7bd588de55b1f6931fe338/coder/coder/pull/30267
og:image:altDiscussing some potential changes to this with @hugodutka on slack, will update description to match reality once a path forward is decided. Extended AI description Postgres re-runs every foreign ...
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/30267#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F30267
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%2F30267
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/30267
Reloadhttps://github.com/coder/coder/pull/30267
Reloadhttps://github.com/coder/coder/pull/30267
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-04-single-writehttps://github.com/coder/coder/tree/callum/chatd-04-single-write
Conversationhttps://github.com/coder/coder/pull/30267
Commits7 (7)https://github.com/coder/coder/pull/30267/commits
Checkshttps://github.com/coder/coder/pull/30267/checks
Files changedhttps://github.com/coder/coder/pull/30267/files
perf(coderd): write the chats row once per chat transitionhttps://github.com/coder/coder/pull/30267#top
cstyanhttps://github.com/cstyan
mainhttps://github.com/coder/coder/tree/main
callum/chatd-04-single-writehttps://github.com/coder/coder/tree/callum/chatd-04-single-write
https://github.com/cstyan
cstyanhttps://github.com/cstyan
Oct 1, 2026https://github.com/coder/coder/pull/30267#issue-5670244527
Please reload this pagehttps://github.com/coder/coder/pull/30267
@hugodutkahttps://github.com/hugodutka
perf(coderd): publish and return the chat row from the transition's commit write #30268https://github.com/coder/coder/pull/30268
#30268https://github.com/coder/coder/pull/30268
#30268https://github.com/coder/coder/pull/30268
#30241https://github.com/coder/coder/pull/30241
#30243https://github.com/coder/coder/pull/30243
#30268https://github.com/coder/coder/pull/30268
#30269https://github.com/coder/coder/pull/30269
#30270https://github.com/coder/coder/pull/30270
#30265https://github.com/coder/coder/pull/30265
#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/30267
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/30267#event-32294790544
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): 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
cstyanhttps://github.com/cstyan
October 6, 2026 17:10https://github.com/coder/coder/pull/30267#commits-pushed-bee7dfe
https://github.com/cstyan
perf(coderd): write the chats row once per chat transitionhttps://github.com/coder/coder/pull/30267/commits/bee7dfe79497fcc9d46ff0ba95c7d7de50a24006
bee7dfehttps://github.com/coder/coder/pull/30267/commits/bee7dfe79497fcc9d46ff0ba95c7d7de50a24006
https://github.com/cstyan
chore(coderd): fixes from self reviewhttps://github.com/coder/coder/pull/30267/commits/f754b17e567df4c7ced11ec8e6b133510801b5bb
f754b17https://github.com/coder/coder/pull/30267/commits/f754b17e567df4c7ced11ec8e6b133510801b5bb
https://github.com/cstyan
chore(coderd): remove chat message and queue queries with no producti…https://github.com/coder/coder/pull/30267/commits/d304912e16d0cf1005dc6e7963ba92bfcaa28275
d304912https://github.com/coder/coder/pull/30267/commits/d304912e16d0cf1005dc6e7963ba92bfcaa28275
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/30267#event-32623020074
https://github.com/cstyan
cstyanhttps://github.com/cstyan
October 6, 2026 17:41https://github.com/coder/coder/pull/30267#event-32623421128
https://github.com/cstyan
fix(coderd): count queued messages after the chat transition lockhttps://github.com/coder/coder/pull/30267/commits/7aa28562f27d78283df613da65415065b6fe8e87
7aa2856https://github.com/coder/coder/pull/30267/commits/7aa28562f27d78283df613da65415065b6fe8e87
https://github.com/cstyan
cstyanhttps://github.com/cstyan
Oct 6, 2026https://github.com/coder/coder/pull/30267#issuecomment-6023156722
@codexhttps://github.com/codex
Please reload this pagehttps://github.com/coder/coder/pull/30267
https://github.com/apps/chatgpt-codex-connector
chatgpt-codex-connectorhttps://github.com/apps/chatgpt-codex-connector
Oct 6, 2026https://github.com/coder/coder/pull/30267#issuecomment-6023157950
create a Codex account and connect to githubhttps://chatgpt.com/codex/cloud/settings/connectors
Please reload this pagehttps://github.com/coder/coder/pull/30267
https://github.com/cstyan
cstyanhttps://github.com/cstyan
Oct 6, 2026https://github.com/coder/coder/pull/30267#issuecomment-6023175287
Please reload this pagehttps://github.com/coder/coder/pull/30267
https://github.com/apps/coder-agents-review
coder-agents-reviewhttps://github.com/apps/coder-agents-review
Oct 6, 2026https://github.com/coder/coder/pull/30267#issuecomment-6023176924
Please reload this pagehttps://github.com/coder/coder/pull/30267
View chathttps://dogfood.cdr.dev/agents/97e71a03-300c-4a19-bce6-e4e2366af62f
@cstyanhttps://github.com/cstyan
Reviewhttps://github.com/coder/coder/pull/30267#pullrequestreview-5433290965
05eac08..7aa2856https://github.com/coder/coder/compare/05eac0832fabf77f788b33e42bbac631dcfca275...7aa28562f27d78283df613da65415065b6fe8e87
Reviewhttps://github.com/coder/coder/pull/30267#pullrequestreview-5433290965
7aa2856https://github.com/coder/coder/commit/7aa28562f27d78283df613da65415065b6fe8e87
05eac08https://github.com/coder/coder/commit/05eac0832fabf77f788b33e42bbac631dcfca275
7aa2856https://github.com/coder/coder/commit/7aa28562f27d78283df613da65415065b6fe8e87
Coder Agentshttps://coder.com
Please reload this pagehttps://github.com/coder/coder/pull/30267
https://github.com/apps/coder-agents-review
coder-agents-reviewhttps://github.com/apps/coder-agents-review
Oct 6, 2026 https://github.com/coder/coder/pull/30267#pullrequestreview-5433290965
View reviewed changes https://github.com/coder/coder/pull/30267/files/7aa28562f27d78283df613da65415065b6fe8e87
coder-agents-reviewhttps://github.com/apps/coder-agents-review
https://github.com/coder/coder/pull/30267#pullrequestreview-5433290965
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
d304912https://github.com/coder/coder/commit/d304912e16d0cf1005dc6e7963ba92bfcaa28275
Please reload this pagehttps://github.com/coder/coder/pull/30267
coderd/x/chatd/chatstate/machine.gohttps://github.com/coder/coder/pull/30267/files/7aa28562f27d78283df613da65415065b6fe8e87#diff-948e4dd76cec157de46970c7128e38ed07c1f1c6ccf515e27e24b9059830391c
coder-agents-reviewhttps://github.com/apps/coder-agents-review
Oct 6, 2026https://github.com/coder/coder/pull/30267#discussion_r4199339528
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/30267
coderd/x/chatd/ARCHITECTURE.mdhttps://github.com/coder/coder/pull/30267/files/7aa28562f27d78283df613da65415065b6fe8e87#diff-eeffa894733731941dfd60f3be77cfce5882b268fa9b6a6a99d9a6bda245bf29
coder-agents-reviewhttps://github.com/apps/coder-agents-review
Oct 6, 2026https://github.com/coder/coder/pull/30267#discussion_r4199339534
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/30267
coderd/x/chatd/ARCHITECTURE.mdhttps://github.com/coder/coder/pull/30267/files/7aa28562f27d78283df613da65415065b6fe8e87#diff-eeffa894733731941dfd60f3be77cfce5882b268fa9b6a6a99d9a6bda245bf29
coder-agents-reviewhttps://github.com/apps/coder-agents-review
Oct 6, 2026https://github.com/coder/coder/pull/30267#discussion_r4199339539
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/30267
coderd/database/queries/chats.sqlhttps://github.com/coder/coder/pull/30267/files/7aa28562f27d78283df613da65415065b6fe8e87#diff-deaf675e579bf51b32df4a6af79415d37d3eb443281fa2c4321abfda2dd2f621
coder-agents-reviewhttps://github.com/apps/coder-agents-review
Oct 6, 2026https://github.com/coder/coder/pull/30267#discussion_r4199339548
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/30267
coderd/x/chatd/chatstate/automation.gohttps://github.com/coder/coder/pull/30267/files/7aa28562f27d78283df613da65415065b6fe8e87#diff-04500a1082a0340c148a48a15c16e279a0dfbecb761989fa8375a2afc9734a2b
coder-agents-reviewhttps://github.com/apps/coder-agents-review
Oct 6, 2026https://github.com/coder/coder/pull/30267#discussion_r4199339553
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/30267
coderd/x/chatd/tasks.gohttps://github.com/coder/coder/pull/30267/files/7aa28562f27d78283df613da65415065b6fe8e87#diff-12836e96198832ba2e387a5908311c071c67150af3b4870e188f6cb99e6b49ad
coder-agents-reviewhttps://github.com/apps/coder-agents-review
Oct 6, 2026https://github.com/coder/coder/pull/30267#discussion_r4199339559
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/30267
coderd/x/chatd/chatstate/concurrency_test.gohttps://github.com/coder/coder/pull/30267/files/7aa28562f27d78283df613da65415065b6fe8e87#diff-f0b5b97286a65b4d4427328fba3edd8c501bbd386ea40667ae726c9779608d36
coder-agents-reviewhttps://github.com/apps/coder-agents-review
Oct 6, 2026https://github.com/coder/coder/pull/30267#discussion_r4199339566
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/30267
cstyanhttps://github.com/cstyan
October 6, 2026 22:01https://github.com/coder/coder/pull/30267#commits-pushed-9ed73ae
https://github.com/cstyan
fix(coderd/x/chatd/chatstate): reject history or queue changes staged…https://github.com/coder/coder/pull/30267/commits/9ed73ae6144374af0e61d405f41e1e4e07b82589
9ed73aehttps://github.com/coder/coder/pull/30267/commits/9ed73ae6144374af0e61d405f41e1e4e07b82589
https://github.com/cstyan
refactor(coderd/x/chatd/chatstate): name and group staged writes and …https://github.com/coder/coder/pull/30267/commits/4a368e0cd3e6d3fcc346618b6387314ccb4fdf10
4a368e0https://github.com/coder/coder/pull/30267/commits/4a368e0cd3e6d3fcc346618b6387314ccb4fdf10
https://github.com/cstyan
chore(coderd): address AI review feedbackhttps://github.com/coder/coder/pull/30267/commits/0df197b863a652c611ffd7661ce7bd0058d7b6bc
0df197bhttps://github.com/coder/coder/pull/30267/commits/0df197b863a652c611ffd7661ce7bd0058d7b6bc
https://github.com/apps/linear-code
linear-codehttps://github.com/apps/linear-code
Oct 29, 2026https://github.com/coder/coder/pull/30267#issuecomment-6501298738
GRU-110https://linear.app/codercom/issue/GRU-110
Please reload this pagehttps://github.com/coder/coder/pull/30267
https://github.com/cstyan
cstyanhttps://github.com/cstyan
Nov 9, 2026https://github.com/coder/coder/pull/30267#event-35620320982
https://github.com/cstyan
cstyanhttps://github.com/cstyan
November 9, 2026 22:15https://github.com/coder/coder/pull/30267#event-35620327917
GitHub Actionshttps://github.com/apps/github-actions
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Nov 9, 2026https://github.com/coder/coder/pull/30267#event-35620336737
cstyanhttps://github.com/cstyan
cla #252909https://github.com/coder/coder/actions/runs/42710135690
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%2F30267
https://github.com/apps/coder-agents-review
coder-agents-review[bot] https://github.com/apps/coder-agents-review
https://github.com/coder/coder/pull/30267/files/7aa28562f27d78283df613da65415065b6fe8e87
Please reload this pagehttps://github.com/coder/coder/pull/30267
https://github.com/cstyan
cstyan https://github.com/cstyan
Please reload this pagehttps://github.com/coder/coder/pull/30267
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.