fix(admin): hide deprecated/stale models on the Models page by default #46

Merged
alee merged 1 commits from fix/models-page-hide-deprecated into main 2026-09-06 23:26:23 +00:00
Owner

GET /admin/api/models returns every row regardless of availability, and models.html rendered all of them unconditionally -- so pruning OpenRouter's catalog to a 30-model allowlist (#45) still left ~395 deprecated rows cluttering the page.

Added a "Show deprecated / stale" toggle, off by default -- the page now reflects what's actually routable, without losing the ability to review or reactivate a deprecated row when you actually want to.

Also cleaned up a leftover manual override forcing meta/muse-spark-1.1 (a non-chat OpenRouter model, same category as the lyria models #42 was written for) to active from an earlier debugging session -- a live instance of the admin-override-bypasses-the-allowlist edge case flagged as a known limitation during #45's review.

New regression test confirmed failing on the unfixed page (marker + filter logic absent), passing after. Full suite: 1499 passed, 0 failures.

GET /admin/api/models returns every row regardless of availability, and models.html rendered all of them unconditionally -- so pruning OpenRouter's catalog to a 30-model allowlist (#45) still left ~395 deprecated rows cluttering the page. Added a "Show deprecated / stale" toggle, off by default -- the page now reflects what's actually routable, without losing the ability to review or reactivate a deprecated row when you actually want to. Also cleaned up a leftover manual override forcing `meta/muse-spark-1.1` (a non-chat OpenRouter model, same category as the lyria models #42 was written for) to `active` from an earlier debugging session -- a live instance of the admin-override-bypasses-the-allowlist edge case flagged as a known limitation during #45's review. New regression test confirmed failing on the unfixed page (marker + filter logic absent), passing after. Full suite: 1499 passed, 0 failures.
alee added 1 commit 2026-09-06 23:26:07 +00:00
GET /admin/api/models returns every row regardless of availability,
and models.html rendered all of them unconditionally -- so pruning
OpenRouter's catalog to a 30-model allowlist (#45) still left ~395
deprecated rows cluttering the page. Add a "Show deprecated / stale"
toggle, off by default, so the page reflects what's actually routable
without losing the ability to review or reactivate a deprecated row.

Also removed a leftover manual override forcing meta/muse-spark-1.1
(a non-chat OpenRouter model, same category as the lyria models #42
was written for) to active from an earlier debugging session -- exactly
the admin-override-bypasses-the-allowlist edge case flagged as a known
limitation during #45's review.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VRQXz5SYZYVWscxS1QqF6U
alee merged commit 2f01c9e78d into main 2026-09-06 23:26:23 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: alee/6krrt#46