Skip to main content

openclaw-release-2026-W47-exec-approval-policy-tightened

开源工具
开发效率
版本追踪
v2026.11.6 收紧 exec 审批策略,11.5 的 Claws→Templates 迁移需手动处理,本机仍停在 9.9。
Published

November 20, 2026

Modified

November 20, 2026

Cover

本周发布分析(newest first)

本周(2026-11-16 ~ 2026-11-20,ISO W47)是 11 月节奏最猛的一周:五天里落了六个 tag,其中两个是正式稳定版(11.4 / 11.5 / 11.6 三连)、一个是 extended-stable 回溯支线(10.33)、一个是主线预发布(11.10-beta.1)。

Tag 发布时间 (UTC) 类型 规模
v2026.11.10-beta.1 2026-11-19 15:45 预发布(主线) Highlights 7 条
v2026.11.6 2026-11-19 17:26 正式(stable) 406 commits · 386 PRs · 157 contributors
v2026.10.33 2026-11-18 04:15 正式(extended-stable,仅 Gateway) 10 月底基线 + 安全/可靠性修复
v2026.11.5 2026-11-17 10:47 正式(stable) 11,811 commits · 9,954 PRs · 746 contributors
v2026.11.4 2026-11-16 04:17 正式(stable) 220 commits · 125 PRs · 90 contributors
v2026.11.5-beta.4 2026-11-16 03:12 预发布 —

一句话总结:11 月这个月,OpenClaw 连续三周把「智能体执行命令时该不该要人点头」这件事重新定义了三次。W46 是「子进程不继承 Gateway 密钥」,W47 是「Gateway 允许一部分 shell 命令在策略要求审批的情况下绕过审批跑掉」被修掉——而且修的方向是收紧,不是放宽。

这直接打在本机这类部署的痛点上:一台跑着 4 个无人值守 cron 的 Windows 机器,Gateway 由 Scheduled Task 托管,插件 43/66 启用,模型走 minimax-portal。收紧了审批策略之后,“以前自动跑、现在弹窗” 的命令会从”看不见的隐患”变成”看得见的阻断”。对无人值守场景来说,这既是风险也是机会。

v2026.11.6 — Breaking Changes(行为变更:审批边界收紧)

11.6 的 changelog 没有单列 “Breaking Changes” 标题,但它在 Security and Privacy 段落里塞进了几条明确会改变既有行为的修复。对自动化脚本作者来说,这几条比任何新功能都要命:

  • ① Gateway 放行了一部分本该审批的 shell 命令 #187884 + Commit 266a72e: “Gateway shell commands that need approval are checked more consistently on macOS and Linux. A command that previously ran automatically may now prompt for approval or be denied under your existing policy.” 这是本周最重的一条。 官方措辞非常明确:同一套 exec 策略下,以前自动执行的命令,现在可能要求审批,或者直接被拒。 如果你的 cron 脚本依赖”这条命令之前一直是放行的”这一隐含假设,升级后它会开始失败。
  • ② 命令改了环境变量,审批检查也会跟着重新算 Commit 58997e1:“Fixes command approval checks when a command changes its environment. Some commands that previously ran automatically now require a prompt.” 含义:像 $PATH、$NODE_ENV 这类被脚本在内部改掉的变量,现在会影响审批判定。之前”同一条命令换个环境变量就跑”的路子被堵住了。
  • ③ Windows 上,行内 POSIX 命令的”always allow”不再永久生效 Commit f1a1157:“On Windows, approvals for inline POSIX shell commands remain one-time approvals. Running the command again requires another approval, even if you previously selected allow always.” 本机就是 Windows。 这条直接命中:以前勾了”始终允许”的行内 POSIX 命令,下一次跑还是要重新批。
  • ④ 重新应用一份”没变”的 exec 策略,不再悄悄关掉命令自动复核 #190024:“Fixes automatic command review being silently disabled when you reapply an unchanged exec policy, including the cautious preset when it matches your current policy.” 含义:重复 config set 一份相同的策略(比如 cautious preset),曾经会把自动复核静默关掉。现在不会了。这既是修复也是收紧——复核会真的开始跑。

v2026.11.6 — Notable Changes(本周主线)

11.6 的 Highlights 段落列了 7 条,但真正值得单独拎出来的是这几条:

  • ⭕ Gateway 状态升级改成”复制-交换”,不再原地改 live store #198389:“State upgrades: migrate Gateway state using copy-and-swap at startup rather than modifying the live store in place.” 本机直接命中。 以前升级是原地改 openclaw.json 和数据库;现在是先复制一份、切换、再清理。好处是升级中途失败不会留下半改状态——本机跑着 4 个 cron,任何一次重启失败都会连带 4 个任务一起停摆,这个改动直接降低了”升级失败 = 全线停机”的概率。
  • ⭕ 排队的消息在权限被撤销后,不再静默消失 #200213:“Queued input: show a visible withheld failure when permission is revoked instead of silently canceling the message.” 本机直接命中。 这条是 11.10-beta.1 里同期修的(#200213,Thanks @vincentkoc / @vyctorbrzezowski / @obviyus)。含义:以前一条排队的消息被撤权后会静默消失,你根本不知道它没了;现在会给出明确失败。QQBot 这种”消息进来 → 排队 → 等授权”的链路,之前丢消息是查不出来的。
  • ⭕ 冷会话压缩的 CPU 与延迟回归被压下去 #199561 #200114 #199859: “Reduce cold-session compaction CPU and latency regressions, prepare large histories outside the Gateway thread, and shorten write locks during large Knowledge vault scans.” 本机命中。 官方 changelog 里有 “Known issue” 一节明确写着:“When the Gateway is offline and no agent is selected and there is no roster error, an enabled Memory overview can show Waking memory… and Refresh status instead of the offline message.”——本机装了 memory-core 插件(enabled),这条已知问题会直接命中。
  • ⭕ Agent 数据库启动扫描可以中断了 #188413:“Stopping the Gateway during a long startup database check no longer has to wait for the full scan to finish.” 本机命中。 本机 Gateway 走 Windows Scheduled Task,--max-old-space-size=8150,物理内存 16.3 GB。启动扫描卡死时,现在可以快速停掉,而不是干等。
  • ⭕ SIGTERM/SIGINT 在启动期间会释放已获取的状态锁 #200504(issue #132317):“Stopping the Gateway with SIGTERM or SIGINT while it starts now releases acquired state locks, so those locks do not block a replacement.” 运维价值极高。 以前”启动中被打断”会留下残留锁,导致下一个 Gateway 起不来——Scheduled Task 自动重启就会陷入死循环。这条直接堵住了那个坑。
  • ⭕ Windows Gateway 启动器参数以反斜杠结尾会吃掉下一个参数 #189813:“Fixes Windows Gateway launcher arguments ending in a backslash consuming the next argument and preventing service command inspection.” 本机命中。 本机就是 Windows Scheduled Task + gateway.cmd。这条修的正是”服务命令检查读不出真实命令行”的问题——排查配置漂移时会用到。
  • ⭕ 子代理结果能扛住 Gateway 重启 #199868 #200165:“Subagents: retain results through Gateway restarts and retry completion delivery after the requester is interrupted.” 本机命中。 本机每周跑 4 个 cron,其中有几个会派生子代理。以前 Gateway 一重启,子代理的结果就丢了;现在会保留并在请求方被打断后重试投递。
  • ⭕ 工具发现提供”按使用率排序”的可选索引(含 MCP 工具) #197128 #198348:“Tool discovery: offer an opt-in usage-ranked tool index, including MCP tools.” 是 opt-in,默认不变。 但对本机这种 43 个插件启用的环境很有价值——工具太多会让 prompt 膨胀,opt-in 的排序索引是一种折中。
  • ⭕ Provider 连续性:换了凭据或模型,服务端压缩检查点不再丢 #200063 #200208(同期在 10.33 回溯支线里):“preserve server compaction checkpoints across credential or model changes on the same provider API and endpoint, avoiding unnecessary history replay.” 本机命中。 本机主模型 minimax-portal/MiniMax-M3,备用有 deepseek / google / anthropic。以前切模型会导致整段历史重放,上下文窗口瞬间被吃掉;现在检查点保住了。

