fix!: prevent AI provider name collision with static settings routes (#26688)

Move the providers routes into a dedicated providers sub-tree: `/ai/settings/providers`, `/ai/settings/providers/add`, and `/ai/settings/providers/:providerId`.

The old `/ai/settings/:providerId` and `/ai/settings/add` URLs are
removed without backward-compatibility redirects. Bookmarked or shared
links to these paths now return a 404. Creating a provider with id `models` (although unlikely) made it impossible to edit it due to a conflict with the static models route.
This commit is contained in:
Danielle Maywood
2026-06-25 11:09:58 +01:00
committed by GitHub
parent a7f3ea50b7
commit 1ae96fcf8a
16 changed files with 55 additions and 39 deletions
+2 -2
View File
@@ -30,8 +30,8 @@ handling, and how to monitor providers.
> configuration that is ineffectual.**
>
> The environment variables can be safely removed once seeding has
> completed. Visit `https://<your-coder-host>/ai/settings` to see which
> providers have been seeded.
> completed. Visit `https://<your-coder-host>/ai/settings/providers` to see
> which providers have been seeded.
After seeding, manage providers through the dashboard or API. A provider
that has been edited or removed there is not recreated or overwritten