| 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:60e59750-8a21-8f5c-70f1-e21c3296ab33 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C66C:72B39:A58CF:E0315:6B007FAE |
| html-safe-nonce | 68cd46d0cb456d962e29f93a94e20b0dd60835abcf4f40a84be6f29dd18792c6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjZDOjcyQjM5OkE1OENGOkUwMzE1OjZCMDA3RkFFIiwidmlzaXRvcl9pZCI6IjQ1Nzk2OTkyODk5NDAzMjgzNjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e29e84ee69010bc73600667d62340a5298d6d734655fe1d5bfdf720776d0962f |
| hovercard-subject-tag | pull_request:4264742269 |
| 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/28078/files |
| twitter:image | https://avatars.githubusercontent.com/u/203725896?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/203725896?s=400&v=4 |
| og:image:alt | Fixes first-send 403s for multi-org users who lack chat:create in the deployment default organization (CODAGT-892). Two frontend defects combined to send chat creation to the wrong organization:
T... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 82c186f13e104004ab7bdb779f3195e59dd38bfde531aaa74b76470fc2462b83 |
| 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 | d1bc2aa1939001689f5ce935982c10a6138f745c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/coder/coder/pull/28078/changes#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F28078%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%2F28078%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/28078/changes |
| Reload | https://github.com/coder/coder/pull/28078/changes |
| Reload | https://github.com/coder/coder/pull/28078/changes |
| coder | https://github.com/coder |
| coder | https://github.com/coder/coder |
| Code | https://github.com/coder/coder |
| Issues323 (323) | https://github.com/coder/coder/issues |
| Pull requests491 (491) | 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 |
| ibetitsmike | https://github.com/ibetitsmike |
| main | https://github.com/coder/coder/tree/main |
| mike/codagt-892-chat-org-selection | https://github.com/coder/coder/tree/mike/codagt-892-chat-org-selection |
|
Conversation
111
| https://github.com/coder/coder/pull/28078 |
|
Commits
29
| https://github.com/coder/coder/pull/28078/commits |
|
Checks
57
| https://github.com/coder/coder/pull/28078/checks |
|
Files changed
| https://github.com/coder/coder/pull/28078/files |
| Please reload this page | https://github.com/coder/coder/pull/28078/changes |
|
fix(site): prefer permitted organization for chat creation
| https://github.com/coder/coder/pull/28078/changes#top |
|
Show all changes
29 commits
| https://github.com/coder/coder/pull/28078/files |
|
bddb41b
fix(site): prefer permitted organization for chat creation
ibetitsmike Aug 12, 2026
| https://github.com/coder/coder/pull/28078/commits/bddb41bb278e192f5e8c921e7ac3126e771166c2 |
|
b6f2a63
fix(site): keep user-driven org cleanup in event handlers
ibetitsmike Aug 12, 2026
| https://github.com/coder/coder/pull/28078/commits/b6f2a63b69ff79f2c2740083575151e8cebedb4d |
|
a7e078f
fix(site): scope chat permitted-org check to the current user
ibetitsmike Aug 12, 2026
| https://github.com/coder/coder/pull/28078/commits/a7e078f68eb8628df91f72c4c776bcd934c4f2c4 |
|
bcfe72a
chore(site/src/pages/AgentsPage): tighten authcheck comments
ibetitsmike Aug 12, 2026
| https://github.com/coder/coder/pull/28078/commits/bcfe72abcbc6788a4fb4122a5c75b0cdc22536b5 |
|
887c7be
fix(site): derive chat workspace selection instead of effect-driven r…
ibetitsmike Aug 12, 2026
| https://github.com/coder/coder/pull/28078/commits/887c7bef39e4b0ce022706cdae5364ae83fe52d4 |
|
d3f35d6
fix(site): defer chat attachment restore and sends until permitted or…
ibetitsmike Aug 12, 2026
| https://github.com/coder/coder/pull/28078/commits/d3f35d6cf81b9d4040764ffd8fb845091903e448 |
|
f27db49
fix(site): block chat send without a permitted org and rescope attach…
ibetitsmike Aug 12, 2026
| https://github.com/coder/coder/pull/28078/commits/f27db49a8fad19babe0d650a574340a61178ec60 |
|
fa5bf74
fix(site): hide stale attachment state during org adoption and tighte…
ibetitsmike Aug 12, 2026
| https://github.com/coder/coder/pull/28078/commits/fa5bf743c04751f5fe52f91e5447f868da305d88 |
|
d6bf2d2
fix(site): keep attachment state org-less when no org is permitted
ibetitsmike Aug 12, 2026
| https://github.com/coder/coder/pull/28078/commits/d6bf2d2035ab88c69fb9a3fbd2bae455df5559ca |
|
0181799
refactor(site/src/pages/AgentsPage): drop type assertions in attachme…
ibetitsmike Aug 12, 2026
| https://github.com/coder/coder/pull/28078/commits/0181799886d9be0b62375652c681ace38bb42546 |
|
21756f9
fix(site/src/pages/AgentsPage): ignore file drops until org authoriza…
ibetitsmike Aug 12, 2026
| https://github.com/coder/coder/pull/28078/commits/21756f9763c7123af4d4fba9b087cbda2df3d695 |
|
2a8ab8c
fix(site/src/pages/AgentsPage): move attachment restoration out of re…
ibetitsmike Aug 12, 2026
| https://github.com/coder/coder/pull/28078/commits/2a8ab8c03802fa7375212e04aaa68d68dfb7aca6 |
|
958ff0d
fix(site/src/pages/AgentsPage): gate composer on attachment org adoption
ibetitsmike Aug 12, 2026
| https://github.com/coder/coder/pull/28078/commits/958ff0daa612dcab074528b9ac6b2a09707ca56d |
|
531da5c
fix(site/src/pages/AgentsPage): discard upload completions from an ab…
ibetitsmike Aug 12, 2026
| https://github.com/coder/coder/pull/28078/commits/531da5ca3da3478885342aee18ddd91bebb1c56a |
|
f4fa619
fix(site/src/pages/AgentsPage): invalidate uploads across org round t…
ibetitsmike Aug 12, 2026
| https://github.com/coder/coder/pull/28078/commits/f4fa619ad3c96e7a8a4ab9e39ecbf62acaf4ee9d |
|
25bebdb
fix(site/src/pages/AgentsPage): clear org selection revoked by permis…
ibetitsmike Aug 12, 2026
| https://github.com/coder/coder/pull/28078/commits/25bebdb16731a34e5f24f40807a6c1fded18b33c |
|
b09e60d
fix(site/src/pages/AgentsPage): revalidate org-scoped state on permis…
ibetitsmike Aug 12, 2026
| https://github.com/coder/coder/pull/28078/commits/b09e60d8b5a601cc62778a51e95e325da3981180 |
|
f1185d8
chore(site/src/pages/AgentsPage): cleanup gate round 6
ibetitsmike Aug 12, 2026
| https://github.com/coder/coder/pull/28078/commits/f1185d833d34885560133c8d17a12d542f818f0c |
|
8b4fcee
fix(site/src/pages/AgentsPage): block send until stored workspace val…
ibetitsmike Aug 12, 2026
| https://github.com/coder/coder/pull/28078/commits/8b4fceef160feafc2d637be0b41ebee4b1beb7fe |
|
a6582b3
fix(site/src/pages/AgentsPage): keep fallback org across permission r…
ibetitsmike Aug 12, 2026
| https://github.com/coder/coder/pull/28078/commits/a6582b35af52a3737cc2379bb1ca12bd31a5a296 |
|
d09c67c
fix(site/src/pages/AgentsPage): preserve stored workspace while no or…
ibetitsmike Aug 12, 2026
| https://github.com/coder/coder/pull/28078/commits/d09c67c097ec81cb0de9e5c217fd881609fb56a3 |
|
64a9f7c
chore(site/src/pages/AgentsPage): cleanup gate round 7
ibetitsmike Aug 13, 2026
| https://github.com/coder/coder/pull/28078/commits/64a9f7c9cfaecb7fae5d4a0bafe7fb9a0a8ef113 |
|
353b78a
fix(site/src/pages/AgentsPage): ignore stale permitted cache when org…
ibetitsmike Aug 13, 2026
| https://github.com/coder/coder/pull/28078/commits/353b78a017ab2e4bb12a8434ba24757ce91f72ec |
|
cae3925
chore(site/src/pages/AgentsPage): cleanup gate round 8
ibetitsmike Aug 13, 2026
| https://github.com/coder/coder/pull/28078/commits/cae3925fa7cb8a365a2ed2b85f0d773bf6a47f65 |
|
fa80a1f
refactor(site/src/pages/AgentsPage): query org selector by role in ne…
ibetitsmike Aug 13, 2026
| https://github.com/coder/coder/pull/28078/commits/fa80a1fb9bb614c6dadeffc3dcfe281b2d0427ab |
|
3ca42bd
fix(site/src/pages/AgentsPage): hide attachments when no org is autho…
ibetitsmike Aug 13, 2026
| https://github.com/coder/coder/pull/28078/commits/3ca42bd5c117ed1bf3ddbc479a6ac71cca1b6003 |
|
e1a6204
fix(site/src/pages/AgentsPage): gate workspace picker until org autho…
ibetitsmike Aug 13, 2026
| https://github.com/coder/coder/pull/28078/commits/e1a620416cfc4bea33bbc10f2d7a138cffc5f433 |
|
6d46cc5
refactor(site/src/pages/AgentsPage): trim redundant comments
ibetitsmike Aug 13, 2026
| https://github.com/coder/coder/pull/28078/commits/6d46cc5eba3050a330d50fc4b098cd3706363da2 |
|
b4e09ae
test(site/src/pages/AgentsPage): align stories with permittedOrganiza…
ibetitsmike Aug 13, 2026
| https://github.com/coder/coder/pull/28078/commits/b4e09aef387d0c47c1eaee54aad423b30423017d |
|
Clear filters
| https://github.com/coder/coder/pull/28078/files |
| Please reload this page | https://github.com/coder/coder/pull/28078/changes |
| Please reload this page | https://github.com/coder/coder/pull/28078/changes |
|
AgentCreateForm.stories.tsx
| https://github.com/coder/coder/pull/28078/changes#diff-7dcd5d872fb4e42cbf248dbbf9b903d2c70676b4bc10547a7d6faa2d39ab146e |
|
AgentCreateForm.tsx
| https://github.com/coder/coder/pull/28078/changes#diff-e3e74ba39625ec8e03533e5b80af9352815d4a9bcabeef1dd7497fe4d8eeddee |
|
useFileAttachments.test.tsx
| https://github.com/coder/coder/pull/28078/changes#diff-ce81295a0a09714770dcd142e148f70fb7afff7fc696a7f224c7d28bcb21c99f |
|
useFileAttachments.ts
| https://github.com/coder/coder/pull/28078/changes#diff-6633d63e2fbd1fe3fffff3a2242b079c902aa92746e501c553cad9c14f303a86 |
| Please reload this page | https://github.com/coder/coder/pull/28078/changes |
| Please reload this page | https://github.com/coder/coder/pull/28078/changes |
|
| 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 |