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
Merge remote-tracking branch 'upstream/main' into test/e2e-session-expiry-specs
M3gA-Mind2f1f25108a09
diff --cc app/test/e2e/specs/auth-access-control.spec.tsindex 13c7236d88,e565d9f175..2e3f117ca3--- a/app/test/e2e/specs/auth-access-control.spec.ts+++ b/app/test/e2e/specs/auth-access-control.spec.ts@@@ -524,35 -382,4 +382,41 @@@ describe('Auth & Access Control', () =expect(stillOnHome).toBeNull();console.log('[AuthAccess] Revoked session auto-logout verified');});++ // The counterpart of the revoked case: only a 401 expires the session, so a+ // 403 from `/auth/me` (a plan, WAF or proxy refusal) must leave the user+ // signed in.+ it('a forbidden /auth/me keeps the user signed in', async function () {+ this.timeout(120_000);+ clearRequestLog();+ resetMockBehavior();+ setMockBehavior('composioConnections', '[]');+ await performFullLogin('e2e-forbidden-session-token');++ setMockBehavior('session', 'forbidden');+ await triggerAuthDeepLink('e2e-forbidden-check-token');+- // 1. The injection landed: `/auth/me` was asked after the 403 was armed.++ // 1. The injection landed: a completed GET /auth/me answered 403.+ await browser.waitUntil(- async () => getRequestLog().some(r => r.method === 'GET' && r.url.includes('/auth/me')),- { timeout: 12_000, interval: 500, timeoutMsg: 'no /auth/me request after the 403 was armed' }++ async () =>++ getRequestLog().some(++ r => r.method === 'GET' && r.url.includes('/auth/me') && r.status === 403++ ),++ {++ timeout: 20_000,++ interval: 250,++ timeoutMsg: 'mock did not finish a GET /auth/me response with status 403',++ }+ );++ // 2. The core keeps the credential and the shell stays on Home. The wait- // matches the revoked case's 20 s window, in which the background- // `/auth/me` refresh of the existing session clears it on a 401 — so a- // 403 that still signed out would be caught here.++ // matches the revoked case's 20 s window, in which a 401 signs out, so++ // a 403 that still signed out would be caught here.+ await browser.pause(20_000);+ const state = await callOpenhumanRpc<AuthStateResponse>('openhuman.auth_get_state', {});+ expectRpcOk('auth_get_state', state);+ expect(authStateValue(state).isAuthenticated).toBe(true);+ expect(await waitForHomePage(5_000)).not.toBeNull();+ resetMockBehavior();+ });});