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

推荐订阅源

Martin Fowler
Martin Fowler
Y
Y Combinator Blog
M
MIT News - Artificial intelligence
The Cloudflare Blog
WordPress大学
WordPress大学
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园 - 司徒正美
小众软件
小众软件
Blog — PlanetScale
Blog — PlanetScale
雷峰网
雷峰网
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
J
Java Code Geeks
云风的 BLOG
云风的 BLOG
C
Check Point Blog
D
DataBreaches.Net
T
The Blog of Author Tim Ferriss
V
V2EX
F
Fortinet All Blogs
B
Blog
大猫的无限游戏
大猫的无限游戏
N
Netflix TechBlog - Medium
B
Blog RSS Feed
A
About on SuperTechFans
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC

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(telegram): suppress acknowledged mutating tool warnin...
vincentkoc · 2026-04-29 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

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

4646

- CLI/status: fall back to a bounded local `status` RPC when loopback detail probes time out or report unknown capability, so reachable local gateways are no longer marked unreachable by slow read diagnostics. Fixes #73535; refs #48360, #62762, #51357, and #42019. Thanks @RacecarGuy, @justinschille, @DJBlackhawk, @tianyaqpzm, and @0xrsydn.

4747

- CLI/gateway: reuse cached paired-device auth during `gateway probe` and report post-connect diagnostic failures as degraded reachability, so healthy local gateways are no longer marked unreachable after loopback auth or read timeouts. Fixes #48360. Thanks @RacecarGuy.

4848

- Channels/Discord: give Discord Gateway WebSocket handshakes a 30s timeout so stalled TLS/network transitions emit an error and Carbon can continue its reconnect loop instead of leaving the bot silent until restart. Refs #50046. Thanks @codexGW.

49+

- Channels/Telegram: suppress standalone failed edit/write warning payloads when a user-facing assistant error reply already covers the turn, while keeping unresolved mutating failures visible behind success-looking or suppressed-error replies. Fixes #39631; refs #73750; carries forward #39636 and #39717; leaves #39406 for configurable delivery policy. Thanks @Bartok9 and @Bortlesboat.

4950

- NVIDIA/NIM: persist the `NVIDIA_API_KEY` provider marker and mark bundled NVIDIA Chat Completions models as string-content compatible, so NIM models load from `models.json` and OpenAI-compatible subagent calls send plain text content. Fixes #73013 and #50107; refs #73014. Thanks @bautrey, @iot2edge, @ifearghal, and @futhgar.

5051

- Channels/Discord: let text-only configs drop the `GuildVoiceStates` gateway intent and expose a bounded `/gateway/bot` metadata timeout with rate-limited fallback logs, reducing idle CPU and warning floods. Fixes #73709 and #73585. Thanks @sanchezm86 and @trac3r00.

5152

- Agents/sessions: mark same-turn `sessions_send` and A2A reply prompts with an inter-session `isUser=false` envelope before they reach the model, so foreign session output no longer lands as bare active user text. Fixes #73702; refs #73698, #73609, #73595, and #73622. Thanks @alvelda.

Original file line numberDiff line numberDiff line change

@@ -80,6 +80,35 @@ describe("buildEmbeddedRunPayloads", () => {

8080

expect(payloads.some((payload) => payload.text === errorJson)).toBe(false);

8181

});

8282
83+

it("suppresses mutating tool warnings when an assistant error reply already covers the turn", () => {

84+

const payloads = buildPayloads({

85+

assistantTexts: [errorJson],

86+

lastAssistant: makeAssistant({}),

87+

lastToolError: { toolName: "edit", error: "file missing" },

88+

sessionKey: "agent:main:telegram:direct:u123",

89+

});

90+
91+

expectOverloadedFallback(payloads);

92+

expect(payloads[0]?.isError).toBe(true);

93+

expect(payloads.some((payload) => payload.text?.includes("Edit"))).toBe(false);

94+

expect(payloads.some((payload) => payload.text?.includes("missing"))).toBe(false);

95+

});

96+
97+

it("keeps mutating tool warnings when assistant error artifacts are not user-facing", () => {

98+

const payloads = buildPayloads({

99+

assistantTexts: [errorJson],

100+

lastAssistant: makeAssistant({}),

101+

lastToolError: { toolName: "edit", error: "file missing" },

102+

didSendDeterministicApprovalPrompt: true,

103+

sessionKey: "agent:main:telegram:direct:u123",

104+

});

105+
106+

expectSingleToolErrorPayload(payloads, {

107+

title: "Edit",

108+

absentDetail: "missing",

109+

});

110+

});

111+
83112

it("suppresses pretty-printed error JSON that differs from the errorMessage", () => {

84113

const payloads = buildPayloads({

85114

assistantTexts: [errorJsonPretty],

Original file line numberDiff line numberDiff line change

@@ -127,6 +127,7 @@ function shouldIncludeToolErrorDetails(params: {

127127

function resolveToolErrorWarningPolicy(params: {

128128

lastToolError: ToolErrorSummary;

129129

hasUserFacingReply: boolean;

130+

hasUserFacingErrorReply: boolean;

130131

hasUserFacingFailureAcknowledgement: boolean;

131132

suppressToolErrors: boolean;

132133

suppressToolErrorWarnings?: boolean;

@@ -152,7 +153,7 @@ function resolveToolErrorWarningPolicy(params: {

152153

params.lastToolError.mutatingAction ?? isLikelyMutatingToolName(params.lastToolError.toolName);

153154

if (isMutatingToolError) {

154155

return {

155-

showWarning: !params.hasUserFacingFailureAcknowledgement,

156+

showWarning: !params.hasUserFacingErrorReply && !params.hasUserFacingFailureAcknowledgement,

156157

includeDetails,

157158

};

158159

}

@@ -363,6 +364,7 @@ export function buildEmbeddedRunPayloads(params: {

363364

).filter((text) => !shouldSuppressRawErrorText(text));

364365
365366

let hasUserFacingAssistantReply = false;

367+

const hasUserFacingErrorReply = replyItems.some((item) => item.isError === true);

366368

let hasUserFacingFailureAcknowledgement = false;

367369

for (const text of answerTexts) {

368370

const {

@@ -394,6 +396,7 @@ export function buildEmbeddedRunPayloads(params: {

394396

const warningPolicy = resolveToolErrorWarningPolicy({

395397

lastToolError: params.lastToolError,

396398

hasUserFacingReply: hasUserFacingAssistantReply,

399+

hasUserFacingErrorReply,

397400

hasUserFacingFailureAcknowledgement,

398401

suppressToolErrors: Boolean(params.config?.messages?.suppressToolErrors),

399402

suppressToolErrorWarnings: params.suppressToolErrorWarnings,