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
test(e2e): memory specs read the port from baseURL
purple57ac55644ede
diff --git a/e2e/memory-sync.spec.ts b/e2e/memory-sync.spec.tsindex fdee0561..f6827b11 100644--- a/e2e/memory-sync.spec.ts+++ b/e2e/memory-sync.spec.ts@@ -17,11 +17,11 @@ async function accountFixture(page: Page) {await page.getByRole('button', { name: 'Use account memories', exact: true }).click()}-test('foreground cancellation stops a held pull and leaving the collection cancels the next run', async ({ page }) => {+test('foreground cancellation stops a held pull and leaving the collection cancels the next run', async ({ page, baseURL }) => {let finish: (() => Promise<void>) | undefinedlet hold = truelet reads = 0- await page.route('**/*', route => new URL(route.request().url()).port === '5273' ? route.continue() : route.abort())+ await page.route('**/*', route => new URL(route.request().url()).port === new URL(baseURL ?? 'http://localhost:5273').port ? route.continue() : route.abort())await page.route('**/api/memory/sync**', async route => {expect(route.request().method()).toBe('GET')reads++@@ -66,10 +66,10 @@ test('foreground cancellation stops a held pull and leaving the collection canceawait expect(page.getByRole('button', { name: 'Cancel synchronization', exact: true })).toHaveCount(0)})-test('explicit UI sync uploads, downloads, preserves conflicts and persists shared deletion', async ({ page }, testInfo) => {+test('explicit UI sync uploads, downloads, preserves conflicts and persists shared deletion', async ({ page, baseURL }, testInfo) => {let records: SyncedMemoryRecord[] = []let writes = 0- await page.route('**/*', route => new URL(route.request().url()).port === '5273' ? route.continue() : route.abort())+ await page.route('**/*', route => new URL(route.request().url()).port === new URL(baseURL ?? 'http://localhost:5273').port ? route.continue() : route.abort())await page.route('**/api/memory/sync**', async route => {expect(route.request().headers().authorization).toBe('Bearer synthetic-proof-token')if (route.request().method() === 'POST') {@@ -183,11 +183,11 @@ test('explicit UI sync uploads, downloads, preserves conflicts and persists shar})for (const responseMode of ['lost', 'cancelled'] as const) {-test(`a ${responseMode} first-upload response cannot revive a locally deleted memory after reload`, async ({ page }) => {+test(`a ${responseMode} first-upload response cannot revive a locally deleted memory after reload`, async ({ page, baseURL }) => {let records: SyncedMemoryRecord[] = []let lostResponse = falselet finish: (() => Promise<void>) | undefined- await page.route('**/*', route => new URL(route.request().url()).port === '5273' ? route.continue() : route.abort())+ await page.route('**/*', route => new URL(route.request().url()).port === new URL(baseURL ?? 'http://localhost:5273').port ? route.continue() : route.abort())await page.route('**/api/memory/sync**', async route => {if (route.request().method() === 'GET') return route.fulfill({ json: { ownerId: 'owner-a', records, next: null } })const body: unknown = route.request().postDataJSON()diff --git a/e2e/memory-write-fence.spec.ts b/e2e/memory-write-fence.spec.tsindex e83f845f..6adb17ff 100644--- a/e2e/memory-write-fence.spec.ts+++ b/e2e/memory-write-fence.spec.ts@@ -1,8 +1,8 @@import { expect, test } from '@playwright/test'import { DEFAULT_MODEL_NAME } from './support/tauri-mock'-test('deleting through Memory Settings survives a late automatic extraction and reload', async ({ page }) => {- await page.route('**/*', route => new URL(route.request().url()).port === '5273' ? route.continue() : route.abort())+test('deleting through Memory Settings survives a late automatic extraction and reload', async ({ page, baseURL }) => {+ await page.route('**/*', route => new URL(route.request().url()).port === new URL(baseURL ?? 'http://localhost:5273').port ? route.continue() : route.abort())await page.goto('/e2e/memory-sensitive-proof.html')await page.evaluate(async (modelName) => {const memoryPath = '/src/stores/memoryStore.ts'