René's URL Explorer Experiment


Title: fix(coderd/database): order the chat prompt query and its boundary by id by ibetitsmike · Pull Request #27619 · coder/coder · GitHub

Open Graph Title: fix(coderd/database): order the chat prompt query and its boundary by id by ibetitsmike · Pull Request #27619 · coder/coder

X Title: fix(coderd/database): order the chat prompt query and its boundary by id by ibetitsmike · Pull Request #27619 · coder/coder

Description: Secure environments for developers and their agents - fix(coderd/database): order the chat prompt query and its boundary by id by ibetitsmike · Pull Request #27619 · coder/coder

Open Graph Description: Stack context Follows #27495 (merged), which gives chat_messages.id an append-order guarantee and moves the history reads onto it. This PR applies the same fix to the query that builds the model pr...

X Description: Stack context Follows #27495 (merged), which gives chat_messages.id an append-order guarantee and moves the history reads onto it. This PR applies the same fix to the query that builds the model pr...

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

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:874c173d-7eed-159b-9a0f-a01bfe12c208
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC46A:358871:1B547EC:23F4A70:6B014BB4
html-safe-nonceb8ebb987889653f29972e80188131067d12d6bc07cb7a321db12b0c97ea4e727
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDZBOjM1ODg3MToxQjU0N0VDOjIzRjRBNzA6NkIwMTRCQjQiLCJ2aXNpdG9yX2lkIjoiMzQ2NjU3NDA5NzU5OTc3NzcxNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacbad7f1032e48e487a6982616349103cb5c5b9c54fc74a7803e3e364d5e0fff3b
hovercard-subject-tagpull_request:4155283194
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/27619/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/2847319b97a22cbabe72745452a8746678b9ab59cdde324ac0bec01e4b5708b4/coder/coder/pull/27619
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2847319b97a22cbabe72745452a8746678b9ab59cdde324ac0bec01e4b5708b4/coder/coder/pull/27619
og:image:altStack context Follows #27495 (merged), which gives chat_messages.id an append-order guarantee and moves the history reads onto it. This PR applies the same fix to the query that builds the model pr...
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/27619#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F27619
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%2F27619
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/27619
Reloadhttps://github.com/coder/coder/pull/27619
Reloadhttps://github.com/coder/coder/pull/27619
coderhttps://github.com/coder
coderhttps://github.com/coder/coder
Codehttps://github.com/coder/coder
Issues320 (320)https://github.com/coder/coder/issues
Pull requests469 (469)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
mainhttps://github.com/coder/coder/tree/main
mike/chat-message-order/prompt-queryhttps://github.com/coder/coder/tree/mike/chat-message-order/prompt-query
Conversationhttps://github.com/coder/coder/pull/27619
Commits3 (3)https://github.com/coder/coder/pull/27619/commits
Checkshttps://github.com/coder/coder/pull/27619/checks
Files changedhttps://github.com/coder/coder/pull/27619/files
fix(coderd/database): order the chat prompt query and its boundary by idhttps://github.com/coder/coder/pull/27619#top
ibetitsmikehttps://github.com/ibetitsmike
mainhttps://github.com/coder/coder/tree/main
mike/chat-message-order/prompt-queryhttps://github.com/coder/coder/tree/mike/chat-message-order/prompt-query
https://github.com/ibetitsmike
ibetitsmikehttps://github.com/ibetitsmike
Jul 28, 2026https://github.com/coder/coder/pull/27619#issue-5003149811
Please reload this pagehttps://github.com/coder/coder/pull/27619
#27495https://github.com/coder/coder/pull/27495
Please reload this pagehttps://github.com/coder/coder/pull/27619
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
ibetitsmikehttps://github.com/ibetitsmike
Jul 28, 2026https://github.com/coder/coder/pull/27619#event-28624544012
https://github.com/ibetitsmike
ibetitsmikehttps://github.com/ibetitsmike
Jul 28, 2026 https://github.com/coder/coder/pull/27619#ref-pullrequest-5003152525
fix(site/src/pages/AgentsPage): order chat transcript by message id #27620 https://github.com/coder/coder/pull/27620
https://github.com/ibetitsmike
ibetitsmikehttps://github.com/ibetitsmike
force-pushedhttps://github.com/coder/coder/compare/850055159003b4d16dd5dc71a9731c14450ebd3b..56f7161401292ac0cf20feb0a6bce4162ed76a18
8500551https://github.com/coder/coder/commit/850055159003b4d16dd5dc71a9731c14450ebd3b
56f7161https://github.com/coder/coder/commit/56f7161401292ac0cf20feb0a6bce4162ed76a18
Compare https://github.com/coder/coder/compare/850055159003b4d16dd5dc71a9731c14450ebd3b..56f7161401292ac0cf20feb0a6bce4162ed76a18
July 28, 2026 22:03https://github.com/coder/coder/pull/27619#event-28625669692
https://github.com/ibetitsmike
ibetitsmikehttps://github.com/ibetitsmike
force-pushedhttps://github.com/coder/coder/compare/1e49a5edc3fc7326bd13dd8e7aeb3877b1d9b0ad..026bb956ff87524e0125eb395575e658db63c25c
1e49a5ehttps://github.com/coder/coder/commit/1e49a5edc3fc7326bd13dd8e7aeb3877b1d9b0ad
026bb95https://github.com/coder/coder/commit/026bb956ff87524e0125eb395575e658db63c25c
Compare https://github.com/coder/coder/compare/1e49a5edc3fc7326bd13dd8e7aeb3877b1d9b0ad..026bb956ff87524e0125eb395575e658db63c25c
July 28, 2026 22:58https://github.com/coder/coder/pull/27619#event-28627408625
https://github.com/ibetitsmike
ibetitsmikehttps://github.com/ibetitsmike
force-pushedhttps://github.com/coder/coder/compare/56f7161401292ac0cf20feb0a6bce4162ed76a18..d2ce6377cfb02d38c4fba214c660f5cf0d7bdd05
56f7161https://github.com/coder/coder/commit/56f7161401292ac0cf20feb0a6bce4162ed76a18
d2ce637https://github.com/coder/coder/commit/d2ce6377cfb02d38c4fba214c660f5cf0d7bdd05
Compare https://github.com/coder/coder/compare/56f7161401292ac0cf20feb0a6bce4162ed76a18..d2ce6377cfb02d38c4fba214c660f5cf0d7bdd05
July 28, 2026 22:58https://github.com/coder/coder/pull/27619#event-28627410600
https://github.com/ibetitsmike
ibetitsmikehttps://github.com/ibetitsmike
Jul 28, 2026https://github.com/coder/coder/pull/27619#issuecomment-5110640480
@codexhttps://github.com/codex
Please reload this pagehttps://github.com/coder/coder/pull/27619
https://github.com/apps/chatgpt-codex-connector
chatgpt-codex-connectorhttps://github.com/apps/chatgpt-codex-connector
Jul 28, 2026https://github.com/coder/coder/pull/27619#issuecomment-5110665303
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/27619
https://github.com/ibetitsmike
ibetitsmikehttps://github.com/ibetitsmike
force-pushedhttps://github.com/coder/coder/compare/026bb956ff87524e0125eb395575e658db63c25c..5d4893f1af9e4340cf1007af6a3b99cdbf818a18
026bb95https://github.com/coder/coder/commit/026bb956ff87524e0125eb395575e658db63c25c
5d4893fhttps://github.com/coder/coder/commit/5d4893f1af9e4340cf1007af6a3b99cdbf818a18
Compare https://github.com/coder/coder/compare/026bb956ff87524e0125eb395575e658db63c25c..5d4893f1af9e4340cf1007af6a3b99cdbf818a18
July 29, 2026 07:05https://github.com/coder/coder/pull/27619#event-28643156045
https://github.com/ibetitsmike
ibetitsmikehttps://github.com/ibetitsmike
force-pushedhttps://github.com/coder/coder/compare/d2ce6377cfb02d38c4fba214c660f5cf0d7bdd05..3ee593d604be7c646c690040424c7dad5429435d
d2ce637https://github.com/coder/coder/commit/d2ce6377cfb02d38c4fba214c660f5cf0d7bdd05
3ee593dhttps://github.com/coder/coder/commit/3ee593d604be7c646c690040424c7dad5429435d
Compare https://github.com/coder/coder/compare/d2ce6377cfb02d38c4fba214c660f5cf0d7bdd05..3ee593d604be7c646c690040424c7dad5429435d
July 29, 2026 07:05https://github.com/coder/coder/pull/27619#event-28643167941
https://github.com/ibetitsmike
ibetitsmikehttps://github.com/ibetitsmike
Jul 29, 2026https://github.com/coder/coder/pull/27619#issuecomment-5114327977
Please reload this pagehttps://github.com/coder/coder/pull/27619
https://github.com/ibetitsmike
ibetitsmikehttps://github.com/ibetitsmike
Jul 29, 2026https://github.com/coder/coder/pull/27619#issuecomment-5114330623
@codexhttps://github.com/codex
Please reload this pagehttps://github.com/coder/coder/pull/27619
https://github.com/apps/chatgpt-codex-connector
chatgpt-codex-connectorhttps://github.com/apps/chatgpt-codex-connector
Jul 29, 2026 https://github.com/coder/coder/pull/27619#pullrequestreview-4805043152
View reviewed changes https://github.com/coder/coder/pull/27619/files
chatgpt-codex-connectorhttps://github.com/apps/chatgpt-codex-connector
https://github.com/coder/coder/pull/27619#pullrequestreview-4805043152
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/27619
coderd/database/queries/chats.sqlhttps://github.com/coder/coder/pull/27619/files#diff-deaf675e579bf51b32df4a6af79415d37d3eb443281fa2c4321abfda2dd2f621
Please reload this pagehttps://github.com/coder/coder/pull/27619
July 29, 2026 07:17https://github.com/coder/coder/pull/27619#event-28643692640
https://github.com/ibetitsmike
ibetitsmikehttps://github.com/ibetitsmike
Jul 29, 2026https://github.com/coder/coder/pull/27619#issuecomment-5114450923
@codexhttps://github.com/codex
Please reload this pagehttps://github.com/coder/coder/pull/27619
ibetitsmikehttps://github.com/ibetitsmike
July 29, 2026 07:26https://github.com/coder/coder/pull/27619#commits-pushed-955e2ad
https://github.com/ibetitsmike
fix(coderd/database): order the chat prompt query and its boundary by idhttps://github.com/coder/coder/pull/27619/commits/955e2ad611e425573b3550ba76fbdc9fb591ec9e
955e2adhttps://github.com/coder/coder/pull/27619/commits/955e2ad611e425573b3550ba76fbdc9fb591ec9e
https://github.com/ibetitsmike
test(coderd/database): tighten prompt query comment and reuse the id …https://github.com/coder/coder/pull/27619/commits/d974c9eee521a3ffcaed150adafdf1dbe0c974bd
d974c9ehttps://github.com/coder/coder/pull/27619/commits/d974c9eee521a3ffcaed150adafdf1dbe0c974bd
https://github.com/apps/chatgpt-codex-connector
chatgpt-codex-connectorhttps://github.com/apps/chatgpt-codex-connector
Jul 29, 2026https://github.com/coder/coder/pull/27619#issuecomment-5114499795
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/27619
https://github.com/ibetitsmike
ibetitsmikehttps://github.com/ibetitsmike
force-pushedhttps://github.com/coder/coder/compare/3ee593d604be7c646c690040424c7dad5429435d..d974c9eee521a3ffcaed150adafdf1dbe0c974bd
3ee593dhttps://github.com/coder/coder/commit/3ee593d604be7c646c690040424c7dad5429435d
d974c9ehttps://github.com/coder/coder/commit/d974c9eee521a3ffcaed150adafdf1dbe0c974bd
Compare https://github.com/coder/coder/compare/3ee593d604be7c646c690040424c7dad5429435d..d974c9eee521a3ffcaed150adafdf1dbe0c974bd
July 29, 2026 07:31https://github.com/coder/coder/pull/27619#event-28644308336
https://github.com/ibetitsmike
ibetitsmikehttps://github.com/ibetitsmike
Jul 29, 2026https://github.com/coder/coder/pull/27619#issuecomment-5114534269
@codexhttps://github.com/codex
Please reload this pagehttps://github.com/coder/coder/pull/27619
https://github.com/apps/chatgpt-codex-connector
chatgpt-codex-connectorhttps://github.com/apps/chatgpt-codex-connector
Jul 29, 2026 https://github.com/coder/coder/pull/27619#pullrequestreview-4805256155
View reviewed changes https://github.com/coder/coder/pull/27619/files/d974c9eee521a3ffcaed150adafdf1dbe0c974bd
chatgpt-codex-connectorhttps://github.com/apps/chatgpt-codex-connector
https://github.com/coder/coder/pull/27619#pullrequestreview-4805256155
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/27619
coderd/database/queries/chats.sqlhttps://github.com/coder/coder/pull/27619/files/d974c9eee521a3ffcaed150adafdf1dbe0c974bd#diff-deaf675e579bf51b32df4a6af79415d37d3eb443281fa2c4321abfda2dd2f621
Please reload this pagehttps://github.com/coder/coder/pull/27619
https://github.com/ibetitsmike
fix(coderd/database): rebuild the chat summary boundary index by idhttps://github.com/coder/coder/pull/27619/commits/387640a10016b80304b8750fea48e8272b845e7a
387640ahttps://github.com/coder/coder/pull/27619/commits/387640a10016b80304b8750fea48e8272b845e7a
https://github.com/ibetitsmike
ibetitsmikehttps://github.com/ibetitsmike
Jul 29, 2026https://github.com/coder/coder/pull/27619#issuecomment-5114886986
@codexhttps://github.com/codex
Please reload this pagehttps://github.com/coder/coder/pull/27619
https://github.com/apps/chatgpt-codex-connector
chatgpt-codex-connectorhttps://github.com/apps/chatgpt-codex-connector
Jul 29, 2026https://github.com/coder/coder/pull/27619#issuecomment-5114916743
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/27619
https://github.com/johnstcn
johnstcnhttps://github.com/johnstcn
Jul 29, 2026 https://github.com/coder/coder/pull/27619#pullrequestreview-4806418875
View reviewed changes https://github.com/coder/coder/pull/27619/files/387640a10016b80304b8750fea48e8272b845e7a
johnstcnhttps://github.com/johnstcn
https://github.com/coder/coder/pull/27619#pullrequestreview-4806418875
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/27619
https://github.com/ibetitsmike
ibetitsmikehttps://github.com/ibetitsmike
1c722ffhttps://github.com/coder/coder/commit/1c722ff969ff1c089ece507ad19be54400580550
Jul 29, 2026https://github.com/coder/coder/pull/27619#event-28658195166
Please reload this pagehttps://github.com/coder/coder/pull/27619
https://github.com/ibetitsmike
ibetitsmikehttps://github.com/ibetitsmike
July 29, 2026 12:05https://github.com/coder/coder/pull/27619#event-28658197829
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Jul 29, 2026https://github.com/coder/coder/pull/27619#event-28658206896
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%2F27619
https://github.com/apps/chatgpt-codex-connector
chatgpt-codex-connector[bot] https://github.com/apps/chatgpt-codex-connector
https://github.com/coder/coder/pull/27619/files/d974c9eee521a3ffcaed150adafdf1dbe0c974bd
https://github.com/johnstcn
johnstcn https://github.com/johnstcn
https://github.com/coder/coder/pull/27619/files/387640a10016b80304b8750fea48e8272b845e7a
Please reload this pagehttps://github.com/coder/coder/pull/27619
https://github.com/ibetitsmike
ibetitsmike https://github.com/ibetitsmike
Please reload this pagehttps://github.com/coder/coder/pull/27619
https://github.com/ibetitsmike
https://github.com/johnstcn
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.