openhuman icon indicating copy to clipboard operation
openhuman copied to clipboard

Signing in switches to a fresh user profile and silently hides all local data

Open nocstah opened this issue 3 months ago • 1 comments

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:

  1. Use the app signed-out with a local profile (threads + config accumulated).
  2. Sign in with a cloud account.
  3. 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):

  1. Warn before switching: "Signing in switches to a separate profile — your current local threads stay on this device under the local profile."
  2. A profile switcher (Settings → account) listing existing users/* dirs so switching back is one click.
  3. 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

—

nocstah avatar Aug 24 '26 10:08 nocstah

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.

senamakel avatar Oct 09 '26 17:10 senamakel