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

推荐订阅源

美团技术团队
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Martin Fowler
Martin Fowler
雷峰网
雷峰网
IT之家
IT之家
小众软件
小众软件
M
MIT News - Artificial intelligence
博客园 - 聂微东
J
Java Code Geeks
Blog — PlanetScale
Blog — PlanetScale
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
A
About on SuperTechFans
G
Google Developers Blog
Engineering at Meta
Engineering at Meta
Recent Announcements
Recent Announcements
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
The GitHub Blog
The GitHub Blog
F
Fortinet All Blogs
C
Check Point Blog
云风的 BLOG
云风的 BLOG
腾讯CDC
H
Help Net Security
Y
Y Combinator Blog
I
InfoQ

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: use no-output placeholder for empty OpenAI tool resu...
scribe-dande · 2026-06-29 · via Recent Commits to openclaw:main

@@ -5075,6 +5075,122 @@ describe("openai transport stream", () => {

50755075

}

50765076

});

507750775078+

it("replays update_plan-style empty non-image Responses tool results as no output", () => {

5079+

const params = buildOpenAIResponsesParams(

5080+

{

5081+

id: "gpt-5.5",

5082+

name: "GPT-5.5",

5083+

api: "openai-responses",

5084+

provider: "openai",

5085+

baseUrl: "https://api.openai.com/v1",

5086+

reasoning: true,

5087+

input: ["text"],

5088+

cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },

5089+

contextWindow: 200000,

5090+

maxTokens: 8192,

5091+

} satisfies Model<"openai-responses">,

5092+

{

5093+

systemPrompt: "system",

5094+

messages: [

5095+

{

5096+

role: "assistant",

5097+

api: "openai-responses",

5098+

provider: "openai",

5099+

model: "gpt-5.5",

5100+

usage: {

5101+

input: 0,

5102+

output: 0,

5103+

cacheRead: 0,

5104+

cacheWrite: 0,

5105+

totalTokens: 0,

5106+

cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0, total: 0 },

5107+

},

5108+

stopReason: "toolUse",

5109+

timestamp: 1,

5110+

content: [{ type: "toolCall", id: "call_plan", name: "update_plan", arguments: {} }],

5111+

},

5112+

{

5113+

role: "toolResult",

5114+

toolCallId: "call_plan",

5115+

toolName: "update_plan",

5116+

content: [],

5117+

isError: false,

5118+

timestamp: 2,

5119+

},

5120+

],

5121+

tools: [],

5122+

} as never,

5123+

{ sessionId: "session-123" },

5124+

) as {

5125+

input?: Array<{ type?: string; call_id?: string; output?: unknown }>;

5126+

};

5127+5128+

expect(params.input?.find((item) => item.type === "function_call_output")).toMatchObject({

5129+

type: "function_call_output",

5130+

call_id: "call_plan",

5131+

output: "(no output)",

5132+

});

5133+

});

5134+5135+

it("preserves image-bearing Responses tool results as image input parts", () => {

5136+

const params = buildOpenAIResponsesParams(

5137+

{

5138+

id: "gpt-5.5",

5139+

name: "GPT-5.5",

5140+

api: "openai-responses",

5141+

provider: "openai",

5142+

baseUrl: "https://api.openai.com/v1",

5143+

reasoning: true,

5144+

input: ["text", "image"],

5145+

cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },

5146+

contextWindow: 200000,

5147+

maxTokens: 8192,

5148+

} satisfies Model<"openai-responses">,

5149+

{

5150+

systemPrompt: "system",

5151+

messages: [

5152+

{

5153+

role: "assistant",

5154+

api: "openai-responses",

5155+

provider: "openai",

5156+

model: "gpt-5.5",

5157+

usage: {

5158+

input: 0,

5159+

output: 0,

5160+

cacheRead: 0,

5161+

cacheWrite: 0,

5162+

totalTokens: 0,

5163+

cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0, total: 0 },

5164+

},

5165+

stopReason: "toolUse",

5166+

timestamp: 1,

5167+

content: [{ type: "toolCall", id: "call_shot", name: "screenshot", arguments: {} }],

5168+

},

5169+

{

5170+

role: "toolResult",

5171+

toolCallId: "call_shot",

5172+

toolName: "screenshot",

5173+

content: [{ type: "image", mimeType: "image/png", data: "aW1n" }],

5174+

isError: false,

5175+

timestamp: 2,

5176+

},

5177+

],

5178+

tools: [],

5179+

} as never,

5180+

{ sessionId: "session-123" },

5181+

) as {

5182+

input?: Array<{ type?: string; output?: unknown }>;

5183+

};

5184+5185+

expect(params.input?.find((item) => item.type === "function_call_output")?.output).toEqual([

5186+

{

5187+

type: "input_image",

5188+

detail: "auto",

5189+

image_url: "data:image/png;base64,aW1n",

5190+

},

5191+

]);

5192+

});

5193+50785194

it("omits distinct overlong Copilot Responses replay item ids when store is disabled", () => {

50795195

const sharedToolItemPrefix = "iVec" + "A".repeat(160);

50805196

const firstToolCallId = `call_first|${sharedToolItemPrefix}Aa`;