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

推荐订阅源

Jina AI
Jina AI
云风的 BLOG
云风的 BLOG
人人都是产品经理
人人都是产品经理
T
The Blog of Author Tim Ferriss
阮一峰的网络日志
阮一峰的网络日志
罗磊的独立博客
J
Java Code Geeks
博客园 - 聂微东
B
Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
WordPress大学
WordPress大学
腾讯CDC
L
LangChain Blog
Apple Machine Learning Research
Apple Machine Learning Research
Microsoft Azure Blog
Microsoft Azure Blog
D
DataBreaches.Net
The GitHub Blog
The GitHub Blog
美团技术团队
博客园 - Franky
Google DeepMind News
Google DeepMind News
V
V2EX
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
月光博客
月光博客
The Cloudflare 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(codex): surface declined native tool replies (#83108)...
giodl73-repo · 2026-05-18 · via Recent Commits to openclaw:main

@@ -1406,6 +1406,46 @@ describe("CodexAppServerEventProjector", () => {

14061406

expect(toolResult.result).toEqual({ status: "completed", exitCode: 0, durationMs: 42 });

14071407

});

140814081409+

it("uses streamed command output for failed native tool errors", async () => {

1410+

const projector = await createProjector();

1411+1412+

await projector.handleNotification(

1413+

forCurrentTurn("item/commandExecution/outputDelta", {

1414+

itemId: "cmd-streamed-failure",

1415+

delta: "fatal: missing fixture\n",

1416+

}),

1417+

);

1418+

await projector.handleNotification(

1419+

turnCompleted([

1420+

{

1421+

type: "commandExecution",

1422+

id: "cmd-streamed-failure",

1423+

command: "pnpm test extensions/codex",

1424+

cwd: "/workspace",

1425+

processId: null,

1426+

source: "agent",

1427+

status: "failed",

1428+

commandActions: [],

1429+

aggregatedOutput: null,

1430+

exitCode: 1,

1431+

durationMs: 42,

1432+

},

1433+

]),

1434+

);

1435+1436+

expect(projector.buildResult(buildEmptyToolTelemetry()).lastToolError).toEqual({

1437+

toolName: "bash",

1438+

meta: "run tests (workspace)",

1439+

error: "fatal: missing fixture",

1440+

mutatingAction: true,

1441+

actionFingerprint: JSON.stringify({

1442+

type: "commandExecution",

1443+

command: "pnpm test extensions/codex",

1444+

cwd: "/workspace",

1445+

}),

1446+

});

1447+

});

1448+14091449

it("does not duplicate native tool starts when the snapshot completes a started item", async () => {

14101450

const onAgentEvent = vi.fn();

14111451

const trajectoryRecorder = {

@@ -1609,6 +1649,121 @@ describe("CodexAppServerEventProjector", () => {

16091649

toolCallId: "cmd-declined",

16101650

},

16111651

]);

1652+

expect(projector.buildResult(buildEmptyToolTelemetry()).lastToolError).toEqual({

1653+

toolName: "bash",

1654+

meta: "run tests (workspace)",

1655+

error: "codex native tool blocked",

1656+

mutatingAction: true,

1657+

actionFingerprint: JSON.stringify({

1658+

type: "commandExecution",

1659+

command: "pnpm test extensions/codex",

1660+

cwd: "/workspace",

1661+

}),

1662+

});

1663+

});

1664+1665+

it("clears a recovered declined native tool error", async () => {

1666+

const projector = await createProjector();

1667+1668+

await projector.handleNotification(

1669+

forCurrentTurn("item/completed", {

1670+

item: {

1671+

type: "commandExecution",

1672+

id: "cmd-declined",

1673+

command: "pnpm test extensions/codex",

1674+

cwd: "/workspace",

1675+

processId: null,

1676+

source: "agent",

1677+

status: "declined",

1678+

commandActions: [],

1679+

aggregatedOutput: null,

1680+

exitCode: null,

1681+

durationMs: 1,

1682+

},

1683+

}),

1684+

);

1685+

expect(projector.buildResult(buildEmptyToolTelemetry()).lastToolError).toEqual({

1686+

toolName: "bash",

1687+

meta: "run tests (workspace)",

1688+

error: "codex native tool blocked",

1689+

mutatingAction: true,

1690+

actionFingerprint: JSON.stringify({

1691+

type: "commandExecution",

1692+

command: "pnpm test extensions/codex",

1693+

cwd: "/workspace",

1694+

}),

1695+

});

1696+1697+

await projector.handleNotification(

1698+

forCurrentTurn("item/completed", {

1699+

item: {

1700+

type: "commandExecution",

1701+

id: "cmd-recovered",

1702+

command: "pnpm test extensions/codex",

1703+

cwd: "/workspace",

1704+

processId: null,

1705+

source: "agent",

1706+

status: "completed",

1707+

commandActions: [],

1708+

aggregatedOutput: "ok",

1709+

exitCode: 0,

1710+

durationMs: 42,

1711+

},

1712+

}),

1713+

);

1714+1715+

expect(projector.buildResult(buildEmptyToolTelemetry()).lastToolError).toBeUndefined();

1716+

});

1717+1718+

it("does not clear a declined native tool error with a different action", async () => {

1719+

const projector = await createProjector();

1720+1721+

await projector.handleNotification(

1722+

forCurrentTurn("item/completed", {

1723+

item: {

1724+

type: "commandExecution",

1725+

id: "cmd-declined",

1726+

command: "pnpm test extensions/codex",

1727+

cwd: "/workspace",

1728+

processId: null,

1729+

source: "agent",

1730+

status: "declined",

1731+

commandActions: [],

1732+

aggregatedOutput: null,

1733+

exitCode: null,

1734+

durationMs: 1,

1735+

},

1736+

}),

1737+

);

1738+

await projector.handleNotification(

1739+

forCurrentTurn("item/completed", {

1740+

item: {

1741+

type: "commandExecution",

1742+

id: "cmd-unrelated-success",

1743+

command: "pnpm test src/foo.test.ts",

1744+

cwd: "/workspace",

1745+

processId: null,

1746+

source: "agent",

1747+

status: "completed",

1748+

commandActions: [],

1749+

aggregatedOutput: "ok",

1750+

exitCode: 0,

1751+

durationMs: 42,

1752+

},

1753+

}),

1754+

);

1755+1756+

expect(projector.buildResult(buildEmptyToolTelemetry()).lastToolError).toEqual({

1757+

toolName: "bash",

1758+

meta: "run tests (workspace)",

1759+

error: "codex native tool blocked",

1760+

mutatingAction: true,

1761+

actionFingerprint: JSON.stringify({

1762+

type: "commandExecution",

1763+

command: "pnpm test extensions/codex",

1764+

cwd: "/workspace",

1765+

}),

1766+

});

16121767

});

1613176816141769

it("emits after_tool_call observations for Codex-native tool item completions", async () => {