sharween commited on
Commit
9f7268e
·
verified ·
1 Parent(s): 957f938

Update start-openclaw.sh

Browse files
Files changed (1) hide show
  1. start-openclaw.sh +5 -5
start-openclaw.sh CHANGED
@@ -130,20 +130,20 @@ echo "🔧 执行 openclaw doctor --fix ..."
130
  openclaw doctor --fix || true
131
 
132
  # ================================================
133
- # 7. 创建独立微信 Agent 并强制绑定
134
  # ================================================
135
- echo "🔧 创建独立微信 Agent 并强制绑定(解决主会话问题)..."
136
 
137
  # 创建独立 Agent
138
  openclaw agents add wechat-agent --workspace /root/.openclaw/agents/wechat-agent --non-interactive || true
139
 
140
- # 强制绑定所有来自 openclaw-weixin 的消息都 wechat-agent
141
  openclaw config set --json bindings '[{"agentId":"wechat-agent","match":{"channel":"openclaw-weixin"}}]' || true
142
 
143
- # 保险
144
  openclaw config set channels.openclaw-weixin.defaultAgent "wechat-agent" || true
145
 
146
- echo "✅ 微信绑定配置已更新(所有微信消息将路由到 wechat-agent)"
147
 
148
  # ================================================
149
  # 8. 启动定时备份
 
130
  openclaw doctor --fix || true
131
 
132
  # ================================================
133
+ # 7. 创建独立微信 Agent 并强制绑定(最强版本)
134
  # ================================================
135
+ echo "🔧 创建独立微信 Agent 并强制绑定(所有微信消息走独立会话)..."
136
 
137
  # 创建独立 Agent
138
  openclaw agents add wechat-agent --workspace /root/.openclaw/agents/wechat-agent --non-interactive || true
139
 
140
+ # 强制路由任何来自 openclaw-weixin 通道的消息都使用 wechat-agent
141
  openclaw config set --json bindings '[{"agentId":"wechat-agent","match":{"channel":"openclaw-weixin"}}]' || true
142
 
143
+ # 额外保险
144
  openclaw config set channels.openclaw-weixin.defaultAgent "wechat-agent" || true
145
 
146
+ echo "✅ 微信强制绑定完成(所有 openclaw-weixin 消息将路由到 wechat-agent)"
147
 
148
  # ================================================
149
  # 8. 启动定时备份