tinyhumansai/openhuman · error
[clearAllAppData] storage clear failed:
Error message
[clearAllAppData] storage clear failed:
What it means
Clearing user-scoped localStorage entries during a full app-data wipe threw — either the prefix-scoped per-user removal loop or the whole-store localStorage.clear() fallback (pre-login recovery path) failed. The catch aborts the remaining cleanup steps in clearAllAppData, so other stores (caches, sessionStorage, etc.) may survive and leave orphaned data behind.
Source
Thrown at app/src/utils/clearAllAppData.ts:45
const prefix = `${userId}:`;
const toRemove: string[] = [];
for (let i = 0; i < localStorage.length; i++) {
const key = localStorage.key(i);
if (key && key.startsWith(prefix)) {
toRemove.push(key);
}
}
for (const key of toRemove) {
localStorage.removeItem(key);
}
localStorage.removeItem(ACTIVE_USER_KEY);
} else {
// No known user (pre-login recovery) — fall back to clearing everything
// so we don't leave orphaned blobs with no way to scope the deletion.
localStorage.clear();
}
} catch (err) {
console.warn('[clearAllAppData] storage clear failed:', err);
} finally {
try {
sessionStorage.clear();
} catch {
// best-effort
}
}
}
interface ClearAllAppDataOptions {
// Optional core-side session clear (e.g. `auth_clear_session`). Best-effort —
// skipped silently if the caller cannot/does not provide it (e.g. pre-login
// recovery from a corrupt key file, where there is no live session).
clearSession?: () => Promise<unknown>;
// User scope passed to the CEF profile purge so per-user browser data is
// queued for deletion on the next launch. `null` purges the unauthenticated
// default profile.
userId?: string | null;View on GitHub (pinned to 7491200858)
When it happens
Trigger: Thrown at app/src/utils/clearAllAppData.ts:45 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of tinyhumansai/openhuman@7491200858 (2026-08-17).
Data as JSON: /api/errors/e56eb7cbdb869eff.
Report an issue: GitHub.