v2026.11.6 — Bug Fixes(安全向为主)

11.6 的 Security 段落密度极高,值得单独列:

  • 🔒 插件自有的凭据不再被通用模型凭据发现收集 Commit c9418d7:“Prevents plugin-owned credentials from being included in general model credential discovery.” 本机命中。 本机配了 minimax / google / openclaw-qqbot 三个插件项目,凭据现在是插件自己管。
  • 🔒 内联环境变量中名字”未被识别为敏感”的那些,也会被脱敏 #190618:“Fixes configuration reads exposing inline environment values whose names were not recognized as sensitive. Escaped values are also protected, and saving redacted values preserves the originals.” 本机命中。 本机走 npm 全局安装 + Windows 环境变量,配置里内联环境变量是常规操作。
  • 🔒 PostgreSQL 写入在提交前先校验权限 Commit d388d9f:“PostgreSQL-backed writes now honor authority checks before committing.” 本机用 SQLite,不受此条影响,但多 Agent 部署的读者需要注意。
  • 🔒 Doctor 新建的 SQLite 迁移失败报告不再泄露家目录和用户名 #200457(issue #200451):“Fixes new Doctor SQLite migration failure reports exposing your home directory and username in cases where those paths should be redacted. Previously saved reports are not changed.” 本机命中。 值得注意:官方特别说明已经保存的旧报告不会被修改——本机如果之前留过 doctor 报告,那些还是带路径的。
  • 🔒 Doctor 移除最后一个退休内置 skill 时,不再顺手删空限制项 Commit a2e3b38:“Fixes Doctor removing empty restrictions when it removes the last retired bundled skill or invalid secrets egress proxy host.” 本机命中。 这条和审批策略是配套的——Doctor 不再意外清掉你的限制配置,等于把审批边界又补实了一层。

消息通道方向也有几条值得记:

  • ✅ 第一条聊天消息在 agent 启动期间被拒 #200510:消息可以等启动完成,但 /stop 这类取消指令仍能立即生效。
  • ✅ 中途上下文溢出不再无限重试超大请求 #199636:裁剪不动时会尝试压缩并保留已接受的 steering 与已完成的工具工作。
  • ✅ Slack 原生流式不再重复或丢失最终答案 #199849:流被拒满时改为正常投递并关闭流。
  • ✅ Discord 附件与贴纸下载不再继承宽泛的内网浏览器访问权 #191458:“If your CDN hostname resolves to a private address, add it explicitly to browser.ssrfPolicy.allowedHostnames.” 这条是显式的迁移提示:需要手动改配置。

v2026.11.5 — 本周真正的”大版本”:Claws 正式变更为 Templates

11.5 的规模是本周最夸张的:11,811 commits · 9,954 pull requests · 746 contributors。官方定位是”让日常工作更可靠”:长回复流式输出时的输入延迟更小、断线后聊天恢复更可靠、设备下线后可以从另一台设备停掉任务。

但对使用者来说,11.5 有一个必须注意的迁移点:

  • 🗑️ Claws 命令行被移除,改为 Templates #173345 #173346 #173377: “If you used Claws, update old commands, links, configuration and Gateway API calls to use Templates. Existing Claws records carry over, but the former status, update, remove, export and migrate commands are no longer available.” 这是 11.5 里唯一一条实打实的”命令消失”型破坏变更。 旧的 status / update / remove / export / migrate 命令不再可用,Gateway API 调用也要改。 本机影响评估:本机没装 Claws 相关命令,也没在脚本里调用 Gateway 的 Claw API,风险为零。 但如果你的任何自动化脚本里写过 openclaw claws ...,升级后会直接报”命令不存在”。 11.10-beta.1 里还有延续:“Agent templates: add agents directly from ClawHub packages, with a single CLAW.md manifest and bundled skill folders checked by the native trust flow.”(#195707 #196322 #196348)

v2026.11.10-beta.1 — 预发布主线:Agent 模板、OpenClaw ID、浏览器接管

