mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-25 17:54:34 +08:00
The sync module creates its own PreferencesManager at server startup, separate from the one shared by web routes. When the user configures their identity through the web UI, the web routes' manager writes to disk and updates its own cache, but the sync module's manager retains a stale cache from startup. Subsequent pull imports then call tryApplyOwnerProfile with the stale cache, returning no_profile and skipping owner assignment even though a profile exists on disk. Fix: invalidate the sync manager's cache before each onSessionImported callback so the fresh profile is always read from disk. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>