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

推荐订阅源

T
Tailwind CSS Blog
MyScale Blog
MyScale Blog
博客园 - Franky
酷 壳 – CoolShell
酷 壳 – CoolShell
WordPress大学
WordPress大学
有赞技术团队
有赞技术团队
雷峰网
雷峰网
罗磊的独立博客
小众软件
小众软件
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
V
V2EX
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
The Cloudflare Blog
Hugging Face - Blog
Hugging Face - Blog
博客园 - 【当耐特】
博客园 - 司徒正美
Last Week in AI
Last Week in AI
月光博客
月光博客
阮一峰的网络日志
阮一峰的网络日志
美团技术团队
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
量子位
宝玉的分享
宝玉的分享

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): classify internal aborts as non-deliverable ...
obviyus · 2026-05-31 · via Recent Commits to openclaw:main

File tree

  • src/agents/embedded-agent-runner/run

Original file line numberDiff line numberDiff line change

@@ -11,6 +11,7 @@ function baseParams(

1111

): ResolveAttemptTrajectoryTerminalParams {

1212

return {

1313

aborted: false,

14+

externalAbort: false,

1415

timedOut: false,

1516

assistantTexts: [],

1617

toolMetas: [],

@@ -177,6 +178,21 @@ describe("attempt trajectory status", () => {

177178

).toEqual({ status: "success" });

178179

});

179180
181+

it("marks internally aborted tool-use attempts without delivery as non-deliverable", () => {

182+

expect(

183+

resolveAttemptTrajectoryTerminal(

184+

baseParams({

185+

aborted: true,

186+

toolMetas: [{ toolName: "web_search" }],

187+

lastAssistantStopReason: "toolUse",

188+

}),

189+

),

190+

).toEqual({

191+

status: "error",

192+

terminalError: NON_DELIVERABLE_TERMINAL_TURN_REASON,

193+

});

194+

});

195+
180196

it("keeps async-started media tool-use attempts as terminal progress", () => {

181197

expect(

182198

resolveAttemptTrajectoryTerminal(

@@ -195,5 +211,10 @@ describe("attempt trajectory status", () => {

195211

expect(resolveAttemptTrajectoryTerminal(baseParams({ timedOut: true }))).toEqual({

196212

status: "interrupted",

197213

});

214+

expect(

215+

resolveAttemptTrajectoryTerminal(baseParams({ aborted: true, externalAbort: true })),

216+

).toEqual({

217+

status: "interrupted",

218+

});

198219

});

199220

});

Original file line numberDiff line numberDiff line change

@@ -15,6 +15,7 @@ export type AttemptTrajectoryTerminal = {

1515

export type ResolveAttemptTrajectoryTerminalParams = {

1616

promptError?: unknown;

1717

aborted: boolean;

18+

externalAbort: boolean;

1819

timedOut: boolean;

1920

assistantTexts: string[];

2021

toolMetas: Array<{ toolName: string; meta?: string; asyncStarted?: boolean }>;

@@ -81,7 +82,7 @@ export function resolveAttemptTrajectoryTerminal(

8182

if (params.promptError) {

8283

return { status: "error" };

8384

}

84-

if (params.aborted || params.timedOut) {

85+

if ((params.aborted && params.externalAbort) || params.timedOut) {

8586

return { status: "interrupted" };

8687

}

8788
Original file line numberDiff line numberDiff line change

@@ -4658,6 +4658,7 @@ export async function runEmbeddedAttempt(

46584658

const attemptTrajectoryTerminal = resolveAttemptTrajectoryTerminal({

46594659

promptError,

46604660

aborted,

4661+

externalAbort,

46614662

timedOut,

46624663

assistantTexts: terminalAssistantTexts,

46634664

toolMetas: toolMetasNormalized,