From 3f2dfb5df2f12005d16a9199ed30ad65c8109dc8 Mon Sep 17 00:00:00 2001 From: cft0808 Date: Mon, 20 Apr 2026 00:18:35 +0800 Subject: [PATCH] fix: deploy SOUL.md with correct uppercase filename (#294) OpenClaw only loads SOUL.md (uppercase), but deploy_soul_files() was writing to soul.md (lowercase), causing the deployed SOUL to be ignored. Fixes #294 --- scripts/sync_agent_config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/sync_agent_config.py b/scripts/sync_agent_config.py index e31b700..23770bd 100644 --- a/scripts/sync_agent_config.py +++ b/scripts/sync_agent_config.py @@ -295,14 +295,14 @@ def sync_scripts_to_workspaces(): def deploy_soul_files(): - """将项目 agents/xxx/SOUL.md 部署到 ~/.openclaw/workspace-xxx/soul.md""" + """将项目 agents/xxx/SOUL.md 部署到 ~/.openclaw/workspace-xxx/SOUL.md""" agents_dir = BASE / 'agents' deployed = 0 for proj_name, runtime_id in _SOUL_DEPLOY_MAP.items(): src = agents_dir / proj_name / 'SOUL.md' if not src.exists(): continue - ws_dst = OPENCLAW_HOME / f'workspace-{runtime_id}' / 'soul.md' + ws_dst = OPENCLAW_HOME / f'workspace-{runtime_id}' / 'SOUL.md' ws_dst.parent.mkdir(parents=True, exist_ok=True) # 只在内容不同时更新(避免不必要的写入) src_text = src.read_text(encoding='utf-8', errors='ignore')