Skip to content

fix(site): scope new chat models by org#27340

Closed
mafredri wants to merge 1 commit into
mathias/codagt-709-chat-detail-org-modelsfrom
mathias/codagt-709-new-chat-org-models
Closed

fix(site): scope new chat models by org#27340
mafredri wants to merge 1 commit into
mathias/codagt-709-chat-detail-org-modelsfrom
mathias/codagt-709-new-chat-org-models

Conversation

@mafredri

Copy link
Copy Markdown
Member

Why

The existing new-chat form already owns the selected organization and sends it with the create request. Model discovery must follow that same selection before organization-owned model IDs can replace global IDs.

This stack layer moves only the two model discovery reads into the form that owns the scope. Personal overrides and settings remain on their existing contracts until their own organization-qualified API layers are available.

Depends on #27338, which depends on #27337.

Verification

  • frontend formatting and checks
  • TypeScript typecheck
  • frontend lint
  • all 25 AgentCreateForm stories
  • Storybook build
  • production site build
  • mandatory pre-commit hook

🤖 This PR was created with the help of Coder Agents, and will be reviewed by a human. 🏂🏻

The new-chat form owns organization selection, so model discovery must follow that selection instead of using deployment-wide reads.
@linear-code

linear-code Bot commented Jul 20, 2026

Copy link
Copy Markdown

CODAGT-709

Copy link
Copy Markdown
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant