The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
e2e: two more races the CI retries hid
purpleade432010fbd
diff --git a/e2e/memory-review.spec.ts b/e2e/memory-review.spec.tsindex 9c422edf..efafed8a 100644--- a/e2e/memory-review.spec.ts+++ b/e2e/memory-review.spec.ts@@ -9,6 +9,20 @@ test('explicit review survives reload and editing clears it', async ({ page }, tawait expect(page.getByText('Not reviewed', { exact: true })).toBeVisible()await page.getByRole('button', { name: 'Confirm reviewed' }).click()await expect(page.getByText(/^Reviewed:/)).toBeVisible()+ // The store writes to IndexedDB without waiting (lib/memory-persistence). A reload right after the click+ // could come before that write, and the entry came back "Not reviewed" (1 of a CI-like run without retries).+ // Reload only once the review is on disk: what the test proves is that a saved review survives.+ await expect.poll(() => page.evaluate(() => new Promise<boolean>((resolve) => {+ const open = indexedDB.open('locally-uncensored-store')+ open.onerror = () => resolve(false)+ open.onsuccess = () => {+ const db = open.result+ if (!db.objectStoreNames.contains('kv')) { db.close(); return resolve(false) }+ const get = db.transaction('kv', 'readonly').objectStore('kv').get('locally-uncensored-memory')+ get.onerror = () => { db.close(); resolve(false) }+ get.onsuccess = () => { db.close(); resolve(typeof get.result === 'string' && get.result.includes('"confirmedAt"')) }+ }+ }))).toBe(true)await page.reload()await expect(page.getByText(/^Reviewed:/)).toBeVisible()await page.screenshot({ path: testInfo.outputPath('memory-review.png') })diff --git a/e2e/mobile/models.mobile.ts b/e2e/mobile/models.mobile.tsindex 5d8cc369..ac109a20 100644--- a/e2e/mobile/models.mobile.ts+++ b/e2e/mobile/models.mobile.ts@@ -1837,8 +1837,12 @@ for (const size of SIZES) {await page.evaluate(async (id) => {const spec = '/src/stores/downloadStore.ts'const mod = await import(/* @vite-ignore */ spec)- const now = mod.useDownloadStore.getState().downloads- mod.useDownloadStore.setState({ downloads: { ...now, [id]: { id, filename: id, progress: 40_000_000, total: 400_000_000, speed: 0, status: 'paused' } } })+ // In `ownRows` as well, as the app writes a row of its own: the next poll rebuilds `downloads` from+ // `ownRows` plus what the native side reports, and a row in `downloads` alone was gone whenever that+ // poll came before the card was looked at (CI-like run without retries: 4 of 10 red).+ const { downloads, ownRows } = mod.useDownloadStore.getState()+ const row = { id, filename: id, progress: 40_000_000, total: 400_000_000, speed: 0, status: 'paused' }+ mod.useDownloadStore.setState({ downloads: { ...downloads, [id]: row }, ownRows: { ...ownRows, [id]: row } })}, packing)const loading = page.locator(`[data-m-id="${other.id}"]:visible`).filter({ has: page.getByTestId('m-models-item-open') })await loading.scrollIntoViewIfNeeded()