Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.
Python agentagent-osaiai-agentsai-partnerchatopsclaudeclaude-codecodexdevtoolsdiscord-botlark-botllmlocal-firstlong-term-memoryopencodeslack-botvibe-codingvibeywechat
test(ui): repair home-media and composer-picker e2e, run home-media in CI (#2979)
Call White0f998492d213
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.ymlindex 1b397a642..d9d8e51e6 100644--- a/.github/workflows/lint.yml+++ b/.github/workflows/lint.yml@@ -201,6 +201,7 @@ jobs:npm run test:onboarding-fidelity -- hub-ownership.spec.ts provider-gate.spec.ts lineup.spec.tsnpm run test:project-ordernpm run test:inbox-return+ npm run test:home-medianpm run test:badge-triggersnpm run test:workbench-general -- sidebar-floating.spec.ts desktop-window-chrome.spec.ts skills-dialog.spec.tsnpm run test:voice-shortcutdiff --git a/ui/e2e/home-media/media.spec.ts b/ui/e2e/home-media/media.spec.tsindex 33b073aff..db5911f4a 100644--- a/ui/e2e/home-media/media.spec.ts+++ b/ui/e2e/home-media/media.spec.ts@@ -41,6 +41,8 @@ test('draft files follow final project and Agent selection through picker cancelawait page.getByRole('dialog').getByRole('button', { name: en.workbench.newProjectDialog.create, exact: true }).click();await expect(projectChip('另一个项目')).toHaveClass(/bg-mint-soft/);await page.getByRole('button', { name: /codex/ }).first().click();+ // The composer's picker keeps Agents one level below its model page.+ await page.getByRole('button', { name: /^Agent/ }).click();await page.getByRole('button', { name: /^claude/ }).click();await page.keyboard.press('Escape');await page.getByTestId('settings-entry').click();@@ -143,12 +145,12 @@ for (const width of [320, 375, 390, 1366, 1600]) {await expect(page.getByRole('heading', { name: copy.workbench.home.heroTitle })).toBeVisible();await expect(page.getByRole('button', { name: copy.chat.compose.voice, exact: true })).toBeVisible();expect(await page.evaluate(() => document.documentElement.scrollWidth > window.innerWidth)).toBe(false);- // The home now uses the composer's single-row box, the same one the chat- // page uses, and that mode gives its controls a 28x36 target of their own.- // Fixed numbers either way: the control must not shrink or stretch with- // the viewport, the language or the theme.+ // The home uses the composer's two-row box, the same one the chat page+ // uses, and that box gives Attach a 36x36 target of its own on the action+ // row. Fixed numbers either way: the control must not shrink or stretch+ // with the viewport, the language or the theme.const attachBox = await page.getByRole('button', { name: copy.chat.compose.attach }).boundingBox();- expect(attachBox?.width).toBe(28);+ expect(attachBox?.width).toBe(36);expect(attachBox?.height).toBe(36);await page.getByRole('button', { name: copy.chat.compose.attach }).focus();await expect(page.getByRole('button', { name: copy.chat.compose.attach })).toBeFocused();diff --git a/ui/e2e/home-media/sheet-suspension.spec.ts b/ui/e2e/home-media/sheet-suspension.spec.tsindex 4fd18b3e0..cd4e5669e 100644--- a/ui/e2e/home-media/sheet-suspension.spec.ts+++ b/ui/e2e/home-media/sheet-suspension.spec.ts@@ -444,7 +444,9 @@ for (const outcome of ['success', 'failure', 'cancel'] as const) test(`project cawait page.evaluate((outcome) => { window.homeMedia.holdProject = true; window.homeMedia.projectFailure = outcome === 'failure'; }, outcome);await page.getByRole('button', { name: en.workbench.newProjectDialog.create, exact: true }).click();await expect.poll(async () => (await writes(page, '/api/projects')).length).toBe(1);- if (outcome === 'cancel') await page.getByRole('button', { name: en.workbench.newProjectDialog.cancel, exact: true }).first().click();+ // The footer Cancel is disabled while the create is in flight; the dialog's+ // close control (labelled Cancel too) is the one a user can still reach.+ if (outcome === 'cancel') await page.getByRole('button', { name: en.workbench.newProjectDialog.cancel, exact: true, disabled: false }).click();await settings(page);await page.evaluate(() => window.homeMedia.releaseProject());await expect.poll(() => page.evaluate(() => window.homeMedia.projectCompletions)).toBe(1);diff --git a/ui/e2e/workbench-general/mobile-continuation.spec.ts b/ui/e2e/workbench-general/mobile-continuation.spec.tsindex 2f36fbd80..766a09540 100644--- a/ui/e2e/workbench-general/mobile-continuation.spec.ts+++ b/ui/e2e/workbench-general/mobile-continuation.spec.ts@@ -165,7 +165,8 @@ const expectSelectedProject = async (page: Page, name: string) => {};// Opening a folder is the card's own action now, not a chip beside the input.const openProjectPill = (page: Page) => homeMain(page).getByRole('button', { name: 'Open project', exact: true });-const popover = (page: Page) => page.locator('[data-radix-popper-content-wrapper]');+// On a phone the composer's Agent/model picker opens as a bottom sheet.+const routeSheet = (page: Page) => page.getByRole('dialog', { name: 'Agent & model' });const settingsSurface = (page: Page) => page.locator('[data-settings-overlay="true"]');const inboxTab = (page: Page) => page.locator('nav.fixed.bottom-0 a[href="/inbox"]');const brandHome = (page: Page) => page.locator('header a[href="/"]');@@ -203,13 +204,14 @@ const instanceSurvived = (page: Page) =>async function pickClaude(page: Page) {await expect(agentTrigger(page)).toHaveText(/codex/);await agentTrigger(page).click();- await popover(page).getByRole('button', { name: 'claude', exact: true }).click();- await expect(agentTrigger(page)).toHaveText(/claude/);- // The picker keeps its panel open after a pick so the model and effort rows- // stay reachable. It is anchored above the input column, so leaving it open- // would cover the project row; close it the way a user does.+ // Agents sit one level below the sheet's model page.+ await routeSheet(page).getByRole('button', { name: /^Agent/ }).click();+ await routeSheet(page).getByRole('button', { name: /^claude/ }).click();+ // The sheet stays open after a pick so the model and effort rows stay+ // reachable; close it the way a user does, then read the trigger behind it.await page.keyboard.press('Escape');- await expect(popover(page)).toHaveCount(0);+ await expect(routeSheet(page)).toHaveCount(0);+ await expect(agentTrigger(page)).toHaveText(/claude/);}/**diff --git a/ui/e2e/workbench-general/standalone-settings.spec.ts b/ui/e2e/workbench-general/standalone-settings.spec.tsindex c27fd0189..a7e76022f 100644--- a/ui/e2e/workbench-general/standalone-settings.spec.ts+++ b/ui/e2e/workbench-general/standalone-settings.spec.ts@@ -116,7 +116,10 @@ test('C-SETTINGS-02: preserves picked Agent/workspace, Unicode draft and historyawait workspace.click();const agent = page.getByRole('button', { name: /codex|claude/ }).first();await agent.click();- await page.locator('[data-radix-popper-content-wrapper]').getByRole('button', { name: 'claude', exact: true }).click();+ // The composer's picker keeps Agents one level below its model page.+ const menu = page.locator('[data-radix-popper-content-wrapper]');+ await menu.getByRole('button', { name: /^Agent/ }).click();+ await menu.getByRole('button', { name: /^claude/ }).click();await expect(agent).toContainText('claude');await textarea(page).evaluate((node) => { node.setAttribute('data-origin-instance', 'preserved'); });const index = await page.evaluate(() => window.history.state.idx);diff --git a/ui/package.json b/ui/package.jsonindex 3e201b712..a2180fa1b 100644--- a/ui/package.json+++ b/ui/package.json@@ -24,6 +24,7 @@"test:citations": "tsc -p e2e/citations/tsconfig.json --noEmit && playwright test --config playwright.citations.config.ts","test:chat-selection": "tsc -p e2e/chat-selection/tsconfig.json --noEmit && playwright test --config playwright.chat-selection.config.ts","test:inbox-return": "tsc -p e2e/inbox-return/tsconfig.json --noEmit && playwright test --config playwright.inbox-return.config.ts",+ "test:home-media": "tsc -p e2e/home-media/tsconfig.json --noEmit && playwright test --config playwright.home-media.config.ts","test:badge-triggers": "tsc -p e2e/badge-triggers/tsconfig.json --noEmit && playwright test --config playwright.badge-triggers.config.ts","test:project-order": "tsc -p e2e/project-order/tsconfig.json --noEmit && playwright test --config playwright.project-order.config.ts","test:session-dot": "tsc -p e2e/session-dot/tsconfig.json --noEmit && playwright test --config playwright.session-dot.config.ts",