fix(site): scope chat detail models by org#27338
Closed
mafredri wants to merge 1 commit into
Closed
Conversation
Use the loaded chat's organization for model discovery so chats outside the default organization receive the correct catalog and configuration.
This was referenced Jul 20, 2026
Member
Author
|
$Closing this stack because its merge-safe compatibility direction was incorrect. CODAGT-709 will be rebuilt as review-only dependent diffs whose combined head is merged atomically.\n\n> 🤖 This review was automatically generated with Coder Agents. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The chat detail page already knows the chat's organization. Using that resource scope for model discovery prevents a non-default organization chat from reading a default or deployment-wide model cache after the organization-owned data cutover.
This stack layer changes only the existing chat detail consumer. It depends on #27337 and does not add settings UI, organization selection, or model-management behavior.
Verification
The full story file retains an inherited
WithMessageHistoryfailure that reproduces on the parent commit. It is being investigated independently onmathias/fix-chat-storybook-tests.