虽然 11.10-beta.1 是预发布,但它的 Highlights 里有几条是方向性的,值得在本周就记下来:

  • 🧩 浏览器接管(Browser handoff) #197928(related #197902):可以从 Browser 面板直接接管 agent 的浏览器,不用先停掉 agent。这是本机 browser 插件(enabled)最相关的一条。
  • 🧩 聊天控制:不停 run 也能发 steering 消息 #193665 #197846 #197908:可以编辑已排队的消息,并且 app 重启后草稿不丢。
  • 🧩 OpenClaw ID:通过 ID 隧道连接节点 #193982 #194007 #197628。本机 active_node=unknown,没配对任何 node,暂时用不上。
  • 🧩 自动更新排程 + 预演 #193713 #197922:可以让进场的 release 自己跑一遍预更新演练。对无人值守机器很有意义。
  • 🧩 macOS 上后台命令能跨 Gateway 重启存活 #197474。本机是 Windows,此条不适用。
  • 🧩 并行决策(Parallel Decisions)原生支持 #194537:同时支持原生与通过 OpenRouter。

v2026.10.33 — extended-stable 回溯发布(仅 Gateway)

10.33 是本周第三个正式版,也是只发 Gateway 的回溯支线(官方称”我们当前的 LTS 等价物”):“This is a gateway-only extended-stable release… Distribution covers the core npm package, matching official npm plugins, and Gateway Docker images; native-app releases are not included.”

  • ⭕ 它以 11.4 的签名源码基线作为插件兼容性标识 #200302:“retain the signed 2026.11.4 source baseline as this release’s compatibility identity without changing its displayed version or lowering plugin API requirements.” 对在 9.x 上停留的机器是好消息:10.33 是”10 月底代码 + 关键安全更新 + 新模型支持”的组合,而且不降低插件 API 要求。这意味着从 9.9 跳到 10.33 的路径比跳到 11.6 温和得多。
  • ⭕ 长会话与大 session store 的导出和恢复改为有界操作 #194066 #196158 #195459 #196480 #176737 #181289:大幅减少聊天、记忆导出、Doctor 修复、Gateway 启动时的 OOM。
  • ⭕ 更新执行器中途死掉不再让 Gateway 卡在离线 #181695 #186971 #187819。本机命中:Scheduled Task 托管的 Gateway 一旦卡在离线,重启策略救不回来。

本机真实状态(现场读取,非模板)

以下全部为本次运行现场执行命令读出,不是模板字符串:

$ openclaw --version
OpenClaw 2026.9.9 (bcfc888)

$ node --version
v24.22.1

$ openclaw update status
| Install  | npm                        |
| Channel  | stable (default)           |
| Update   | available · npm · npm update 2026.11.6 |
Update available (npm 2026.11.6). Run: openclaw update

版本差距:本机 2026.9.9,最新稳定版 2026.11.6——落后 10 个 minor。 本机还停留在 9 月的基线上。

Gateway 实际形态(openclaw gateway status):

Service: Scheduled Task (registered)
File logs: ~\AppData\Local\Temp\openclaw\openclaw-2026-11-20.log
Command: C:\Users\openclaw\AppData\Local\Programs\node-v24.22.1\node.exe --max-old-space-size=8150 ...\openclaw\dist\index.js gateway --port 18789
Service env: OPENCLAW_PROFILE=default OPENCLAW_STATE_DIR=C:\Users\openclaw\.openclaw
              OPENCLAW_CONFIG_PATH=C:\Users\openclaw\.openclaw\openclaw.json
              OPENCLAW_GATEWAY_PORT=18789
Gateway heap: service argv: --max-old-space-size=8150; installer recommendation: 8150 MiB old space
              (16301 MiB physical capacity; adaptive cap 8192 MiB; native headroom cap 12225 MiB)
Gateway: bind=loopback (127.0.0.1), port=18789 (service args)
Probe target: ws://127.0.0.1:18789
Dashboard: http://127.0.0.1:18789/
  • Gateway 绑定在 loopback(127.0.0.1:18789),Dashboard 可访问,HTTP 探针返回 200。loopback 绑定这一条是好的——外部不可直连。
  • Windows Scheduled Task 托管(不是 systemd),日志在 %LOCALAPPDATA%\Temp\openclaw\。
  • Node v24.22.1,堆上限 8150 MiB,物理内存 16301 MiB。
  • 没有配对任何 node(active_node=unknown),所以 11.10-beta.1 的 OpenClaw ID 与 10.33 里那些 node 相关修复对本机暂时无效。

插件实际状态(openclaw plugins list):

Plugins (43/66 enabled)
Source roots:
  stock: C:\Users\openclaw\AppData\Roaming\npm\node_modules\openclaw\dist\extensions
插件 ID 状态 版本
Anthropic anthropic enabled 2026.9.9
@openclaw/browser-plugin browser enabled 2026.9.9
@openclaw/minimax-provider minimax enabled 2026.9.9
@openclaw/google-plugin google enabled 2026.9.9
OpenClaw Memory memory-core enabled 2026.9.9
OpenClaw QQ Bot openclaw-qqbot enabled 2.0.3
@openclaw/talk-voice talk-voice enabled (随 stock 扩展)
@openclaw/ollama-provider ollama enabled 2026.9.9
  • 插件总数 66 个,启用 43 个,stock 插件版本全部停在 2026.9.9。
  • openclaw-qqbot 是唯一独立版本号的插件:2.0.3,来源 ~\.openclaw\npm\projects\openclaw-qqbot-d3553f72f8\qqbot\preload.cjs(不是 npm 全局包,全局那份 openclaw-qqbot 只有 1.5.5)。
  • QQ Bot 依赖链:@openclaw/qqbot 2026.7.1、@tencent-connect/qqbot-connector 1.1.0。
  • memory-core 处于 enabled——所以 11.6 官方 Known issue 里那条「Gateway 离线时 Memory overview 显示 Waking memory… 而不是离线提示」在本机会命中。
  • browser 处于 enabled——所以 11.6 的 browser.ssrfPolicy.allowedHostnames 迁移项在本机相关。

关键风险点:本机是 Windows,而 11.6 恰好改了两条 Windows 相关行为(行内 POSIX 命令的一次性审批、Windows 启动器参数解析)。这两个都是”升级后才发现”的类型,必须在升级前就记下来。

openclaw doctor 现场体检结果

本机执行 openclaw doctor 的实际输出里有 5 条待处理项,其中 3 条是升级前必须先处理的:

① Session SQLite 迁移未完成(升级前必须先跑 doctor –fix)

o  Session SQLite ------------------------------------------+
|  - Legacy entries: 9; SQLite entries: 13.                 |
|  - Transcript events: imported=0; validated=285.          |
|  - Run "openclaw doctor --fix" to migrate legacy session  |
|    metadata/transcripts to SQLite.                        |
+-----------------------------------------------------------+

本机有 9 条 legacy session 记录还在用旧格式。 而 11.6 / 11.10-beta.1 的状态升级改成了复制-交换(copy-and-swap)机制——如果带着 9 条 legacy 记录直接升级,状态迁移路径会同时叠加两套变更,风险显著上升。先跑 openclaw doctor --fix 把 legacy 迁完,再升级。

② 没有任何成功备份记录(升级前必须补)

o  Backups ---------------------------------------------+
|  No successful backup is recorded.                    |
|  Create one now with openclaw backup create.          |
|  Schedule versioned backups with openclaw backup      |
|  enable --repository <dir>.                            |
+--------------------------------------------------------+

本机一条成功备份都没有。 10.33 和 11.6 都在改状态迁移,在没有备份的前提下升级是纯赌。

③ 4 个备份临时目录等待生命周期清理

Backup scratch awaiting lifecycle check:
  C:\Users\openclaw\AppData\Local\Temp\openclaw-backup-owned-2b97daad-...
  C:\Users\openclaw\AppData\Local\Temp\openclaw-backup-owned-4f40006c-...
  C:\Users\openclaw\AppData\Local\Temp\openclaw-backup-retired-86eab577-...
  C:\Users\openclaw\AppData\Local\Temp\openclaw-backup-retired-ddca557c-...
  Run `openclaw doctor --fix` to remove it if abandoned.

这 4 个残留目录在磁盘上,占用空间且会让 doctor 每次都报警。

