Files
multica/apps
Jiang Bohan e15fc1a740 fix(daemon): unify workspaces root across Desktop/Web/CLI
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.
2026-04-28 17:23:59 +08:00
..