agents: list: - id: my-agent workspace: /Users/openclaw/.openclaw/agents/my-agent/workspace
agents: list: - id: my-agent workspace: /Users/openclaw/.openclaw/agents/my-agent/workspace
agents: list: - id: my-agent workspace: /Users/openclaw/.openclaw/agents/my-agent/workspace
# Remove default workspace
rm -rf ~/.openclaw/workspace # Symlink to the actual workspace
ln -s /Users/openclaw/.openclaw/agents/my-agent/workspace ~/.openclaw/workspace # Protect the symlink with macOS immutable flag
sudo chflags -h uchg ~/.openclaw/workspace
# Remove default workspace
rm -rf ~/.openclaw/workspace # Symlink to the actual workspace
ln -s /Users/openclaw/.openclaw/agents/my-agent/workspace ~/.openclaw/workspace # Protect the symlink with macOS immutable flag
sudo chflags -h uchg ~/.openclaw/workspace
# Remove default workspace
rm -rf ~/.openclaw/workspace # Symlink to the actual workspace
ln -s /Users/openclaw/.openclaw/agents/my-agent/workspace ~/.openclaw/workspace # Protect the symlink with macOS immutable flag
sudo chflags -h uchg ~/.openclaw/workspace - Absolute path in agents.list[].workspace → ❌
- agents.defaults.workspace fallback → ❌
- Adding agentDir field → ❌ (doesn't exist)
- openclaw agents add my-agent --workspace /path via CLI → ❌
- Deleting ~/.openclaw/workspace/ before restart → ❌ (recreated every time) - Always use absolute paths for workspace config. ~ is not expanded (by design).
- macOS and Linux can behave differently even on the same version. Platform-specific bugs exist.
- Always verify the session JSONL cwd after adding a new node. Config being correct doesn't guarantee correct behavior.
- chflags is a powerful macOS tool for preventing daemon/package-manager file overwrites. - OpenClaw: 2026.3.13
- macOS: Ventura (Mac Mini M1)
- Verified working: Ubuntu 24.04