mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-30 16:20:35 +02:00
Desktop spawned its private daemon with --profile desktop-<api-host>, which made daemon.LoadConfig pick `~/multica_workspaces_<profile>/` as the workspaces root. CLI and Web (no profile) fell back to `~/multica_workspaces/`. The same workspace_id therefore had two local roots on the same machine and the user's task workdir could not be shared between clients. Default the workspaces root to `~/multica_workspaces/` regardless of profile. Profile still scopes daemon PID, config, and health port. At daemon startup, migrate any pre-existing `~/multica_workspaces_<profile>/` contents into the unified directory on a best-effort basis: skipped when MULTICA_WORKSPACES_ROOT is set or the workspaces root has been overridden, and never blocks startup on failure. Conflicting entries are left in the legacy dir for manual reconciliation.