Skip to content

Navigation Menu

Sign in
Appearance settings
Sign up
Appearance settings

Commit 5612ace

Browse filesBrowse the repository at this point in the historyBrowse files
wanikuaclaude
andcommitted
fix(install): 5 config template issues causing broken fresh installs
1. allowBots: true -> "mentions" — prevents bot-to-bot reply loops 2. Added skipBootstrap: true — prevents BOOTSTRAP.md init mode on first run 3. Added messages.groupChat.mentionPatterns: ["@everyone", "@here"] 4. Added messages.groupChat block to all 3 config templates 5. SOUL.md -> SOUL.md.example — no longer overwrites custom persona Applied to: install.sh, install-lite.sh, install-mac.sh, openclaw.example.json Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent da0cec1 commit 5612ace
Copy full SHA for 5612ace

4 files changed

+66-18Lines changed: 66 additions & 18 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎install-lite.sh‎

Copy file name to clipboardExpand all lines: install-lite.sh
+18-5Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ cd "$WORKSPACE"
9292

9393
# SOUL.md
9494
if [ ! -f SOUL.md ]; then
95-
cat > SOUL.md << 'SOUL_EOF'
95+
cat > SOUL.md.example << 'SOUL_EOF'
9696
# SOUL.md - 朝廷行为准则
9797
9898
## 铁律
@@ -123,7 +123,7 @@ cat > SOUL.md << 'SOUL_EOF'
123123
| 执行层(重) | 强力模型 | 编码、深度分析 |
124124
| 执行层(轻) | 经济模型(可选) | 轻量任务,省钱 |
125125
SOUL_EOF
126-
echo -e " ${GREEN}✓ SOUL.md 已创建${NC}"
126+
echo -e " ${GREEN}✓ SOUL.md.example 已创建(如需自定义人设请重命名为 SOUL.md)${NC}"
127127
else
128128
echo -e " ${GREEN}✓ SOUL.md 已存在,跳过${NC}"
129129
fi
@@ -211,6 +211,7 @@ cat > "$CONFIG_DIR/$CONFIG_FILE" << CONFIG_EOF
211211
"agents": {
212212
"defaults": {
213213
"workspace": "$HOME/clawd",
214+
"skipBootstrap": true,
214215
"model": { "primary": "your-provider/fast-model" }
215216
},
216217
"list": [
@@ -262,6 +263,7 @@ cat > "$CONFIG_DIR/$CONFIG_FILE" << FEISHU_EOF
262263
"agents": {
263264
"defaults": {
264265
"workspace": "$HOME/clawd",
266+
"skipBootstrap": true,
265267
"model": { "primary": "your-provider/fast-model" },
266268
"sandbox": { "mode": "non-main" }
267269
},
@@ -375,7 +377,12 @@ cat > "$CONFIG_DIR/$CONFIG_FILE" << FEISHU_EOF
375377
},
376378
"bindings": [
377379
{ "agentId": "silijian", "match": { "channel": "feishu", "accountId": "silijian" } }
378-
]
380+
],
381+
"messages": {
382+
"groupChat": {
383+
"mentionPatterns": ["@everyone", "@here"]
384+
}
385+
}
379386
}
380387
FEISHU_EOF
381388
echo -e " ${GREEN}✓ 飞书单Bot模式配置已生成${NC}"
@@ -416,6 +423,7 @@ cat > "$CONFIG_DIR/$CONFIG_FILE" << CONFIG_EOF
416423
"agents": {
417424
"defaults": {
418425
"workspace": "$HOME/clawd",
426+
"skipBootstrap": true,
419427
"model": { "primary": "your-provider/fast-model" },
420428
"sandbox": { "mode": "non-main" }
421429
},
@@ -547,7 +555,7 @@ cat > "$CONFIG_DIR/$CONFIG_FILE" << CONFIG_EOF
547555
"discord": {
548556
"enabled": true,
549557
"groupPolicy": "open",
550-
"allowBots": true,
558+
"allowBots": "mentions",
551559
"guilds": {
552560
"YOUR_DISCORD_SERVER_ID": {
553561
"requireMention": true
@@ -642,7 +650,12 @@ cat > "$CONFIG_DIR/$CONFIG_FILE" << CONFIG_EOF
642650
{ "agentId": "hanlin_bianxiu", "match": { "channel": "discord", "accountId": "hanlin_bianxiu" } },
643651
{ "agentId": "hanlin_jiantao", "match": { "channel": "discord", "accountId": "hanlin_jiantao" } },
644652
{ "agentId": "hanlin_shujishi", "match": { "channel": "discord", "accountId": "hanlin_shujishi" } }
645-
]
653+
],
654+
"messages": {
655+
"groupChat": {
656+
"mentionPatterns": ["@everyone", "@here"]
657+
}
658+
}
646659
}
647660
CONFIG_EOF
648661
echo -e " ${GREEN}✓ Discord 多Bot模式配置已生成${NC}"
Collapse file

‎install-mac.sh‎

Copy file name to clipboardExpand all lines: install-mac.sh
+17-4Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ cd "$WORKSPACE"
104104

105105
# SOUL.md
106106
if [ ! -f "$WORKSPACE/SOUL.md" ]; then
107-
cat > "$WORKSPACE/SOUL.md" << 'SOUL_EOF'
107+
cat > "$WORKSPACE/SOUL.md.example" << 'SOUL_EOF'
108108
# SOUL.md - 朝廷行为准则
109109
110110
## 铁律
@@ -215,6 +215,7 @@ cat > "$CONFIG_DIR/$CONFIG_FILE" << CONFIG_EOF
215215
"agents": {
216216
"defaults": {
217217
"workspace": "$HOME/clawd",
218+
"skipBootstrap": true,
218219
"model": { "primary": "your-provider/fast-model" }
219220
},
220221
"list": [
@@ -266,6 +267,7 @@ cat > "$CONFIG_DIR/$CONFIG_FILE" << FEISHU_EOF
266267
"agents": {
267268
"defaults": {
268269
"workspace": "$HOME/clawd",
270+
"skipBootstrap": true,
269271
"model": { "primary": "your-provider/fast-model" },
270272
"sandbox": { "mode": "non-main" }
271273
},
@@ -379,7 +381,12 @@ cat > "$CONFIG_DIR/$CONFIG_FILE" << FEISHU_EOF
379381
},
380382
"bindings": [
381383
{ "agentId": "silijian", "match": { "channel": "feishu", "accountId": "silijian" } }
382-
]
384+
],
385+
"messages": {
386+
"groupChat": {
387+
"mentionPatterns": ["@everyone", "@here"]
388+
}
389+
}
383390
}
384391
FEISHU_EOF
385392
echo -e " ${GREEN}✓ 飞书单Bot模式配置已生成${NC}"
@@ -420,6 +427,7 @@ cat > "$CONFIG_DIR/$CONFIG_FILE" << CONFIG_EOF
420427
"agents": {
421428
"defaults": {
422429
"workspace": "$HOME/clawd",
430+
"skipBootstrap": true,
423431
"model": { "primary": "your-provider/fast-model" },
424432
"sandbox": { "mode": "non-main" }
425433
},
@@ -547,7 +555,7 @@ cat > "$CONFIG_DIR/$CONFIG_FILE" << CONFIG_EOF
547555
"discord": {
548556
"enabled": true,
549557
"groupPolicy": "open",
550-
"allowBots": true,
558+
"allowBots": "mentions",
551559
"guilds": {
552560
"YOUR_DISCORD_SERVER_ID": {
553561
"requireMention": true
@@ -642,7 +650,12 @@ cat > "$CONFIG_DIR/$CONFIG_FILE" << CONFIG_EOF
642650
{ "agentId": "hanlin_bianxiu", "match": { "channel": "discord", "accountId": "hanlin_bianxiu" } },
643651
{ "agentId": "hanlin_jiantao", "match": { "channel": "discord", "accountId": "hanlin_jiantao" } },
644652
{ "agentId": "hanlin_shujishi", "match": { "channel": "discord", "accountId": "hanlin_shujishi" } }
645-
]
653+
],
654+
"messages": {
655+
"groupChat": {
656+
"mentionPatterns": ["@everyone", "@here"]
657+
}
658+
}
646659
}
647660
CONFIG_EOF
648661
echo -e " ${GREEN}✓ Discord 多Bot模式配置已生成 ($CONFIG_DIR/$CONFIG_FILE)${NC}"
Collapse file

‎install.sh‎

Copy file name to clipboardExpand all lines: install.sh
+18-5Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ cd "$WORKSPACE"
370370

371371
# SOUL.md
372372
if [ ! -f SOUL.md ]; then
373-
cat > SOUL.md << 'SOUL_EOF'
373+
cat > SOUL.md.example << 'SOUL_EOF'
374374
# SOUL.md - 朝廷行为准则
375375
376376
## 铁律
@@ -401,7 +401,7 @@ cat > SOUL.md << 'SOUL_EOF'
401401
| 执行层(重) | 强力模型 | 编码、深度分析 |
402402
| 执行层(轻) | 经济模型(可选) | 轻量任务,省钱 |
403403
SOUL_EOF
404-
echo -e " ${GREEN}✓ SOUL.md 已创建${NC}"
404+
echo -e " ${GREEN}✓ SOUL.md.example 已创建(如需自定义人设请重命名为 SOUL.md)${NC}"
405405
fi
406406

407407
# IDENTITY.md
@@ -477,6 +477,7 @@ cat > "$CONFIG_DIR/$CONFIG_FILE_NAME" << CONFIG_EOF
477477
"agents": {
478478
"defaults": {
479479
"workspace": "$HOME/clawd",
480+
"skipBootstrap": true,
480481
"model": { "primary": "your-provider/fast-model" }
481482
},
482483
"list": [
@@ -533,6 +534,7 @@ cat > "$CONFIG_DIR/$CONFIG_FILE_NAME" << FEISHU_EOF
533534
"agents": {
534535
"defaults": {
535536
"workspace": "$HOME/clawd",
537+
"skipBootstrap": true,
536538
"model": { "primary": "your-provider/fast-model" },
537539
"sandbox": { "mode": "non-main" }
538540
},
@@ -677,7 +679,12 @@ cat > "$CONFIG_DIR/$CONFIG_FILE_NAME" << FEISHU_EOF
677679
},
678680
"bindings": [
679681
{ "agentId": "silijian", "match": { "channel": "feishu", "accountId": "silijian" } }
680-
]
682+
],
683+
"messages": {
684+
"groupChat": {
685+
"mentionPatterns": ["@everyone", "@here"]
686+
}
687+
}
681688
}
682689
FEISHU_EOF
683690
echo -e " ${GREEN}✓ 飞书单Bot模式配置已生成(司礼监 + sessions_spawn 后台调度)${NC}"
@@ -718,6 +725,7 @@ cat > "$CONFIG_DIR/$CONFIG_FILE_NAME" << CONFIG_EOF
718725
"agents": {
719726
"defaults": {
720727
"workspace": "$HOME/clawd",
728+
"skipBootstrap": true,
721729
"model": { "primary": "your-provider/fast-model" },
722730
"sandbox": { "mode": "non-main" }
723731
},
@@ -849,7 +857,7 @@ cat > "$CONFIG_DIR/$CONFIG_FILE_NAME" << CONFIG_EOF
849857
"discord": {
850858
"enabled": true,
851859
"groupPolicy": "open",
852-
"allowBots": true,
860+
"allowBots": "mentions",
853861
"guilds": {
854862
"YOUR_DISCORD_SERVER_ID": {
855863
"requireMention": true
@@ -945,7 +953,12 @@ cat > "$CONFIG_DIR/$CONFIG_FILE_NAME" << CONFIG_EOF
945953
{ "agentId": "hanlin_bianxiu", "match": { "channel": "discord", "accountId": "hanlin_bianxiu" } },
946954
{ "agentId": "hanlin_jiantao", "match": { "channel": "discord", "accountId": "hanlin_jiantao" } },
947955
{ "agentId": "hanlin_shujishi", "match": { "channel": "discord", "accountId": "hanlin_shujishi" } }
948-
]
956+
],
957+
"messages": {
958+
"groupChat": {
959+
"mentionPatterns": ["@everyone", "@here"]
960+
}
961+
}
949962
}
950963
CONFIG_EOF
951964
echo -e " ${GREEN}✓ Discord 多Bot模式配置已生成${NC}"
Collapse file

‎openclaw.example.json‎

Copy file name to clipboardExpand all lines: openclaw.example.json
+13-4Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
},
4343
"sandbox": {
4444
"mode": "non-main"
45-
}
45+
},
46+
"skipBootstrap": true
4647
},
4748
"list": [
4849
{
@@ -276,7 +277,7 @@
276277
"discord": {
277278
"enabled": true,
278279
"groupPolicy": "open",
279-
"allowBots": true,
280+
"allowBots": "mentions",
280281
"accounts": {
281282
"silijian": {
282283
"name": "司礼监",
@@ -359,7 +360,7 @@
359360
"enabled": false,
360361
"dmPolicy": "open",
361362
"groupPolicy": "open",
362-
"allowBots": true,
363+
"allowBots": "mentions",
363364
"accounts": {
364365
"silijian": {
365366
"appId": "YOUR_FEISHU_APP_ID",
@@ -469,5 +470,13 @@
469470
"accountId": "hanlin_shujishi"
470471
}
471472
}
472-
]
473+
],
474+
"messages": {
475+
"groupChat": {
476+
"mentionPatterns": [
477+
"@everyone",
478+
"@here"
479+
]
480+
}
481+
}
473482
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.