惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

爱范儿
爱范儿
H
Help Net Security
Jina AI
Jina AI
T
The Blog of Author Tim Ferriss
宝玉的分享
宝玉的分享
博客园 - 叶小钗
Y
Y Combinator Blog
罗磊的独立博客
大猫的无限游戏
大猫的无限游戏
WordPress大学
WordPress大学
C
Check Point Blog
Recent Announcements
Recent Announcements
IT之家
IT之家
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
美团技术团队
云风的 BLOG
云风的 BLOG
雷峰网
雷峰网
H
Hackread – Cybersecurity News, Data Breaches, AI and More
S
SegmentFault 最新的问题
MyScale Blog
MyScale Blog
Apple Machine Learning Research
Apple Machine Learning Research
Microsoft Azure Blog
Microsoft Azure Blog
V
Visual Studio Blog
B
Blog

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix(gateway/approvals): treat turnSourceTo as optional in...
ottodeng · 2026-05-15 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -10,6 +10,7 @@ Docs: https://docs.openclaw.ai

1010
1111

### Fixes

1212
13+

- Gateway/approvals: treat `turnSourceTo` as optional in `canBridgeNoDeviceChatApprovalFromBackend`, matching the existing optional handling of `turnSourceAccountId` and `turnSourceThreadId`. Channels without a recipient concept (webchat, control-ui) leave `turnSourceTo` null on both the approval snapshot and the replay params, so the prior required-string check rejected every backend replay with `APPROVAL_CLIENT_MISMATCH`. Cross-channel replay is still gated by the required `turnSourceChannel` and `sessionKey` checks. Fixes #82132. (#82136) Thanks @ottodeng.

1314

- Cron: load runtime plugins before isolated cron model and delivery resolution so external channels can be selected for scheduled runs. (#82111) Thanks @medns.

1415

- Twitch: keep gateway accounts running until shutdown instead of treating successful monitor startup as a clean channel exit, preventing immediate auto-restart loops. Fixes #60071. (#81853) Thanks @edenfunf.

1516

- Agents/auto-reply: honor `agents.defaults.silentReply` and per-surface group silent-reply policy when generic agent-run failure fallbacks decide whether to send visible fallback text. Fixes #82060. (#82086) Thanks @taozengabc.

Original file line numberDiff line numberDiff line change

@@ -689,6 +689,52 @@ describe("sanitizeSystemRunParamsForForwarding", () => {

689689

expectAllowOnceForwardingResult(result);

690690

});

691691
692+

test("accepts trusted backend webchat replay when turnSourceTo is null on both sides (regression #82132)", () => {

693+

const sessionKey = "agent:main:main";

694+

const record = makeChatRecord({

695+

sessionKey,

696+

turnSourceChannel: "webchat",

697+

turnSourceTo: null,

698+

turnSourceAccountId: null,

699+

turnSourceThreadId: null,

700+

systemRunPlan: {

701+

argv: ["echo", "SAFE"],

702+

cwd: null,

703+

commandText: "echo SAFE",

704+

agentId: "main",

705+

sessionKey,

706+

},

707+

systemRunBinding: buildSystemRunApprovalBinding({

708+

argv: ["echo", "SAFE"],

709+

cwd: null,

710+

agentId: "main",

711+

sessionKey,

712+

}).binding,

713+

});

714+
715+

const result = sanitizeSystemRunParamsForForwarding({

716+

rawParams: {

717+

command: ["echo", "SAFE"],

718+

rawCommand: "echo SAFE",

719+

agentId: "main",

720+

sessionKey,

721+

turnSourceChannel: "webchat",

722+

turnSourceTo: null,

723+

turnSourceAccountId: null,

724+

turnSourceThreadId: null,

725+

runId: "approval-1",

726+

approved: true,

727+

approvalDecision: "allow-once",

728+

},

729+

nodeId: "node-1",

730+

client: trustedBackendClient,

731+

execApprovalManager: manager(record),

732+

nowMs: now,

733+

});

734+
735+

expectAllowOnceForwardingResult(result);

736+

});

737+
692738

test("rejects trusted backend chat replay when session binding changes", () => {

693739

const result = sanitizeSystemRunParamsForForwarding({

694740

rawParams: {

Original file line numberDiff line numberDiff line change

@@ -158,7 +158,13 @@ function canBridgeNoDeviceChatApprovalFromBackend(params: {

158158

actual: params.rawParams.turnSourceChannel,

159159

lowercase: true,

160160

}) &&

161-

matchesRequiredString({

161+

// turnSourceTo is channel-specific: required for messaging channels with a

162+

// recipient (e.g. telegram chat id), null for channels without a "to"

163+

// concept (webchat, control-ui). matchesRequiredString returns false on

164+

// null expected, which broke webchat node exec approval replay. Treat it

165+

// as optional so null-on-both-sides matches; required fields below

166+

// (turnSourceChannel, sessionKey) still gate cross-channel replays.

167+

matchesOptionalString({

162168

expected: request.turnSourceTo,

163169

actual: params.rawParams.turnSourceTo,

164170

}) &&