OpenClaw / Agent 日报 · 2026-07-29:会话工具策略、插件回复钩子与记忆项目范围
今日关键词:per-session tool overrides、scoped reply hooks、CLI toolSummary 可观测、memory project scopes / FTS reconcile、Fish Audio S2.1 + MLX speech、渠道 allowlist / 私密路径收口、vLLM 0.26.0 / ollama 0.32.5。
数据来源:OpenClaw GitHub issues/PR(updated ≥2026-07-26)、commits、GitHub Releases(openclaw / ollama / mem0 / vLLM / langchain)、Hacker News Algolia。SocialData X 搜索今日未作为主素材并入(避免 API/SSL 抖动拖垮交付),正文以公开 GitHub / HN / release note 综合生成。
1. 今日最值得关注的 5 条动态
1)会话级工具策略:模型偏好之外,终于有了 sparse tool override
feat(agents): add per-session tool overrides (#115785, merged)
此前 session 能持久化 model / thinking / fast-mode,却不能为单会话挂一套稀疏工具策略。运营侧如果想:
- 只给某个 session 开/关个别 MCP server 或 skill;
- deny 某些 MCP tools;
- 关掉 web search;
就只能改全局配置,或另起 agent 身份。
今日合入在 core/protocol 层补上 per-session tool policy 缝:客户端可以按会话覆盖工具面,而不污染全局默认。对多租户 Gateway、临时沙箱会话、以及“同一 agent 不同任务不同权限”的生产场景,这是真正可运营的控制点。
2)插件回复钩子:按 turn trigger 作用域,别再挡住重启恢复
fix(plugins): recover user turns with scoped reply hooks (#114836, merged, P1 gold shrimp)
根因很典型:
before_agent_reply 一类钩子一旦注册,重启恢复会把它们都当成“可拦截用户 turn”的候选;
- 但部分 bundled memory maintenance hooks 只该在 heartbeat / cron 场景触发;
- 结果:钩子“在场”本身就可能阻塞 user-turn recovery。
今日方向:增加 typed、host-enforced 的 trigger 作用域,让 reply hooks 按触发来源过滤,而不是“有钩子就全员上场”。
运营含义:插件钩子必须声明它服务的生命周期;否则维护型钩子会意外变成生产恢复的门闩。
3)CLI 可观测:零工具成功跑和“缺 provenance”不能长得一样
fix(agents): expose CLI tool summaries in terminal results (#115797, merged)
- 关闭 issue #115497:Codex CLI terminal results omit toolSummary metadata
CLI-backed agent 成功跑完时,如果:
- 零工具 run 没有显式 empty summary;
- 有工具 run 又不给 tool name / invocation count / failure count;
调用方就无法区分“确定没调工具”和“元数据丢了”。今日把 CLI event boundary 收成一份 canonical tool summary(含 parsed JSONL 与 managed live-session 路径)。
对 cron / 自动化流水线:这是审计与计费前置条件——没有 toolSummary,就没有可验证的 agent 行为账本。
4)记忆:项目 scope 要从“只记最近一个仓库”变成“会话内多仓保留”
两条记忆修复一起看:
| PR | 主题 | 症状 |
|----|------|------|
| #115731 feat(memory): retain recent project scopes per session | 只保留 session 最新 prepared repo | monorepo / 兄弟 checkout / agent worktree 切换后,早先仓库记忆召不回 |
| #115775 fix(memory): reconcile derived FTS schemas | 旧 SQLite FTS 表 tokenizer/列/触发器漂移 | 打开库可能静默返回陈旧索引结果 |
#115731 让 project-scoped memory 在同一 session 内保留最近多个项目范围;#115775 则在打开库时 reconcile 派生 FTS schema,避免“库能开、结果却悄悄错”。
对长会话 coding agent:跨仓库游走是常态,记忆范围必须跟着任务图走,而不是 last-write-wins。
5)语音与渠道:Fish Audio / MLX 扩面 + 私密路径/allowlist 收口
feat: add Fish Audio S2.1 and local MLX speech (#115790, merged)
fix(msteams): honor group and channel conversation allowlists (#115746, merged)
fix(mattermost): preserve private-channel origin identity (#115726, merged)
fix(nostr): keep private tool traces out of encrypted messages (#115769, merged)
fix(line): mark durably accepted webhook deliveries (#115796, merged)
语音侧:Fish Audio 托管 S2.1 + 本地 MLX speech,补上此前“能配 NVIDIA chat 却复用不了同体系语音”的能力缺口(并联动 macOS Talk 参考录音路径)。
渠道侧则是一整组“别把私密会话当公开通道”的纪律:
- MS Teams allowlist 按稳定 thread id 生效;
- Mattermost 私密频道/群 DM 的 outbound origin 不再被写成 public channel;
- Nostr 加密私信不再泄漏 tool-failure banner / tool XML / 原始 tool response;
- LINE durable delivery 在 reverse proxy 场景下正确返回 acceptance marker。
2. OpenClaw 相关动态
插件与 Gateway 启动
fix(plugins): stop repeated manifest realpath scans (#115783, merged) — 多插件 Gateway 启动时,manifest / registry 校验不再对同一路径反复 realpath,缓解 Windows 慢盘上的 event-loop stall 与 prepared-model 超时。
- 开放跟踪:
fix(hooks): avoid implicit hook delivery targets (#100486, open / P1) — /hooks/agent 不得再因省略 channel 而继承 last,避免 non-chat webhook session 误读无关投递状态。
- 开放跟踪:
fix(gateway/ui): split session group mutations to avoid concurrent add loss (#112227, open / P1) — 双 Control UI 标签并发建组时,禁止 full-replacement catalog 把另一边静默删掉。
安全 / 边界 / 执行面
fix(agents): strip leading BOM from file reads (#115781, merged)
fix(cli): scope dns setup timeout to brew prefix probe with SIGKILL (#115782, merged)
fix(feishu): reject unsupported initial document content (#115697, merged)
- 开放:
fix(codex): restore connected apps for token-authenticated runs (#115075, open / P1) — token/ChatGPT 账号鉴权的 native Codex 不能再丢 authorized connected apps。
- 开放:
fix(ports): prevent duplicate macOS listener probes during status checks (#115813) — 缓解 #90548 相关的 per-port lsof 风暴与 LaunchServices 饱和风险。
渠道与入口
fix(mattermost): preserve safe denied-sender group history (#115773, merged)
refactor(channels): deduplicate ingress monitor shells (#115792, open) — 多渠道 ingress 的 error-class / deferred-claim shutdown 去重,降低 crash-recovery 单边更新风险。
fix(zalo): normalize prefixed Bot API delivery targets (#115814, open)
其他合入
refactor(skills): isolate workshop draft ingestion (#115791)
refactor(qa): remove execution sharding (#115787)
fix(hooks): exclude outbound Gmail labels (#56720)
chore: update dependencies across workspace (#115677)
3. Agent / MCP / coding agent 动态
- HN / 生态:
OneCLI(凭据网关,阻止 secrets 进入 agent)、Screenpipe(录制工作流再转 agent)、NoClick(用现有 AI 订阅搭 always-on agents)继续占位 agent 基础设施讨论。
- MCP 安全面升温:
Mcploitable(面向 OWASP Agentic Top 的脆弱 MCP 靶场)、终端侧 MCP server 安全评估 CLI、以及 “MCP 2026-07-28 协议兼容在 14 小时内落地” 一类条目,说明 MCP 已从“能连”进入“能审 / 能攻防演练”。
- Claude Code / Codex 周边:密钥与 PII 进模型前的 mask 工具、会话菜单栏监控、bookkeeper CLI(Magpie)等,都在补“coding agent 的运维与合规外层”。
- Agentic RL:Prime Intellect 侧有 365k environments 的 scaling 讨论,方向仍是 SWE / Terminal / Search 长程训练环境。
4. GitHub 重要更新(跟踪仓库)
| 项目 | 最新 release | 要点 |
|------|--------------|------|
| OpenClaw | v2026.7.1(2026-07-13) | 仍是 latest 标签;今日主线以 main 合入为主(tool overrides、memory scopes、语音与渠道修复) |
| ollama | v0.32.5(2026-07-27) | 修复 MLX Metal bug,改善 NVFP4(尤其 Laguna)输出质量 |
| vLLM | v0.26.0(2026-07-27) | 411 commits / 212 contributors;Inkling 全家桶、DeepSeek-V4 路由与量化性能推进 |
| mem0 | ts-v3.1.2(2026-07-25) | Cassandra / Chroma 复合过滤不再静默丢条件 |
| langchain | langchain-core==1.5.2(2026-07-28) | gateway env 空字符串处理等小修 |
| firecrawl | 无 latest(301 Moved Permanently) | 预期行为:仓库迁移 / 无 tagged latest,不作为 sourcing 失败 |
5. 值得跟进的话题
- 会话级权限模型会不会成为默认? per-session tool overrides 落地后,下一步是 UI 暴露、审计日志、以及与 sandbox backend 的联动。
- 钩子 trigger taxonomy 是否要产品化? #114836 证明“钩子在场 ≠ 钩子该拦”;cron / heartbeat / user turn 的边界需要文档与默认策略。
- 记忆多仓 + FTS reconcile 对中文长会话 / monorepo agent 的召回质量,值得做回归看板。
- #90548 macOS lsof/LaunchServices 仍是 crash-loop 级风险;#115813 只是部分缓解,完整产品决策还在路上。
- MCP 攻防资产(Mcploitable、评估 CLI)与 OpenClaw 的 plugin isolation / tool permission 叙事可以互相验证。
6. 今日结论
今天的 OpenClaw 主线不是“又加一个模型”,而是把 agent 运行面的可控性补齐:
- 会话可以有自己的工具面(#115785),全局默认不再是唯一旋钮;
- 插件钩子要按 trigger 作用域工作(#114836),维护钩子不得绑架用户 turn 恢复;
- CLI 结果必须带可验证 toolSummary(#115797),自动化才能审计;
- 记忆跟着多项目 session 走,并修正 FTS 漂移(#115731 / #115775);
- 语音能力扩面的同时,私密渠道与 allowlist 继续收口(#115790 + Teams/Mattermost/Nostr/LINE)。
如果只记一句话:Agent 平台的下一阶段竞争,是“单次聪明”之后的 session policy、hook lifecycle、memory scope 与私密投递纪律。
本日报由 OpenClaw 中文社区自动化流水线生成 · 2026-07-29