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

推荐订阅源

WordPress大学
WordPress大学
L
LangChain Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
罗磊的独立博客
J
Java Code Geeks
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 叶小钗
小众软件
小众软件
博客园 - Franky
D
Docker
Google DeepMind News
Google DeepMind News
Microsoft Azure Blog
Microsoft Azure Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
U
Unit 42
宝玉的分享
宝玉的分享
C
Check Point Blog
B
Blog
V
V2EX
博客园 - 三生石上(FineUI控件)
MyScale Blog
MyScale Blog
The Cloudflare Blog
博客园 - 聂微东
博客园_首页
Engineering at Meta
Engineering at Meta

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): log detail-less responses failures (#82593) ...
steipete · 2026-05-16 · via Recent Commits to openclaw:main

@@ -140,6 +140,103 @@ describe("openai transport stream", () => {

140140

).rejects.toThrow(/did not deliver a first event within 1ms after HTTP streaming headers/);

141141

});

142142143+

it("observes detail-less Responses failures without leaking request ids", async () => {

144+

const model = createAzureResponsesModel();

145+

const event = {

146+

type: "response.failed",

147+

response: {

148+

id: "resp_failed_123",

149+

status: "failed",

150+

model: "gpt-5.4-pro",

151+

metadata: {

152+

litellm_request_id: "litellm_req_plaintext_123",

153+

api_key: "sk-observation-secret",

154+

},

155+

provider_request_id: "provider_req_plaintext_456",

156+

status_details: {

157+

provider_request_id: "provider_req_nested_789",

158+

},

159+

provider_error: {

160+

request_id: "provider_error_req_nested_012",

161+

headers: {

162+

"x-request-id": ["header_req_plaintext_345", "header_req_plaintext_678"],

163+

},

164+

},

165+

},

166+

};

167+168+

const observation = __testing.buildResponsesFailedNoDetailsObservation(event, model);

169+

const summary = __testing.summarizeResponsesFailedNoDetailsObservation(observation);

170+171+

expect(observation.providerRuntimeFailureKind).toBe("no_error_details");

172+

expect(observation.responseId).toBe("resp_failed_123");

173+

expect(observation.responseStatus).toBe("failed");

174+

expect(observation.responseModel).toBe("gpt-5.4-pro");

175+

expect(observation.requestIdHashes).toHaveLength(6);

176+

expect(observation.requestIdHashes.join(",")).toContain("sha256:");

177+

expect(summary).toContain("responseId=resp_failed_123");

178+

expect(summary).toContain("requestIds=");

179+

expect(JSON.stringify(observation)).not.toContain("litellm_req_plaintext_123");

180+

expect(JSON.stringify(observation)).not.toContain("provider_req_plaintext_456");

181+

expect(JSON.stringify(observation)).not.toContain("provider_req_nested_789");

182+

expect(JSON.stringify(observation)).not.toContain("provider_error_req_nested_012");

183+

expect(JSON.stringify(observation)).not.toContain("header_req_plaintext_345");

184+

expect(JSON.stringify(observation)).not.toContain("header_req_plaintext_678");

185+

expect(JSON.stringify(observation)).not.toContain("sk-observation-secret");

186+

});

187+188+

it("preserves the failed response id before throwing detail-less Responses failures", async () => {

189+

const model = createAzureResponsesModel();

190+

const output = createResponsesAssistantOutput(model);

191+192+

await expect(

193+

__testing.processResponsesStream(

194+

streamChunks([

195+

{

196+

type: "response.failed",

197+

response: {

198+

id: "resp_failed_runtime",

199+

status: "failed",

200+

model: "gpt-5.4-pro",

201+

},

202+

},

203+

]),

204+

output,

205+

{ push: vi.fn() },

206+

model,

207+

),

208+

).rejects.toThrow("Unknown error (no error details in response)");

209+210+

expect(output.responseId).toBe("resp_failed_runtime");

211+

});

212+213+

it("treats empty Responses error objects as detail-less failures", async () => {

214+

const model = createAzureResponsesModel();

215+

const output = createResponsesAssistantOutput(model);

216+217+

await expect(

218+

__testing.processResponsesStream(

219+

streamChunks([

220+

{

221+

type: "response.failed",

222+

response: {

223+

id: "resp_failed_empty_error",

224+

status: "failed",

225+

model: "gpt-5.4-pro",

226+

error: { code: null, message: null },

227+

provider_request_id: "provider_req_empty_error",

228+

},

229+

},

230+

]),

231+

output,

232+

{ push: vi.fn() },

233+

model,

234+

),

235+

).rejects.toThrow("Unknown error (no error details in response)");

236+237+

expect(output.responseId).toBe("resp_failed_empty_error");

238+

});

239+143240

it("clamps Responses cached prompt usage at zero", async () => {

144241

const model = createAzureResponsesModel();

145242

const output = createResponsesAssistantOutput(model);