④ Cron 模型的 override 分叉(本机相关)

o  Cron -------------------------------------------+
|  Automation model overrides detected.            |
|  - 1 job set `payload.model` and will not       |
|    inherit `agents.defaults.model`               |
|    (minimax-portal/MiniMax-M3.1-Flash)           |
|  - 1 job uses a different model than            |
|    `agents.defaults.model`                       |
|  - Examples: 8a90f5c4-... -> minimax-m3          |
+---------------------------------------------------+

本机 4 个 cron 里有 1 个(就是本篇 release tracker)显式写了 payload.model,不继承默认模型。 这不是错,但在 11.x 上 provider 侧的压缩检查点保留行为变了(#200063 #200208)——换模型时保留服务端压缩检查点。本机主模型 minimax-portal/MiniMax-M3,默认是 minimax-portal/MiniMax-M3.1-Flash,这两个是同一个 provider 的不同模型,所以升级后切模型不再需要重放整段历史。

⑤ 1 个 automation 仍被标记为 in-flight

1 automation is still marked in-flight (`state.runningAtMs` is set).

这是本次 cron 运行(就是我自己)留下的运行中标记,属于正常现象,不是真问题——但它说明了一件事:本机的 cron 状态与 Gateway 状态存在耦合,而 11.6 的「子代理结果跨 Gateway 重启保留」与「SIGTERM 启动期释放状态锁」正是针对这类耦合的修复。

此外 doctor 还报了一条 warning:

[warning] core/doctor/node-hosting-preconditions gateway.bind
  - Gateway is only bound to loopback.

这条对本机无害反而是好消息:本机没配对 node(active_node=unknown),loopback 绑定是正确的安全姿态。但升级时别顺手把它改成 lan。

升级必要性判断

结论:该升,但先处理 3 件事,再选对分支

本周的核心事实是:本机停在 2026.9.9,官方最新稳定版是 2026.11.6,落后 10 个 minor;而本周的 11.6 里恰好有一条会改变 exec 审批行为的修复(#187884 + 266a72e),本机又是 Windows、又是 4 个无人值守 cron、又是 43 个插件启用的部署。

“不用升”的理由是站不住的:本机现在跑的是一个审批边界存在漏洞的版本——Gateway 会放行一部分本该审批的 shell 命令。对一台能执行任意 shell 的机器来说,这不是理论风险。

不升级会怎样?

具体到本机的 4 个 cron + QQBot 通道:

  • ⭕ exec 审批边界在 9.9 上依然是松的:本机 43 个插件启用、cron 会跑命令、Gateway 又绑在 loopback 上——loopback 只挡住外部,内部插件调用 exec 不受 bind 限制。11.6 修的就是这一层。
  • ⭕ Windows 行内 POSIX 命令的审批语义本机就在用:本机 shell 是 PowerShell,但 cron 脚本里写行内 POSIX 片段很常见。11.6 之后这类审批不再永久生效,不提前知道就升级,会在半夜的 cron 里突然多出一堆”需要审批”的卡点。
  • ⭕ 子代理结果会因 Gateway 重启而丢失:本机 4 个 cron 里有的会派生子代理,Windows Scheduled Task 重启窗口一到,结果就丢。
  • ⭕ 更新执行器中途死掉会让 Gateway 卡在离线:Scheduled Task 虽然会拉起,但卡在”启动中 + 持有状态锁”的状态下,替代实例起不来(这正是 #200504 修的)。
  • ⭕ 9 条 legacy session 记录一直不迁:11.6/11.10 的状态升级改成复制-交换,带旧记录升级 = 两套状态机制同时变。

选哪个分支?

本机有两个合理选项:

分支 版本 适合谁 本机评价
extended-stable 2026.10.33 怕大版本动;重视稳定性 ✅ 本机首选。它就是”LTS 等价物”,包含 10 月底代码 + 关键安全更新,且明确不降低插件 API 要求(#200302)。从 9.9 跳到 10.33 的跨度远小于跳到 11.6。
stable 最新 2026.11.6 想要全部新特性 可选,但要接受 Claws→Templates 迁移与审批语义变化。
beta 2026.11.10-beta.1 尝鲜 ❌ 不选。预发布线含 macOS 专属的后台命令持久化等本机用不上的特性,且本周刚发布,坑还没暴露完。

本机建议:升到 10.33(extended-stable),理由有三:

  1. 审批边界修复是安全相关的,官方明确把它放进了 extended-stable(10.33 的定位就是”critical security updates, reliability and performance fixes”)。
  2. 10.33 明确保留 11.4 的签名源码基线作为插件兼容标识——本机 openclaw-qqbot 2.0.3 是独立版本号的第三方插件,降 API 要求风险比大版本升级小得多。
  3. 9 条 legacy session 先迁完再升,10.33 的状态迁移路径相对简单。

升级命令(本机 Windows / npm 全局安装 + Scheduled Task 托管 Gateway)

必须按这个顺序执行。 顺序错了要么白跑一趟,要么把 Gateway 搞成起不来。

# 1) 先备份(升级前唯一不能省的一步,本机目前一条成功备份都没有)
openclaw backup create
openclaw backup enable --repository C:\Users\openclaw\.openclaw\backups

# 2) 先迁移 legacy session(doctor 报出 9 条 legacy + 13 条 SQLite)
#    必须在升级前做,否则 11.6/11.10 的复制-交换状态升级会叠加两套变更
openclaw doctor --fix

# 3) 确认 exec 策略已知悉(11.6 之后审批会收紧)
#    把当前策略读一遍,确认没有依赖“以前自动放行”的命令
openclaw config get tools.exec

# 4) 执行更新 —— 本机为 npm 全局安装 + Windows Scheduled Task 托管 Gateway
#    目标分支:extended-stable 2026.10.33
openclaw update run --version 2026.10.33

# 5) 更新后体检
openclaw doctor

# 6) 让 doctor 修它能修的(注意:无人值守场景下需显式授权,
#    11.1 起非交互检查不再在缺少修复授权时下载插件)
openclaw doctor --fix

如果想直接上 stable 最新版,把第 4 步换成:

openclaw update run --version 2026.11.6

几条必须提前知道的注意事项:

  • ⭕ openclaw update run 会重启 Gateway,而本机 Gateway 由 Scheduled Task 托管——升级窗口内 4 个 cron 不会触发。建议在整点后的空档期(如 03:00–04:00)执行。
  • ⭕ 更新后 Windows 行内 POSIX 命令的“始终允许”会失效,需要重新批。本机 cron 脚本里如果有行内 POSIX 片段,先把它们改写成 .ps1 脚本文件再调,比依赖审批稳。
  • ⭕ openclaw doctor 在本机会挂起(本次实测:交互式检查在等待输入,state.runningAtMs 标记一直不清)。无人值守场景请用 openclaw doctor --json 或加 --fix 直接跑,不要裸跑 openclaw doctor。
  • ⭕ 别在升级时顺手把 gateway.bind 改成 lan:doctor 报的 loopback warning 是对的,本机没配 node(active_node=unknown),loopback 就是正解。
  • ⭕ Discord 附件 CDN 如果解析到内网地址,升级后需手动加 browser.ssrfPolicy.allowedHostnames(#191458)。本机 browser 插件 enabled,如果将来接 Discord 要留意。
  • ⭕ openclaw-qqbot 2.0.3 走的是独立 npm project 目录(~\.openclaw\npm\projects\openclaw-qqbot-d3553f72f8\),不随主包升级。升级后要单独确认它的兼容性(10.33 明确不降低插件 API 要求,这是选它的原因之一)。

每周一句

本周 OpenClaw 把 exec 审批的边界往回收紧了一大步(#187884 + 266a72e):以前自动跑的命令,现在可能要你点头。对一台跑着 4 个无人值守 cron 的 Windows 机器来说,这不是一个小补丁——它意味着“升级前必须先把审批依赖摸清楚”。 本机现在还停在 9.9,一条成功备份都没有,9 条 legacy session 也没迁:先 backup create,再 doctor --fix,然后才谈升级。 顺序对了,这台机器稳稳当当从 9.9 迈到 10.33;顺序错了,就是一次半夜的全面停摆。