| 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/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:a688a3ea-7b08-fbde-3798-2048dbf234d8 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B15C:2D02CB:9E55A:D2807:6B015DE2 |
| html-safe-nonce | 7de544c76e49079393ac574a30750bf19728eff52d8d63440b186953aefa9068 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTVDOjJEMDJDQjo5RTU1QTpEMjgwNzo2QjAxNURFMiIsInZpc2l0b3JfaWQiOiI4MzE2MjA5MjY3MDk0OTM3MDU4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d027605d3227f5854a5d42b525e41d3e5abea8aa3a8988f01c9f8570f6c4db13 |
| hovercard-subject-tag | pull_request:5043837045 |
| 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/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/coder/coder/pull/31384/files |
| twitter:image | https://avatars.githubusercontent.com/u/39577870?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/39577870?s=400&v=4 |
| og:image:alt | Part of CODAGT-1430. Stacked on #31383.
We had two rules for which media a model can take. AcceptsFilePartMediaType filtered user attachments, whilst ToolResultMediaOmission filtered tool results w... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| 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 |
| Skip to content | https://github.com/coder/coder/pull/31384/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F31384%2Ffiles |
| 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%2F31384%2Ffiles |
| 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%2Ffiles&source=header-repo&source_repo=coder%2Fcoder |
| Reload | https://github.com/coder/coder/pull/31384/files |
| Reload | https://github.com/coder/coder/pull/31384/files |
| Reload | https://github.com/coder/coder/pull/31384/files |
| 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 |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fcoder%2Fcoder%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fcoder%2Fcoder%2Fissues%2Fnew%2Fchoose |
| ethanndickson | https://github.com/ethanndickson |
| codagt-1430-tool-result-filename | https://github.com/coder/coder/tree/codagt-1430-tool-result-filename |
| codagt-1430-media-rule | https://github.com/coder/coder/tree/codagt-1430-media-rule |
|
Conversation
17
| https://github.com/coder/coder/pull/31384 |
|
Commits
6
| https://github.com/coder/coder/pull/31384/commits |
|
Checks
73
| https://github.com/coder/coder/pull/31384/checks |
|
Files changed
| https://github.com/coder/coder/pull/31384/files |
| Please reload this page | https://github.com/coder/coder/pull/31384/files |
|
fix: use one route-aware media rule for files and tool results
| https://github.com/coder/coder/pull/31384/files#top |
|
Show all changes
6 commits
| https://github.com/coder/coder/pull/31384/files |
|
1431e32
fix(coderd/x/chatd): use one route-aware media rule for files and too…
ethanndickson Oct 23, 2026
| https://github.com/coder/coder/pull/31384/commits/1431e329500a5e09d8fe1537b9a820b99349d464 |
|
c3fffc8
docs(docs/ai-coder/agents/platform-controls): describe images and PDF…
ethanndickson Oct 23, 2026
| https://github.com/coder/coder/pull/31384/commits/c3fffc8209c5cf3424e64a22bffc1cf39db305fe |
|
2a07a92
fix(coderd/x/chatd/chatprovider): send no PDFs on Azure and Google ro…
ethanndickson Oct 28, 2026
| https://github.com/coder/coder/pull/31384/commits/2a07a92cdc7fcb4f44eca202afdecf4037843e83 |
|
c9ba464
docs(docs/ai-coder/agents/platform-controls): name the providers that…
ethanndickson Oct 28, 2026
| https://github.com/coder/coder/pull/31384/commits/c9ba4648298edbc26e9fdc97edbaf4a2861ea357 |
|
4adfa18
docs: describe tool result media for every MCP server and rejected at…
ethanndickson Oct 28, 2026
| https://github.com/coder/coder/pull/31384/commits/4adfa180577c694f6dfc659dc6611d9491814d92 |
|
409b224
docs(coderd/x/chatd): describe the route media rule in ARCHITECTURE.md
ethanndickson Nov 4, 2026
| https://github.com/coder/coder/pull/31384/commits/409b224dd25d7728cbe90c4c6029925cc9d4f84d |
|
Clear filters
| https://github.com/coder/coder/pull/31384/files |
| Please reload this page | https://github.com/coder/coder/pull/31384/files |
| Please reload this page | https://github.com/coder/coder/pull/31384/files |
|
ARCHITECTURE.md
| https://github.com/coder/coder/pull/31384/files#diff-eeffa894733731941dfd60f3be77cfce5882b268fa9b6a6a99d9a6bda245bf29 |
|
chatd.go
| https://github.com/coder/coder/pull/31384/files#diff-9760d93414fe0e308947af4c1e3dc773ad63bdb871f2ed8fd433fae1124637db |
|
chatfile_internal_test.go
| https://github.com/coder/coder/pull/31384/files#diff-28aa127310dbe3e870b9e60c2c3447d636af1288964d9f9664404089c53faf75 |
|
chatprovider.go
| https://github.com/coder/coder/pull/31384/files#diff-844e8a8c2afe02596b5020e287bb0cb10ddf4cd674b98f03d06964e303d67ac2 |
|
file_parts_test.go
| https://github.com/coder/coder/pull/31384/files#diff-aa36904fa1cc5cc2b8a318041cdf9cee59b9234903c02126b77d369d143367cc |
|
model.go
| https://github.com/coder/coder/pull/31384/files#diff-e2d43a662c888fcd8919b29f287eb2156cbb6aedfe09187fd15bc5812238c822 |
|
compaction_sanitize.go
| https://github.com/coder/coder/pull/31384/files#diff-5834db410b7278c99bff613a03bc5d5fe60c60cb458023799fcdde49c1f04d48 |
|
compaction_sanitize_internal_test.go
| https://github.com/coder/coder/pull/31384/files#diff-6c9504597e5e14bf9fc5051374a6bf46cafe784d60ff58d148d0f9308b1b452c |
|
generation.go
| https://github.com/coder/coder/pull/31384/files#diff-dfd518003ddc50ff97f724f3fe144867eb2719d1e3e8796a68a245a579a1a75c |
|
media_sanitize.go
| https://github.com/coder/coder/pull/31384/files#diff-afff881c22c3df33abb54a9215a210d0a45c62228b9f28396d0cb61c741d7ef3 |
|
media_sanitize_internal_test.go
| https://github.com/coder/coder/pull/31384/files#diff-70102a50913ffad384c2ecea4854d411678266dd66c2303c569d97455ee1ef6e |
|
model_routing_aibridge.go
| https://github.com/coder/coder/pull/31384/files#diff-d56c44faebb0088b218ab5fff9b1d2508b39a82c800cac00da8681a78a71c043 |
|
tool_media_sanitize.go
| https://github.com/coder/coder/pull/31384/files#diff-a7a49e18816a80f1f9c067dcceccae8ad13ea171dc48ce765ccb92b11fa88a9c |
|
tool_media_sanitize_internal_test.go
| https://github.com/coder/coder/pull/31384/files#diff-41d4df365c4eb293e7f5018a14c17986dd127a4af5b0f54e7f806c10fe57c773 |
|
turn_environment.go
| https://github.com/coder/coder/pull/31384/files#diff-7ea8547dd31cf097fdd9f086d3d8659b0ff3ced517650588284aadf91556b14f |
|
turn_environment_internal_test.go
| https://github.com/coder/coder/pull/31384/files#diff-ccaf931030049b16f4f8e65ec360beafe8b07873e6fbc0fb419ca7b9b51b2677 |
|
index.md
| https://github.com/coder/coder/pull/31384/files#diff-e6fc4bd2630467259704b6545336a1e526ba0d5c670a5bffea38f184264a5497 |
|
mcp-servers.md
| https://github.com/coder/coder/pull/31384/files#diff-db5672077b786e5207c1663575505d56fb12f9235b45996d6938655867dee1b2 |
| coderd/x/chatd/ARCHITECTURE.md | https://github.com/coder/coder/pull/31384/files#diff-eeffa894733731941dfd60f3be77cfce5882b268fa9b6a6a99d9a6bda245bf29 |
|
View file
| https://github.com/coder/coder/blob/409b224dd25d7728cbe90c4c6029925cc9d4f84d/coderd/x/chatd/ARCHITECTURE.md |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/coder/coder/pull/31384/{{ revealButtonHref }} |
|
| https://github.com/coder/coder/pull/31384/files#diff-eeffa894733731941dfd60f3be77cfce5882b268fa9b6a6a99d9a6bda245bf29 |
|
| https://github.com/coder/coder/pull/31384/files#diff-eeffa894733731941dfd60f3be77cfce5882b268fa9b6a6a99d9a6bda245bf29 |
|
| https://github.com/coder/coder/pull/31384/files#diff-eeffa894733731941dfd60f3be77cfce5882b268fa9b6a6a99d9a6bda245bf29 |
|
| https://github.com/coder/coder/pull/31384/files#diff-eeffa894733731941dfd60f3be77cfce5882b268fa9b6a6a99d9a6bda245bf29 |
| coderd/x/chatd/chatd.go | https://github.com/coder/coder/pull/31384/files#diff-9760d93414fe0e308947af4c1e3dc773ad63bdb871f2ed8fd433fae1124637db |
|
View file
| https://github.com/coder/coder/blob/409b224dd25d7728cbe90c4c6029925cc9d4f84d/coderd/x/chatd/chatd.go |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/coder/coder/pull/31384/{{ revealButtonHref }} |
|
| https://github.com/coder/coder/pull/31384/files#diff-9760d93414fe0e308947af4c1e3dc773ad63bdb871f2ed8fd433fae1124637db |
|
| https://github.com/coder/coder/pull/31384/files#diff-9760d93414fe0e308947af4c1e3dc773ad63bdb871f2ed8fd433fae1124637db |
| coderd/x/chatd/chatfile_internal_test.go | https://github.com/coder/coder/pull/31384/files#diff-28aa127310dbe3e870b9e60c2c3447d636af1288964d9f9664404089c53faf75 |
|
View file
| https://github.com/coder/coder/blob/409b224dd25d7728cbe90c4c6029925cc9d4f84d/coderd/x/chatd/chatfile_internal_test.go |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/coder/coder/pull/31384/{{ revealButtonHref }} |
|
| https://github.com/coder/coder/pull/31384/files#diff-28aa127310dbe3e870b9e60c2c3447d636af1288964d9f9664404089c53faf75 |
|
| https://github.com/coder/coder/pull/31384/files#diff-28aa127310dbe3e870b9e60c2c3447d636af1288964d9f9664404089c53faf75 |
|
| https://github.com/coder/coder/pull/31384/files#diff-28aa127310dbe3e870b9e60c2c3447d636af1288964d9f9664404089c53faf75 |
|
| https://github.com/coder/coder/pull/31384/files#diff-28aa127310dbe3e870b9e60c2c3447d636af1288964d9f9664404089c53faf75 |
|
| https://github.com/coder/coder/pull/31384/files#diff-28aa127310dbe3e870b9e60c2c3447d636af1288964d9f9664404089c53faf75 |
|
| https://github.com/coder/coder/pull/31384/files#diff-28aa127310dbe3e870b9e60c2c3447d636af1288964d9f9664404089c53faf75 |
|
| https://github.com/coder/coder/pull/31384/files#diff-28aa127310dbe3e870b9e60c2c3447d636af1288964d9f9664404089c53faf75 |
|
| https://github.com/coder/coder/pull/31384/files#diff-28aa127310dbe3e870b9e60c2c3447d636af1288964d9f9664404089c53faf75 |
|
| https://github.com/coder/coder/pull/31384/files#diff-28aa127310dbe3e870b9e60c2c3447d636af1288964d9f9664404089c53faf75 |
|
| https://github.com/coder/coder/pull/31384/files#diff-28aa127310dbe3e870b9e60c2c3447d636af1288964d9f9664404089c53faf75 |
|
| https://github.com/coder/coder/pull/31384/files#diff-28aa127310dbe3e870b9e60c2c3447d636af1288964d9f9664404089c53faf75 |
|
| https://github.com/coder/coder/pull/31384/files#diff-28aa127310dbe3e870b9e60c2c3447d636af1288964d9f9664404089c53faf75 |
|
| https://github.com/coder/coder/pull/31384/files#diff-28aa127310dbe3e870b9e60c2c3447d636af1288964d9f9664404089c53faf75 |
|
| https://github.com/coder/coder/pull/31384/files#diff-28aa127310dbe3e870b9e60c2c3447d636af1288964d9f9664404089c53faf75 |
|
| https://github.com/coder/coder/pull/31384/files#diff-28aa127310dbe3e870b9e60c2c3447d636af1288964d9f9664404089c53faf75 |
|
| https://github.com/coder/coder/pull/31384/files#diff-28aa127310dbe3e870b9e60c2c3447d636af1288964d9f9664404089c53faf75 |
|
| https://github.com/coder/coder/pull/31384/files#diff-28aa127310dbe3e870b9e60c2c3447d636af1288964d9f9664404089c53faf75 |
|
| https://github.com/coder/coder/pull/31384/files#diff-28aa127310dbe3e870b9e60c2c3447d636af1288964d9f9664404089c53faf75 |
|
| https://github.com/coder/coder/pull/31384/files#diff-28aa127310dbe3e870b9e60c2c3447d636af1288964d9f9664404089c53faf75 |
|
| https://github.com/coder/coder/pull/31384/files#diff-28aa127310dbe3e870b9e60c2c3447d636af1288964d9f9664404089c53faf75 |
|
| https://github.com/coder/coder/pull/31384/files#diff-28aa127310dbe3e870b9e60c2c3447d636af1288964d9f9664404089c53faf75 |
|
| https://github.com/coder/coder/pull/31384/files#diff-28aa127310dbe3e870b9e60c2c3447d636af1288964d9f9664404089c53faf75 |
|
| https://github.com/coder/coder/pull/31384/files#diff-28aa127310dbe3e870b9e60c2c3447d636af1288964d9f9664404089c53faf75 |
| Please reload this page | https://github.com/coder/coder/pull/31384/files |
| Please reload this page | https://github.com/coder/coder/pull/31384/files |
|
| 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 |