| react-profiling | 0 |
| react-import-map | react,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-controller | pull_requests |
| route-action | show |
| fetch-nonce | v2:3e43cdad-f596-947f-c12d-484e785ced54 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DD82:FC5BE:2B378DC:396C557:6B01C33E |
| html-safe-nonce | c707025181d4b4997b4b732064ecba3996cec49b5fbb8b4055a0e961b0bdbd5e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERDgyOkZDNUJFOjJCMzc4REM6Mzk2QzU1Nzo2QjAxQzMzRSIsInZpc2l0b3JfaWQiOiI4MTA5MDIxMzExNzUxMjc1MzI2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 46a69b164e59eb1670df9db7957ae525839a2b4612ca341a0d2377e563189974 |
| hovercard-subject-tag | pull_request:3385192406 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/coder/coder/pull/22958 |
| twitter:image | https://opengraph.githubassets.com/a8f111aa8210ac81b5cd6fe45b9be39e4edf544717404e51dee26c8b621d12be/coder/coder/pull/22958 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a8f111aa8210ac81b5cd6fe45b9be39e4edf544717404e51dee26c8b621d12be/coder/coder/pull/22958 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mafredri |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-cache |
| go-import | github.com/coder/coder git https://github.com/coder/coder.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 440752086 |
| octolytics-dimension-repository_nwo | coder/coder |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 440752086 |
| octolytics-dimension-repository_network_root_nwo | coder/coder |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/coder/coder/pull/22958#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F22958 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F22958 |
| Sign up | https://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 |
| Reload | https://github.com/coder/coder/pull/22958 |
| Reload | https://github.com/coder/coder/pull/22958 |
| Reload | https://github.com/coder/coder/pull/22958 |
| coder | https://github.com/coder |
| coder | https://github.com/coder/coder |
| Code | https://github.com/coder/coder |
| Issues320 (320) | https://github.com/coder/coder/issues |
| Pull requests470 (470) | https://github.com/coder/coder/pulls |
| Discussions | https://github.com/coder/coder/discussions |
| Actions | https://github.com/coder/coder/actions |
| Projects | https://github.com/coder/coder/projects |
| Security and quality49 (49) | https://github.com/coder/coder/security |
| Insights | https://github.com/coder/coder/insights |
| https://github.com/coder/coder |
| mafredri | https://github.com/mafredri |
| main | https://github.com/coder/coder/tree/main |
| mafredri/feat-unify-chat-storage | https://github.com/coder/coder/tree/mafredri/feat-unify-chat-storage |
| Conversation | https://github.com/coder/coder/pull/22958 |
| Commits13 (13) | https://github.com/coder/coder/pull/22958/commits |
| Checks | https://github.com/coder/coder/pull/22958/checks |
| Files changed | https://github.com/coder/coder/pull/22958/files |
| feat(coderd/chatd): unify chat storage on SDK parts and fix file-reference rendering | https://github.com/coder/coder/pull/22958#top |
| mafredri | https://github.com/mafredri |
| main | https://github.com/coder/coder/tree/main |
| mafredri/feat-unify-chat-storage | https://github.com/coder/coder/tree/mafredri/feat-unify-chat-storage |
|
| https://github.com/mafredri |
| mafredri | https://github.com/mafredri |
| Mar 11, 2026 | https://github.com/coder/coder/pull/22958#issue-4059462226 |
| Please reload this page | https://github.com/coder/coder/pull/22958 |
| #22821 | https://github.com/coder/coder/pull/22821 |
| Please reload this page | https://github.com/coder/coder/pull/22958 |
| https://github.com/apps/github-actions |
| github-actions | https://github.com/apps/github-actions |
| mafredri | https://github.com/mafredri |
| Mar 11, 2026 | https://github.com/coder/coder/pull/22958#event-23477906950 |
| https://github.com/mafredri |
| mafredri | https://github.com/mafredri |
| force-pushed | https://github.com/coder/coder/compare/f91f256409be3c89743f0ea0775ddf184f707a3f..4ba384886833cba58e09fc04d7c05c6810d39df5 |
| f91f256 | https://github.com/coder/coder/commit/f91f256409be3c89743f0ea0775ddf184f707a3f |
| 4ba3848 | https://github.com/coder/coder/commit/4ba384886833cba58e09fc04d7c05c6810d39df5 |
|
Compare
| https://github.com/coder/coder/compare/f91f256409be3c89743f0ea0775ddf184f707a3f..4ba384886833cba58e09fc04d7c05c6810d39df5 |
| March 12, 2026 16:52 | https://github.com/coder/coder/pull/22958#event-23515782508 |
| mafredri | https://github.com/mafredri |
| March 13, 2026 10:56 | https://github.com/coder/coder/pull/22958#commits-pushed-5719b3f |
|
| https://github.com/mafredri |
| feat(coderd/chatd/chatprompt): unify read path on SDK parts | https://github.com/coder/coder/pull/22958/commits/5719b3f9314505e7934c71d2d3fc509d5b96da82 |
| 5719b3f | https://github.com/coder/coder/pull/22958/commits/5719b3f9314505e7934c71d2d3fc509d5b96da82 |
| #22821 | https://github.com/coder/coder/pull/22821 |
|
| https://github.com/mafredri |
| feat(coderd/chats): switch user-message write path to SDK parts | https://github.com/coder/coder/pull/22958/commits/be960b47b1c1a170eba241c4348ce251a0747dee |
| be960b4 | https://github.com/coder/coder/pull/22958/commits/be960b47b1c1a170eba241c4348ce251a0747dee |
| #22821 | https://github.com/coder/coder/pull/22821 |
|
| https://github.com/mafredri |
| feat(coderd/chatd): switch assistant/tool write path to SDK parts | https://github.com/coder/coder/pull/22958/commits/3852f3fbb2c258b484ee92d26f8242f24dd80aed |
| 3852f3f | https://github.com/coder/coder/pull/22958/commits/3852f3fbb2c258b484ee92d26f8242f24dd80aed |
| #22821 | https://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 |
| 7a0bf57 | https://github.com/coder/coder/pull/22958/commits/7a0bf57c1d7b66ce4b6fd28b720572be2a76124e |
| #22821 | https://github.com/coder/coder/pull/22821 |
|
| https://github.com/mafredri |
| test(coderd/chatd/chatprompt): add backward-compat and round-trip tests | https://github.com/coder/coder/pull/22958/commits/8a42396d622824d4e603897cbe29da74c0de1ead |
| 8a42396 | https://github.com/coder/coder/pull/22958/commits/8a42396d622824d4e603897cbe29da74c0de1ead |
| #22821 | https://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 |
| d8f3c67 | https://github.com/coder/coder/pull/22958/commits/d8f3c67908d2a386c5d9d44a888eb49d62e877e3 |
| #22821 | https://github.com/coder/coder/pull/22821 |
|
| https://github.com/mafredri |
| fix(codersdk): exclude ProviderMetadata from TypeScript generation | https://github.com/coder/coder/pull/22958/commits/328a8690bc30fb727efa3a9a10fa3f2dd5c9fe2e |
| 328a869 | https://github.com/coder/coder/pull/22958/commits/328a8690bc30fb727efa3a9a10fa3f2dd5c9fe2e |
|
| https://github.com/mafredri |
| test(coderd/chats): update file-reference tests for structured part type | https://github.com/coder/coder/pull/22958/commits/319b9009bac8d2add6861e2f0f7c58fe669b8587 |
| 319b900 | https://github.com/coder/coder/pull/22958/commits/319b9009bac8d2add6861e2f0f7c58fe669b8587 |
| #22821 | https://github.com/coder/coder/pull/22821 |
|
| https://github.com/mafredri |
| refactor: documentation, constructors and logging | https://github.com/coder/coder/pull/22958/commits/2472e690f3c560595f835f9eb098bb7e52907e56 |
| 2472e69 | https://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 |
| d92161f | https://github.com/coder/coder/pull/22958/commits/d92161ffc7bd27a3b2d4a641bc51a22d90c3b48b |
| https://github.com/mafredri |
| mafredri | https://github.com/mafredri |
| force-pushed | https://github.com/coder/coder/compare/4ba384886833cba58e09fc04d7c05c6810d39df5..d92161ffc7bd27a3b2d4a641bc51a22d90c3b48b |
| 4ba3848 | https://github.com/coder/coder/commit/4ba384886833cba58e09fc04d7c05c6810d39df5 |
| d92161f | https://github.com/coder/coder/commit/d92161ffc7bd27a3b2d4a641bc51a22d90c3b48b |
|
Compare
| https://github.com/coder/coder/compare/4ba384886833cba58e09fc04d7c05c6810d39df5..d92161ffc7bd27a3b2d4a641bc51a22d90c3b48b |
| March 13, 2026 11:05 | https://github.com/coder/coder/pull/22958#event-23541981275 |
|
| https://github.com/mafredri |
| test(coderd/chatd/chatprompt): add backward-compat tests and cleanup | https://github.com/coder/coder/pull/22958/commits/ebbbcc65461be9107abab3072af31e5e965fb862 |
| ebbbcc6 | https://github.com/coder/coder/pull/22958/commits/ebbbcc65461be9107abab3072af31e5e965fb862 |
| https://github.com/mafredri |
| mafredri | https://github.com/mafredri |
| force-pushed | https://github.com/coder/coder/compare/197cd81948ec7b9af4b293c89e0c83059473863f..4929d83810025a066b81f300753a0ef0c83ddc11 |
| 197cd81 | https://github.com/coder/coder/commit/197cd81948ec7b9af4b293c89e0c83059473863f |
| 4929d83 | https://github.com/coder/coder/commit/4929d83810025a066b81f300753a0ef0c83ddc11 |
|
Compare
| https://github.com/coder/coder/compare/197cd81948ec7b9af4b293c89e0c83059473863f..4929d83810025a066b81f300753a0ef0c83ddc11 |
| March 13, 2026 13:40 | https://github.com/coder/coder/pull/22958#event-23546554734 |
|
| https://github.com/mafredri |
| refactor(codersdk): add ChatMessageRole type, remove magic role strings | https://github.com/coder/coder/pull/22958/commits/516309fc0d03df6c43213f5e22b95eed3d90488c |
| 516309f | https://github.com/coder/coder/pull/22958/commits/516309fc0d03df6c43213f5e22b95eed3d90488c |
| https://github.com/mafredri |
| mafredri | https://github.com/mafredri |
| force-pushed | https://github.com/coder/coder/compare/4929d83810025a066b81f300753a0ef0c83ddc11..516309fc0d03df6c43213f5e22b95eed3d90488c |
| 4929d83 | https://github.com/coder/coder/commit/4929d83810025a066b81f300753a0ef0c83ddc11 |
| 516309f | https://github.com/coder/coder/commit/516309fc0d03df6c43213f5e22b95eed3d90488c |
|
Compare
| https://github.com/coder/coder/compare/4929d83810025a066b81f300753a0ef0c83ddc11..516309fc0d03df6c43213f5e22b95eed3d90488c |
| March 13, 2026 13:44 | https://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 |
| 807ff42 | https://github.com/coder/coder/pull/22958/commits/807ff423c486a7e22305b4ea6ac841e1f15b8e46 |
| https://github.com/mafredri |
| mafredri | https://github.com/mafredri |
| March 13, 2026 14:10 | https://github.com/coder/coder/pull/22958#event-23547621522 |
| https://github.com/mafredri |
| mafredri | https://github.com/mafredri |
| johnstcn | https://github.com/johnstcn |
| kylecarbs | https://github.com/kylecarbs |
| March 13, 2026 14:11 | https://github.com/coder/coder/pull/22958#event-23547624984 |
| https://github.com/kylecarbs |
| kylecarbs | https://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 |
| kylecarbs | https://github.com/kylecarbs |
| https://github.com/coder/coder/pull/22958#pullrequestreview-3944676305 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/coder/coder/pull/22958 |
| codersdk/chats.go | https://github.com/coder/coder/pull/22958/files/807ff423c486a7e22305b4ea6ac841e1f15b8e46#diff-897877136a20fe9613cd72c761f37a0fe0d71f4cf020fe929369b2e944ceea98 |
| kylecarbs | https://github.com/kylecarbs |
| Mar 13, 2026 | https://github.com/coder/coder/pull/22958#discussion_r2931779438 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/coder/coder/pull/22958 |
| https://github.com/johnstcn |
| johnstcn | https://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 |
| johnstcn | https://github.com/johnstcn |
| https://github.com/coder/coder/pull/22958#pullrequestreview-3944896758 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/coder/coder/pull/22958 |
| https://github.com/mafredri |
| mafredri | https://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 |
| mafredri | https://github.com/mafredri |
| bdbcd34 | https://github.com/coder/coder/commit/bdbcd3428bbb9ecd11890efbdde9a983f1b9b8d6 |
| Mar 13, 2026 | https://github.com/coder/coder/pull/22958#event-23551484536 |
| Please reload this page | https://github.com/coder/coder/pull/22958 |
| https://github.com/mafredri |
| mafredri | https://github.com/mafredri |
| March 13, 2026 15:53 | https://github.com/coder/coder/pull/22958#event-23551485974 |
| https://github.com/apps/github-actions |
| github-actions | https://github.com/apps/github-actions |
| Mar 13, 2026 | https://github.com/coder/coder/pull/22958#event-23551490731 |
| https://github.co/hiddenchars |
| https://github.com/coder/coder/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in | https://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 page | https://github.com/coder/coder/pull/22958 |
|
| https://github.com/mafredri |
|
mafredri
| https://github.com/mafredri |
| Please reload this page | https://github.com/coder/coder/pull/22958 |
|
| https://github.com/mafredri |
|
| https://github.com/johnstcn |
|
| https://github.com/kylecarbs |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |