Signing in switches to a fresh user profile and silently hides all local data
Summary
Signing in (cloud login) creates a fresh user profile and switches the app to it immediately — all local threads, memory, and provider config vanish from the UI with no warning and no visible way back. Users reasonably conclude their data was deleted. It wasn't — but nothing tells them that.
Problem
What happened vs expected: a long-standing local profile (users/local-…) held months of threads, a configured brain, and memory. During an unrelated OAuth errand the user went through the app's sign-in; the app created users/<backend-uid> with a default config, wrote it into active_user.toml, and relaunched into a blank workspace. The user's report: "my conversations etc is gone". Recovery required hand-editing ~/.openhuman/active_user.toml back to the local profile id — there is no profile switcher, no "you are switching to a different profile" warning, and no post-login breadcrumb pointing at the old data.
Steps to reproduce:
- Use the app signed-out with a local profile (threads + config accumulated).
- Sign in with a cloud account.
- App switches to a freshly-created per-account profile: empty threads, default config. No warning, no way back from the UI.
Version/platform: v0.63.14, macOS, desktop bundle.
Solution (optional)
Any of (in increasing order of effort):
- Warn before switching: "Signing in switches to a separate profile — your current local threads stay on this device under the local profile."
- A profile switcher (Settings → account) listing existing
users/*dirs so switching back is one click. - Offer a migration/import of the local profile's threads + config into the account profile at first sign-in.
Acceptance criteria
- [ ] Repro gone — signing in either preserves visible access to prior local data or explains exactly where it lives and how to return to it.
- [ ] Regression safety — a test covers profile-switch behavior at login.
- [ ] Diff coverage ≥ 80% — the fix PR meets the changed-lines coverage gate (Vitest + cargo-llvm-cov, enforced by
.github/workflows/ci-lite.yml).
Related
—
Triage: valid — Current review confirms this is a concrete, in-scope engineering issue or request: “Signing in switches to a fresh user profile and silently hides all local data”. No complete resolution is evident in current main.