fix: correct agents.list path in openclaw.json detection

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-19 09:23:42 +10:00
co-authored by Claude Sonnet 4.6
parent 449f1f4916
commit c366d3ec47
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -111,9 +111,9 @@ openclaw_dir = sys.argv[2]
with open(config_file) as f:
data = json.load(f)
default_ws = data.get('defaults', {}).get('workspace', os.path.join(openclaw_dir, 'workspace', 'main'))
default_ws = data.get('agents', {}).get('defaults', {}).get('workspace', os.path.join(openclaw_dir, 'workspace', 'main'))
agents = data.get('list', [])
agents = data.get('agents', {}).get('list', [])
seen = set()
idx = 1