mirror of
https://github.com/dtzp555-max/memory-continuity.git
synced 2026-07-21 21:15:07 +00:00
fix: resolve workspace path from openclaw.json for cross-machine compatibility (v2.5.0)
This commit is contained in:
@@ -124,11 +124,7 @@ for agent in agents:
|
||||
seen.add(agent_id)
|
||||
|
||||
name = agent.get('name', agent_id)
|
||||
workspace = agent.get('workspace', default_ws if agent_id == 'main' else None)
|
||||
|
||||
# Skip agents without a resolvable workspace
|
||||
if not workspace:
|
||||
workspace = os.path.join(openclaw_dir, 'workspaces', agent_id)
|
||||
workspace = agent.get('workspace', default_ws)
|
||||
|
||||
# Expand ~ in path
|
||||
workspace = os.path.expanduser(workspace)
|
||||
|
||||
Reference in New Issue
Block a user