The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(chat): correct test for managed catalog model selection
Steven Enamakelff425494c513
diff --git a/app/test/playwright/specs/chat-model-managed-catalog.spec.ts b/app/test/playwright/specs/chat-model-managed-catalog.spec.tsindex 387b46aff2..7f8bdf23c4 100644--- a/app/test/playwright/specs/chat-model-managed-catalog.spec.ts+++ b/app/test/playwright/specs/chat-model-managed-catalog.spec.ts@@ -204,6 +204,25 @@ test.describe('Managed OpenRouter catalog in the model picker', () => {).toHaveAttribute('aria-selected', 'true', { timeout: 20_000 });});+ test('a composer pick is the global default and survives a fresh page', async ({ page }) => {+ // The picker writes `default_model` through the core, so a brand-new page+ // (new composer state, same core) still resolves and shows the pinned+ // model — the pick is not a per-session override.+ await openChat(page);+ await openManagedPane(page);+ await expect(managedOption(page, PLAIN_ID)).toBeVisible({ timeout: 20_000 });+ await managedOption(page, PLAIN_ID).click();+ await page.getByRole('button', { name: 'Use this model' }).click();+ await expect(pickerTitle(page)).toHaveCount(0);+ await expect(modelChip(page)).toHaveText(/nex-n2\.5-mini/, { timeout: 10_000 });++ await openChat(page);+ await expect(+ modelChip(page),+ 'the pinned model must come back from the core, not from composer state'+ ).toHaveText(/nex-n2\.5-mini/, { timeout: 20_000 });+ });+test('a :free variant keeps its full name on the chip', async ({ page }) => {await openChat(page);await openManagedPane(page);