fix: narrow forced message tool inclusion · openclaw/openclaw@24e88bc
steipete
·
2026-05-15
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -322,8 +322,7 @@ export function createOpenClawTools(
|
322 | 322 | }); |
323 | 323 | options?.recordToolPrepStage?.("openclaw-tools:nodes-tool"); |
324 | 324 | const embedded = isEmbeddedMode(); |
325 | | -const includeMessageTool = |
326 | | -Boolean(messageTool) && (!embedded || options?.sourceReplyDeliveryMode === "message_tool_only"); |
| 325 | +const includeMessageTool = !embedded || options?.sourceReplyDeliveryMode === "message_tool_only"; |
327 | 326 | const effectiveCallGateway = embedded |
328 | 327 | ? createEmbeddedCallGateway() |
329 | 328 | : openClawToolsDeps.callGateway; |
@@ -358,7 +357,7 @@ export function createOpenClawTools(
|
358 | 357 | : {}), |
359 | 358 | }), |
360 | 359 | ]), |
361 | | - ...(includeMessageTool ? [messageTool] : []), |
| 360 | + ...(messageTool && includeMessageTool ? [messageTool] : []), |
362 | 361 | ...collectPresentOpenClawTools([heartbeatTool]), |
363 | 362 | createTtsTool({ |
364 | 363 | agentChannel: options?.agentChannel, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。