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

推荐订阅源

The GitHub Blog
The GitHub Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Microsoft Security Blog
Microsoft Security Blog
J
Java Code Geeks
S
SegmentFault 最新的问题
Apple Machine Learning Research
Apple Machine Learning Research
N
Netflix TechBlog - Medium
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园_首页
宝玉的分享
宝玉的分享
Google DeepMind News
Google DeepMind News
B
Blog RSS Feed
Hugging Face - Blog
Hugging Face - Blog
量子位
Blog — PlanetScale
Blog — PlanetScale
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
阮一峰的网络日志
阮一峰的网络日志
D
Docker
罗磊的独立博客
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
云风的 BLOG
云风的 BLOG
IT之家
IT之家
MyScale Blog
MyScale Blog
Microsoft Azure Blog
Microsoft Azure 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(agents): preserve distinct empty exec failures · open...
steipete · 2026-04-27 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -560,6 +560,36 @@ describe("tool-loop-detection", () => {

560560

}

561561

});

562562
563+

it("keeps changing empty-output exec failures below the global no-progress breaker", () => {

564+

const state = createState();

565+

const params = { command: "openclaw flaky-helper" };

566+
567+

for (let index = 0; index < GLOBAL_CIRCUIT_BREAKER_THRESHOLD; index += 1) {

568+

recordSuccessfulCall(

569+

state,

570+

"exec",

571+

params,

572+

{

573+

content: [{ type: "text", text: `Runtime failed before spawn: attempt ${index}` }],

574+

details: {

575+

status: "failed",

576+

exitCode: null,

577+

durationMs: 100 + index,

578+

aggregated: "",

579+

},

580+

},

581+

index,

582+

);

583+

}

584+
585+

const loopResult = detectToolCallLoop(state, "exec", params, enabledLoopDetectionConfig);

586+

expect(loopResult.stuck).toBe(true);

587+

if (loopResult.stuck) {

588+

expect(loopResult.level).toBe("warning");

589+

expect(loopResult.detector).toBe("generic_repeat");

590+

}

591+

});

592+
563593

it("does not block repeated unknown-tool failures before the unknown-tool threshold", () => {

564594

const state = createState();

565595

const toolName = "exec";

Original file line numberDiff line numberDiff line change

@@ -206,6 +206,14 @@ function stringField(value: unknown): string | null {

206206

return typeof value === "string" ? value : null;

207207

}

208208
209+

function nonEmptyStringField(value: unknown): string | null {

210+

if (typeof value !== "string") {

211+

return null;

212+

}

213+

const trimmed = value.trim();

214+

return trimmed ? trimmed : null;

215+

}

216+
209217

function hashExecToolOutcome(details: Record<string, unknown>, text: string): string | undefined {

210218

const status = stringField(details.status);

211219

if (!status) {

@@ -224,7 +232,7 @@ function hashExecToolOutcome(details: Record<string, unknown>, text: string): st

224232

status,

225233

exitCode: typeof details.exitCode === "number" ? details.exitCode : null,

226234

timedOut: details.timedOut === true,

227-

output: stringField(details.aggregated) ?? text,

235+

output: nonEmptyStringField(details.aggregated) ?? text,

228236

});

229237

}

230238