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: expose safe auth failure bucket in E2E
Steven Enamakeladeb77c54351
diff --git a/app/src/utils/desktopDeepLinkListener.ts b/app/src/utils/desktopDeepLinkListener.tsindex 254923c18b..448b353782 100644--- a/app/src/utils/desktopDeepLinkListener.ts+++ b/app/src/utils/desktopDeepLinkListener.ts@@ -15,6 +15,7 @@ import {completeDeepLinkAuthProcessing,failDeepLinkAuthProcessing,} from '../store/deepLinkAuthState';+import { E2E_RESTART_APP_AS_RELOAD } from './config';import { getStoredCoreMode } from './configPersistence';import {CORE_CONFIG_UNREADABLE_I18N_KEY,@@ -301,6 +302,14 @@ const handleAuthDeepLink = async (parsed: URL, requireStateNonce = true) => {);} else {const kind = classifyAuthStoreFailure(error);+ // The native E2E harness cannot observe WebView console warnings. Expose+ // only this stable, PII-free bucket so failed auth setup can be diagnosed+ // without leaking the backend response or credential into test logs.+ if (E2E_RESTART_APP_AS_RELOAD && typeof window !== 'undefined') {+ (+ window as Window & { __OPENHUMAN_E2E_AUTH_STORE_FAILURE__?: string }+ ).__OPENHUMAN_E2E_AUTH_STORE_FAILURE__ = kind;+ }// Capture a SYNTHETIC error keyed only by `kind` — never the raw error.// Two reasons (both raised in review):// 1. PII: the upstream `/auth/me` failure embeds the verbatim backenddiff --git a/app/test/e2e/helpers/shared-flows.ts b/app/test/e2e/helpers/shared-flows.tsindex a4181090f6..cb7c418bad 100644--- a/app/test/e2e/helpers/shared-flows.ts+++ b/app/test/e2e/helpers/shared-flows.ts@@ -958,6 +958,9 @@ export async function performFullLogin(isBootstrapping: state?.isBootstrapping ?? null,hasSessionToken: Boolean(state?.snapshot?.sessionToken),hasAuthUser: Boolean(state?.snapshot?.auth?.userId),+ authStoreFailureKind:+ (window as unknown as { __OPENHUMAN_E2E_AUTH_STORE_FAILURE__?: string })+ .__OPENHUMAN_E2E_AUTH_STORE_FAILURE__ ?? null,};}).catch(() => null);