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): cover ForwardSearch's hash branch and close a retry-count race\n\nTwo more review findings, both legitimate.\n\nHash forwarding had no browser-level coverage. AppRoutes.skills.test.tsx does\nassert loc.hash === '#section-mcp', but under MemoryRouter, which never parses\nwindow.location.hash — so nothing showed that a real HashRouter round-trips a\nfragment nested inside the routing hash (#/connections?tab=mcp#section-mcp).\nThat nesting is the part only a browser can answer, and it is the mechanism\n/webhooks relies on for #delivery-3-style deep links. Added a case asserting\nquery and fragment survive together, plus the selected tab.\n\nThe retry bound raced its own observation. seenAuth.length grows when the route\nhandler STARTS and route.fallback() settles asynchronously, so a third request\ncould arrive after the mid-flight <= 2 check and escape it. The breach is now\nrecorded inside the handler — the only place that sees every attempt — and\nasserted after the flow reaches its terminal rendered state, as\nexcessAttempts == [] plus seenAuth.length == 2.\n\nBoth files are Playwright and still unrun: the lane needs a core-bin build plus\na browser and the machine is at its memory limit, so these are reasoned from\nsource. The PR body already flags this spec pair as not-to-be-counted coverage.\n
M3gA-Mind9a58ce3c2ff1
diff --git a/app/test/playwright/specs/connections-tab-deeplinks.spec.ts b/app/test/playwright/specs/connections-tab-deeplinks.spec.tsindex e59bb0f965..f4a5e89f9d 100644--- a/app/test/playwright/specs/connections-tab-deeplinks.spec.ts+++ b/app/test/playwright/specs/connections-tab-deeplinks.spec.ts@@ -196,6 +196,28 @@ test.describe('Connections — the /skills back-compat redirect', () => {await expectSelectedTab(page, 'mcp');});+ test('/skills?tab=mcp#fragment forwards the fragment as well as the query', async ({+ page,+ }) => {+ // `ForwardSearch` appends `hash` as well as `search`, and nothing here+ // exercised that half. `AppRoutes.skills.test.tsx` does assert+ // `loc.hash === '#section-mcp'`, but under `MemoryRouter`, which never+ // parses `window.location.hash` at all — so it cannot show that a real+ // HashRouter round-trips a fragment nested inside the routing hash+ // (`#/connections?tab=mcp#section-mcp`). That is the part only a browser+ // can answer, and it is the mechanism `/webhooks` relies on for+ // `#delivery-3`-style deep links.+ await openRoute(+ page,+ 'pw-skills-hash-forward',+ '/skills?tab=mcp#section-mcp',+ '/connections'+ );+ await expect.poll(() => currentHash(page), { timeout: 15_000 }).toContain('tab=mcp');+ expect(await currentHash(page)).toContain('#section-mcp');+ await expectSelectedTab(page, 'mcp');+ });+test('/skills with no query still lands on the overview', async ({ page }) => {// The forward must not invent a query where the user supplied none.await openRoute(page, 'pw-skills-no-query', '/skills', '/connections');diff --git a/app/test/playwright/specs/core-rpc-bearer-401.spec.ts b/app/test/playwright/specs/core-rpc-bearer-401.spec.tsindex ffa05ef6e2..57854a861b 100644--- a/app/test/playwright/specs/core-rpc-bearer-401.spec.ts+++ b/app/test/playwright/specs/core-rpc-bearer-401.spec.ts@@ -48,6 +48,7 @@ test.describe('Core RPC bearer 401 — recovery, not logout', () => {// token pass, which is the very regression #5876 guards against.const ROTATED = 'openhuman-playwright-token-rotated';const seenAuth: string[] = [];+ const excessAttempts: string[] = [];await page.route('**/rpc', async (route, request) => {let body: { method?: string } = {};try {@@ -57,6 +58,14 @@ test.describe('Core RPC bearer 401 — recovery, not logout', () => {}if (body.method === TRIGGER_METHOD) {seenAuth.push(request.headers()['authorization'] ?? '');+ if (seenAuth.length > 2) {+ // Recorded HERE, not asserted after the poll: `seenAuth.length` grows+ // when the handler STARTS, and `route.fallback()` settles+ // asynchronously, so a third request can arrive after a mid-flight+ // `<= 2` check and escape it entirely. The handler is the only place+ // that observes every attempt.+ excessAttempts.push(request.headers()['authorization'] ?? '');+ }if (seenAuth.length === 1) {// Rotate the stored bearer before rejecting, so a refreshed read// picks up the new value and a cached read does not.@@ -90,9 +99,6 @@ test.describe('Core RPC bearer 401 — recovery, not logout', () => {expect(seenAuth[1]).toContain(ROTATED);expect(seenAuth[1]).not.toEqual(seenAuth[0]);- // Bounded to a single extra attempt — a retry loop against a core that is- // genuinely rejecting us would be worse than the bug.- expect(seenAuth.length).toBeLessThanOrEqual(2);// (3) The session survives. Without #5876 `clearSession()` wipes the auth// profile and the app falls back to the signed-out surface. Assert the@@ -103,5 +109,13 @@ test.describe('Core RPC bearer 401 — recovery, not logout', () => {'page',{ timeout: 20_000 });++ // (4) Bounded to ONE extra attempt. Asserted only now, after the flow has+ // settled into its terminal rendered state, and from the handler-side+ // record so a late third request cannot slip past a mid-flight check. A+ // retry loop against a core that is genuinely rejecting us would be worse+ // than the bug #5876 fixed.+ expect(excessAttempts).toEqual([]);+ expect(seenAuth.length).toBe(2);});});