Files
coder/site
Ethan eab5e28695 fix: move organization model overrides from Models to Coder Agents settings (#28473)
## Summary

Relocates the organization-scoped Coder Agents model override controls
from the **Defaults & overrides** tab under **AI Settings > Models**
into an **Organization settings** section on **AI Settings > Coder
Agents**. Models remains the home for reusable model definitions,
provider availability, default designation, and ACLs; Coder Agents now
owns all agent-specific model/reasoning override controls. The backend
organization scoping from #28442 is unchanged.

## Changes

- **Coder Agents page** is split into two sections:
- **Organization settings**: General subagent, Explore subagent, title
generation, compaction, and Advisor (behind the `chat-advisor`
experiment) model/reasoning overrides, with an organization picker when
more than one accessible organization exists.
- **Deployment settings**: personal override policy, virtual desktop
provider (behind its experiment), and Advisor usage limits, visible only
with `editDeploymentConfig`.
- **Permissions**: the page and its sidebar entry are accessible with
either `editDeploymentConfig` or organization chat model access.
Organization mutations require `editChatModelConfigs` on the selected
organization; otherwise controls render read-only. Organization
discovery, selected-organization permissions, and deployment queries
fail independently.
- **Models page** drops the Defaults & overrides tab and the
now-single-item tab UI. The old `DefaultsPage` components move to
`CoderAgentsPage/OrganizationAgentSettings*`.
- **Compatibility**: `/ai/settings/models/defaults` redirects to
`/ai/settings/coder-agents`, preserving `org` and other query
parameters.
- **Docs**: intentionally not updated here; a follow-up PR will update
`docs/ai-coder/agents/models.md` and
`docs/ai-coder/agents/platform-controls/advisor.md`.

## Testing

- Targeted unit tests (`ModelDefaultsRedirect`, `organizationModels`): 9
passing.
- Affected Storybook interaction tests (Coder Agents page/view,
organization agent settings, Models layout, AI settings sidebar): 41
passing.
- `pnpm check`, full `pnpm lint` (Biome, tsc, circular deps, React
compiler, knip), `pnpm format`.
2026-08-24 17:43:12 +01:00
..
…
…
…
…