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

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
A
About on SuperTechFans
Y
Y Combinator Blog
V
V2EX
Engineering at Meta
Engineering at Meta
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
V
Visual Studio Blog
博客园 - 叶小钗
博客园 - 聂微东
阮一峰的网络日志
阮一峰的网络日志
H
Help Net Security
小众软件
小众软件
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
The GitHub Blog
The GitHub Blog
WordPress大学
WordPress大学
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
MongoDB | Blog
MongoDB | Blog
B
Blog
G
Google Developers Blog
J
Java Code Geeks
博客园 - 三生石上(FineUI控件)
IT之家
IT之家
N
Netflix TechBlog - Medium
腾讯CDC

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): detect claude-specific orphaned tools · open...
obviyus · 2026-05-30 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -806,6 +806,82 @@ describe("claudeCliSessionTranscriptHasOrphanedToolUse", () => {

806806

).toBe(true);

807807

});

808808
809+

it("returns true when a Claude server tool use is unanswered", async () => {

810+

await writeJsonlSession("server-tool-orphan", [

811+

{

812+

type: "assistant",

813+

message: {

814+

role: "assistant",

815+

content: [

816+

{ type: "server_tool_use", id: "srvtoolu_unanswered", name: "web_search", input: {} },

817+

],

818+

},

819+

},

820+

]);

821+

expect(

822+

await claudeCliSessionTranscriptHasOrphanedToolUse({

823+

sessionId: "server-tool-orphan",

824+

workspaceDir,

825+

homeDir: tmpDir,

826+

}),

827+

).toBe(true);

828+

});

829+
830+

it("returns false when Claude-specific tool uses have matching tool results", async () => {

831+

await writeJsonlSession("claude-specific-answered", [

832+

{

833+

type: "assistant",

834+

message: {

835+

role: "assistant",

836+

content: [

837+

{ type: "server_tool_use", id: "srvtoolu_1", name: "web_search", input: {} },

838+

{ type: "mcp_tool_use", id: "mcptoolu_1", name: "mcp__demo", input: {} },

839+

],

840+

},

841+

},

842+

{

843+

type: "user",

844+

message: {

845+

role: "user",

846+

content: [

847+

{ type: "web_search_tool_result", tool_use_id: "srvtoolu_1", content: [] },

848+

{ type: "mcp_tool_result", tool_use_id: "mcptoolu_1", content: "ok" },

849+

],

850+

},

851+

},

852+

]);

853+

expect(

854+

await claudeCliSessionTranscriptHasOrphanedToolUse({

855+

sessionId: "claude-specific-answered",

856+

workspaceDir,

857+

homeDir: tmpDir,

858+

}),

859+

).toBe(false);

860+

});

861+
862+

it("returns false when Claude hosted tool results are in the assistant message", async () => {

863+

await writeJsonlSession("assistant-hosted-tool-result", [

864+

{

865+

type: "assistant",

866+

message: {

867+

role: "assistant",

868+

content: [

869+

{ type: "server_tool_use", id: "srvtoolu_inline", name: "web_search", input: {} },

870+

{ type: "web_search_tool_result", tool_use_id: "srvtoolu_inline", content: [] },

871+

{ type: "text", text: "found it" },

872+

],

873+

},

874+

},

875+

]);

876+

expect(

877+

await claudeCliSessionTranscriptHasOrphanedToolUse({

878+

sessionId: "assistant-hosted-tool-result",

879+

workspaceDir,

880+

homeDir: tmpDir,

881+

}),

882+

).toBe(false);

883+

});

884+
809885

it("returns true when the last assistant has multiple tool_use and at least one is orphaned", async () => {

810886

await writeJsonlSession("partial", [

811887

{