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
test(e2e): make the skip and fail-loud paths exclusive; seed a complete persist blob
M3gA-Mindea5f0e13d7df
diff --git a/app/test/playwright/specs/brain-embedding-truthfulness.spec.ts b/app/test/playwright/specs/brain-embedding-truthfulness.spec.tsindex 7d4dca283e..73f0a7934b 100644--- a/app/test/playwright/specs/brain-embedding-truthfulness.spec.ts+++ b/app/test/playwright/specs/brain-embedding-truthfulness.spec.ts@@ -130,15 +130,23 @@ function classifyModuleFailure(error: unknown): Error {message);- if (moduleUnavailable && !process.env.CI) {- test.skip(true, `memory module unavailable in this lane: ${message}`);- }if (moduleUnavailable) {- return new Error(- 'the tinymemory module is not staged in this lane, so the embedding-state ' +- 'render cannot be exercised. Provision the checksum-pinned module here as ' +- `the Rust E2E job does, or move this spec to that lane. Underlying: ${message}`- );+ // CI first, and it RETURNS — so the loud path and the skip path are mutually+ // exclusive. The previous shape called `test.skip` and then fell through to+ // build the error unconditionally, which meant the caller threw it whether+ // the skip had taken effect or not, making the skip meaningless.+ if (process.env.CI) {+ return new Error(+ 'the tinymemory module is not staged in this lane, so the embedding-state ' ++ 'render cannot be exercised. Provision the checksum-pinned module here as ' ++ `the Rust E2E job does, or move this spec to that lane. Underlying: ${message}`+ );+ }++ // Locally this aborts the test. Nothing is built after it on this path; if+ // it ever stopped aborting, the fall-through below surfaces the ORIGINAL+ // module error rather than a misleading "not staged in this lane".+ test.skip(true, `memory module unavailable in this lane: ${message}`);}return error instanceof Error ? error : new Error(message);}diff --git a/app/test/playwright/specs/notifications-feed-interaction.spec.ts b/app/test/playwright/specs/notifications-feed-interaction.spec.tsindex 115edff29a..1049a9dc80 100644--- a/app/test/playwright/specs/notifications-feed-interaction.spec.ts+++ b/app/test/playwright/specs/notifications-feed-interaction.spec.ts@@ -139,7 +139,25 @@ async function openFeedWith(page: Page, items: SeedItem[]): Promise<void> {if (window.localStorage.getItem(marker)) return;window.localStorage.setItem(marker, '1');const raw = window.localStorage.getItem(key);- const blob: Record<string, string> = raw ? (JSON.parse(raw) as Record<string, string>) : {};+ // Merge onto whatever the first boot wrote. When the key does not exist+ // yet, a blob carrying only `items` is not what redux-persist writes —+ // the real one also has `preferences` and `_persist`, and a missing+ // `_persist` is what tells it the blob is not rehydratable. Supply both+ // defaults so a fresh namespace behaves like a returning user's.+ const blob: Record<string, string> = raw+ ? (JSON.parse(raw) as Record<string, string>)+ : {+ preferences: JSON.stringify({+ messages: true,+ agents: true,+ skills: true,+ system: true,+ meetings: true,+ reminders: true,+ important: true,+ }),+ _persist: JSON.stringify({ version: -1, rehydrated: true }),+ };blob.items = JSON.stringify(payload);window.localStorage.setItem(key, JSON.stringify(blob));},