René's URL Explorer Experiment


Title: feat(coderd/chatd): unify chat storage on SDK parts and fix file-reference rendering by mafredri · Pull Request #22958 · coder/coder · GitHub

Open Graph Title: feat(coderd/chatd): unify chat storage on SDK parts and fix file-reference rendering by mafredri · Pull Request #22958 · coder/coder

X Title: feat(coderd/chatd): unify chat storage on SDK parts and fix file-reference rendering by mafredri · Pull Request #22958 · coder/coder

Description: Secure environments for developers and their agents - feat(coderd/chatd): unify chat storage on SDK parts and fix file-reference rendering by mafredri · Pull Request #22958 · coder/coder

Open Graph Description: File-reference parts in user messages were flattened to TextContent at write time because fantasy has no file-reference content type. The frontend never saw them as structured parts. This moves all...

X Description: File-reference parts in user messages were flattened to TextContent at write time because fantasy has no file-reference content type. The frontend never saw them as structured parts. This moves all...

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

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/:user_id/:repository/pull/*id(.:format)
route-controllerpull_requests
route-actionshow
fetch-noncev2:3e43cdad-f596-947f-c12d-484e785ced54
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDD82:FC5BE:2B378DC:396C557:6B01C33E
html-safe-noncec707025181d4b4997b4b732064ecba3996cec49b5fbb8b4055a0e961b0bdbd5e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERDgyOkZDNUJFOjJCMzc4REM6Mzk2QzU1Nzo2QjAxQzMzRSIsInZpc2l0b3JfaWQiOiI4MTA5MDIxMzExNzUxMjc1MzI2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac46a69b164e59eb1670df9db7957ae525839a2b4612ca341a0d2377e563189974
hovercard-subject-tagpull_request:3385192406
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///pull_requests/show
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/coder/coder/pull/22958
twitter:imagehttps://opengraph.githubassets.com/a8f111aa8210ac81b5cd6fe45b9be39e4edf544717404e51dee26c8b621d12be/coder/coder/pull/22958
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a8f111aa8210ac81b5cd6fe45b9be39e4edf544717404e51dee26c8b621d12be/coder/coder/pull/22958
og:image:altFile-reference parts in user messages were flattened to TextContent at write time because fantasy has no file-reference content type. The frontend never saw them as structured parts. This moves all...
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/22958#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F22958
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%2F22958
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow&source=header-repo&source_repo=coder%2Fcoder
Reloadhttps://github.com/coder/coder/pull/22958
Reloadhttps://github.com/coder/coder/pull/22958
Reloadhttps://github.com/coder/coder/pull/22958
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
mafredri/feat-unify-chat-storagehttps://github.com/coder/coder/tree/mafredri/feat-unify-chat-storage
Conversationhttps://github.com/coder/coder/pull/22958
Commits13 (13)https://github.com/coder/coder/pull/22958/commits
Checkshttps://github.com/coder/coder/pull/22958/checks
Files changedhttps://github.com/coder/coder/pull/22958/files
feat(coderd/chatd): unify chat storage on SDK parts and fix file-reference renderinghttps://github.com/coder/coder/pull/22958#top
mafredrihttps://github.com/mafredri
mainhttps://github.com/coder/coder/tree/main
mafredri/feat-unify-chat-storagehttps://github.com/coder/coder/tree/mafredri/feat-unify-chat-storage
https://github.com/mafredri
mafredrihttps://github.com/mafredri
Mar 11, 2026https://github.com/coder/coder/pull/22958#issue-4059462226
Please reload this pagehttps://github.com/coder/coder/pull/22958
#22821https://github.com/coder/coder/pull/22821
Please reload this pagehttps://github.com/coder/coder/pull/22958
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
mafredrihttps://github.com/mafredri
Mar 11, 2026https://github.com/coder/coder/pull/22958#event-23477906950
https://github.com/mafredri
mafredrihttps://github.com/mafredri
force-pushedhttps://github.com/coder/coder/compare/f91f256409be3c89743f0ea0775ddf184f707a3f..4ba384886833cba58e09fc04d7c05c6810d39df5
f91f256https://github.com/coder/coder/commit/f91f256409be3c89743f0ea0775ddf184f707a3f
4ba3848https://github.com/coder/coder/commit/4ba384886833cba58e09fc04d7c05c6810d39df5
Compare https://github.com/coder/coder/compare/f91f256409be3c89743f0ea0775ddf184f707a3f..4ba384886833cba58e09fc04d7c05c6810d39df5
March 12, 2026 16:52https://github.com/coder/coder/pull/22958#event-23515782508
mafredrihttps://github.com/mafredri
March 13, 2026 10:56https://github.com/coder/coder/pull/22958#commits-pushed-5719b3f
https://github.com/mafredri
feat(coderd/chatd/chatprompt): unify read path on SDK partshttps://github.com/coder/coder/pull/22958/commits/5719b3f9314505e7934c71d2d3fc509d5b96da82
5719b3fhttps://github.com/coder/coder/pull/22958/commits/5719b3f9314505e7934c71d2d3fc509d5b96da82
#22821https://github.com/coder/coder/pull/22821
https://github.com/mafredri
feat(coderd/chats): switch user-message write path to SDK partshttps://github.com/coder/coder/pull/22958/commits/be960b47b1c1a170eba241c4348ce251a0747dee
be960b4https://github.com/coder/coder/pull/22958/commits/be960b47b1c1a170eba241c4348ce251a0747dee
#22821https://github.com/coder/coder/pull/22821
https://github.com/mafredri
feat(coderd/chatd): switch assistant/tool write path to SDK partshttps://github.com/coder/coder/pull/22958/commits/3852f3fbb2c258b484ee92d26f8242f24dd80aed
3852f3fhttps://github.com/coder/coder/pull/22958/commits/3852f3fbb2c258b484ee92d26f8242f24dd80aed
#22821https://github.com/coder/coder/pull/22821
https://github.com/mafredri
fix(coderd/chatd/chatprompt): use structural check for assistant form…https://github.com/coder/coder/pull/22958/commits/7a0bf57c1d7b66ce4b6fd28b720572be2a76124e
7a0bf57https://github.com/coder/coder/pull/22958/commits/7a0bf57c1d7b66ce4b6fd28b720572be2a76124e
#22821https://github.com/coder/coder/pull/22821
https://github.com/mafredri
test(coderd/chatd/chatprompt): add backward-compat and round-trip testshttps://github.com/coder/coder/pull/22958/commits/8a42396d622824d4e603897cbe29da74c0de1ead
8a42396https://github.com/coder/coder/pull/22958/commits/8a42396d622824d4e603897cbe29da74c0de1ead
#22821https://github.com/coder/coder/pull/22821
https://github.com/mafredri
fix(codersdk): fix ProviderExecuted comment, add queued message round…https://github.com/coder/coder/pull/22958/commits/d8f3c67908d2a386c5d9d44a888eb49d62e877e3
d8f3c67https://github.com/coder/coder/pull/22958/commits/d8f3c67908d2a386c5d9d44a888eb49d62e877e3
#22821https://github.com/coder/coder/pull/22821
https://github.com/mafredri
fix(codersdk): exclude ProviderMetadata from TypeScript generationhttps://github.com/coder/coder/pull/22958/commits/328a8690bc30fb727efa3a9a10fa3f2dd5c9fe2e
328a869https://github.com/coder/coder/pull/22958/commits/328a8690bc30fb727efa3a9a10fa3f2dd5c9fe2e
https://github.com/mafredri
test(coderd/chats): update file-reference tests for structured part typehttps://github.com/coder/coder/pull/22958/commits/319b9009bac8d2add6861e2f0f7c58fe669b8587
319b900https://github.com/coder/coder/pull/22958/commits/319b9009bac8d2add6861e2f0f7c58fe669b8587
#22821https://github.com/coder/coder/pull/22821
https://github.com/mafredri
refactor: documentation, constructors and logginghttps://github.com/coder/coder/pull/22958/commits/2472e690f3c560595f835f9eb098bb7e52907e56
2472e69https://github.com/coder/coder/pull/22958/commits/2472e690f3c560595f835f9eb098bb7e52907e56
https://github.com/mafredri
fix(codersdk): fix streaming ProviderMetadata leak and complete const…https://github.com/coder/coder/pull/22958/commits/d92161ffc7bd27a3b2d4a641bc51a22d90c3b48b
d92161fhttps://github.com/coder/coder/pull/22958/commits/d92161ffc7bd27a3b2d4a641bc51a22d90c3b48b
https://github.com/mafredri
mafredrihttps://github.com/mafredri
force-pushedhttps://github.com/coder/coder/compare/4ba384886833cba58e09fc04d7c05c6810d39df5..d92161ffc7bd27a3b2d4a641bc51a22d90c3b48b
4ba3848https://github.com/coder/coder/commit/4ba384886833cba58e09fc04d7c05c6810d39df5
d92161fhttps://github.com/coder/coder/commit/d92161ffc7bd27a3b2d4a641bc51a22d90c3b48b
Compare https://github.com/coder/coder/compare/4ba384886833cba58e09fc04d7c05c6810d39df5..d92161ffc7bd27a3b2d4a641bc51a22d90c3b48b
March 13, 2026 11:05https://github.com/coder/coder/pull/22958#event-23541981275
https://github.com/mafredri
test(coderd/chatd/chatprompt): add backward-compat tests and cleanuphttps://github.com/coder/coder/pull/22958/commits/ebbbcc65461be9107abab3072af31e5e965fb862
ebbbcc6https://github.com/coder/coder/pull/22958/commits/ebbbcc65461be9107abab3072af31e5e965fb862
https://github.com/mafredri
mafredrihttps://github.com/mafredri
force-pushedhttps://github.com/coder/coder/compare/197cd81948ec7b9af4b293c89e0c83059473863f..4929d83810025a066b81f300753a0ef0c83ddc11
197cd81https://github.com/coder/coder/commit/197cd81948ec7b9af4b293c89e0c83059473863f
4929d83https://github.com/coder/coder/commit/4929d83810025a066b81f300753a0ef0c83ddc11
Compare https://github.com/coder/coder/compare/197cd81948ec7b9af4b293c89e0c83059473863f..4929d83810025a066b81f300753a0ef0c83ddc11
March 13, 2026 13:40https://github.com/coder/coder/pull/22958#event-23546554734
https://github.com/mafredri
refactor(codersdk): add ChatMessageRole type, remove magic role stringshttps://github.com/coder/coder/pull/22958/commits/516309fc0d03df6c43213f5e22b95eed3d90488c
516309fhttps://github.com/coder/coder/pull/22958/commits/516309fc0d03df6c43213f5e22b95eed3d90488c
https://github.com/mafredri
mafredrihttps://github.com/mafredri
force-pushedhttps://github.com/coder/coder/compare/4929d83810025a066b81f300753a0ef0c83ddc11..516309fc0d03df6c43213f5e22b95eed3d90488c
4929d83https://github.com/coder/coder/commit/4929d83810025a066b81f300753a0ef0c83ddc11
516309fhttps://github.com/coder/coder/commit/516309fc0d03df6c43213f5e22b95eed3d90488c
Compare https://github.com/coder/coder/compare/4929d83810025a066b81f300753a0ef0c83ddc11..516309fc0d03df6c43213f5e22b95eed3d90488c
March 13, 2026 13:44https://github.com/coder/coder/pull/22958#event-23546684489
https://github.com/mafredri
Merge remote-tracking branch 'origin/main' into mafredri/feat-unify-c…https://github.com/coder/coder/pull/22958/commits/807ff423c486a7e22305b4ea6ac841e1f15b8e46
807ff42https://github.com/coder/coder/pull/22958/commits/807ff423c486a7e22305b4ea6ac841e1f15b8e46
https://github.com/mafredri
mafredrihttps://github.com/mafredri
March 13, 2026 14:10https://github.com/coder/coder/pull/22958#event-23547621522
https://github.com/mafredri
mafredrihttps://github.com/mafredri
johnstcnhttps://github.com/johnstcn
kylecarbshttps://github.com/kylecarbs
March 13, 2026 14:11https://github.com/coder/coder/pull/22958#event-23547624984
https://github.com/kylecarbs
kylecarbshttps://github.com/kylecarbs
Mar 13, 2026 https://github.com/coder/coder/pull/22958#pullrequestreview-3944676305
View reviewed changes https://github.com/coder/coder/pull/22958/files/807ff423c486a7e22305b4ea6ac841e1f15b8e46
kylecarbshttps://github.com/kylecarbs
https://github.com/coder/coder/pull/22958#pullrequestreview-3944676305
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/22958
codersdk/chats.gohttps://github.com/coder/coder/pull/22958/files/807ff423c486a7e22305b4ea6ac841e1f15b8e46#diff-897877136a20fe9613cd72c761f37a0fe0d71f4cf020fe929369b2e944ceea98
kylecarbshttps://github.com/kylecarbs
Mar 13, 2026https://github.com/coder/coder/pull/22958#discussion_r2931779438
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/22958
https://github.com/johnstcn
johnstcnhttps://github.com/johnstcn
Mar 13, 2026 https://github.com/coder/coder/pull/22958#pullrequestreview-3944896758
View reviewed changes https://github.com/coder/coder/pull/22958/files/807ff423c486a7e22305b4ea6ac841e1f15b8e46
johnstcnhttps://github.com/johnstcn
https://github.com/coder/coder/pull/22958#pullrequestreview-3944896758
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/22958
https://github.com/mafredri
mafredrihttps://github.com/mafredri
Mar 13, 2026 https://github.com/coder/coder/pull/22958#ref-pullrequest-4071930143
refactor: add chat_message_role enum and content_version column #23042 https://github.com/coder/coder/pull/23042
https://github.com/mafredri
mafredrihttps://github.com/mafredri
bdbcd34https://github.com/coder/coder/commit/bdbcd3428bbb9ecd11890efbdde9a983f1b9b8d6
Mar 13, 2026https://github.com/coder/coder/pull/22958#event-23551484536
Please reload this pagehttps://github.com/coder/coder/pull/22958
https://github.com/mafredri
mafredrihttps://github.com/mafredri
March 13, 2026 15:53https://github.com/coder/coder/pull/22958#event-23551485974
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Mar 13, 2026https://github.com/coder/coder/pull/22958#event-23551490731
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%2F22958
https://github.com/johnstcn
johnstcn https://github.com/johnstcn
https://github.com/coder/coder/pull/22958/files/807ff423c486a7e22305b4ea6ac841e1f15b8e46
https://github.com/kylecarbs
kylecarbs https://github.com/kylecarbs
https://github.com/coder/coder/pull/22958/files/807ff423c486a7e22305b4ea6ac841e1f15b8e46
Please reload this pagehttps://github.com/coder/coder/pull/22958
https://github.com/mafredri
mafredri https://github.com/mafredri
Please reload this pagehttps://github.com/coder/coder/pull/22958
https://github.com/mafredri
https://github.com/johnstcn
https://github.com/kylecarbs
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.