style: drop explanatory comments from the agent publish fix

This commit is contained in:
mateo-berri 2026-09-03 04:27:43 -07:00
parent ccbd3e495c
commit 9d862a6583
2 changed files with 1 additions and 4 deletions

View file

@ -939,8 +939,6 @@ async def make_agent_public(
if agent is None:
raise HTTPException(status_code=404, detail=f"Agent with ID {agent_id} not found")
# get_config() re-applies the DB's litellm_settings over the in-memory
# globals, so read it before deriving the new list and assign the global after
config: Final = await proxy_config.get_config()
current_public_agent_groups: Final = list(litellm.public_agent_groups or [])

View file

@ -22,8 +22,7 @@ test.describe("AI Hub (internal admin view)", () => {
// on the disabled-Next button or the success toast.
await expect(modal.getByText(/Select All \(\d+\)/)).toBeVisible({ timeout: 5_000 });
// Step 1: pick the seeded models via "Select All". check() rather than click() because
// the modal preselects groups that are already public, and a click would clear them.
// Step 1: pick the seeded models via "Select All"
await modal.getByRole("checkbox", { name: /Select All/ }).check();
// Move to confirm step