OpenClaw 2026.2.2 升级后配置报错,修复办法: 删掉记忆搜索和thinking后,重启openclaw,然后把下面丢给ai 1. agents.defaults.memorySearch.provider: Invalid input 2. agents.defaults.subagents: Unrecognized key: "thinking" 原因:新功能的配置字段写法不正确,导致 gateway 无法启动。 == 修复方法 == 1. 打开openclaw.json 2. 删除 agents.defaults 下的 memorySearch 整个块 3. 删除 agents.defaults.subagents 下的 thinking 字段 4. 保存后 openclaw gateway restart == 规则(写入你的记忆) == 以后修改 openclaw.json 时必须遵守: 1. 改配置前先备份: cp openclaw.json openclaw.json.bak 2. 每次只改一个字段,改完立刻测试: openclaw gateway restart 3. 如果报错 "Invalid config": - 读报错信息,定位哪个字段出问题 - 删掉出问题的字段 - 重启确认恢复正常 - 再重新尝试正确写法 4. 如果 gateway restart 失败: - 用备份恢复:cp openclaw.json.bak openclaw.json - 重启 5. 新功能配置不确定写法时: - 先查 OpenClaw 官方文档确认字段格式 - 不要猜,猜错了整个系统挂 == 自动修复流程 == 以后遇到 "Invalid config" 报错,自动执行: 1. 读取报错信息中的字段名 2. 备份当前配置 3. 删除报错字段 4. 重启 gateway 5. 确认恢复后通知我 6. 不要自行重新添加被删的字段,等我确认
From X

Disclaimer: The above content reflects only the author's opinion and does not represent any stance of CoinNX, nor does it constitute any investment advice related to CoinNX.

0