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

推荐订阅源

D
Docker
U
Unit 42
Google DeepMind News
Google DeepMind News
B
Blog RSS Feed
S
SegmentFault 最新的问题
阮一峰的网络日志
阮一峰的网络日志
雷峰网
雷峰网
Microsoft Security Blog
Microsoft Security Blog
爱范儿
爱范儿
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园_首页
Apple Machine Learning Research
Apple Machine Learning Research
罗磊的独立博客
GbyAI
GbyAI
Stack Overflow Blog
Stack Overflow Blog
Martin Fowler
Martin Fowler
宝玉的分享
宝玉的分享
L
LangChain Blog
Engineering at Meta
Engineering at Meta
量子位
有赞技术团队
有赞技术团队
博客园 - 【当耐特】
A
About on SuperTechFans
Y
Y Combinator 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(agents): normalize Copilot replay tool IDs · openclaw...
galiniliev · 2026-05-17 · via Recent Commits to openclaw:main

@@ -2298,6 +2298,85 @@ describe("openai transport stream", () => {

22982298

});

22992299

});

230023002301+

it("normalizes overlong Copilot Responses replay tool ids before dispatch", () => {

2302+

const longToolItemId = "iVec" + "A".repeat(360);

2303+

const longToolCallId = `call_ug6lFGKwZDjHfzW8H0PDQRwN|${longToolItemId}`;

2304+

const params = buildOpenAIResponsesParams(

2305+

{

2306+

id: "gpt-5.5",

2307+

name: "GPT-5.5",

2308+

api: "openai-responses",

2309+

provider: "github-copilot",

2310+

baseUrl: "https://api.githubcopilot.com",

2311+

reasoning: true,

2312+

input: ["text"],

2313+

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

2314+

contextWindow: 200000,

2315+

maxTokens: 8192,

2316+

} satisfies Model<"openai-responses">,

2317+

{

2318+

systemPrompt: "system",

2319+

messages: [

2320+

{ role: "user", content: "read the queue", timestamp: 0 },

2321+

{

2322+

role: "assistant",

2323+

api: "openai-responses",

2324+

provider: "github-copilot",

2325+

model: "gpt-5.5",

2326+

usage: {

2327+

input: 0,

2328+

output: 0,

2329+

cacheRead: 0,

2330+

cacheWrite: 0,

2331+

totalTokens: 0,

2332+

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

2333+

},

2334+

stopReason: "toolUse",

2335+

timestamp: 1,

2336+

content: [

2337+

{

2338+

type: "toolCall",

2339+

id: longToolCallId,

2340+

name: "exec",

2341+

arguments: { command: "gh pr list --limit 1" },

2342+

},

2343+

],

2344+

},

2345+

{

2346+

role: "toolResult",

2347+

toolCallId: longToolCallId,

2348+

toolName: "exec",

2349+

content: [{ type: "text", text: "[]" }],

2350+

isError: false,

2351+

timestamp: 2,

2352+

},

2353+

{ role: "user", content: "continue", timestamp: 3 },

2354+

],

2355+

tools: [],

2356+

} as never,

2357+

{ sessionId: "session-123" },

2358+

) as {

2359+

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

2360+

};

2361+2362+

const functionCall = params.input?.find((item) => item.type === "function_call");

2363+

const functionOutput = params.input?.find((item) => item.type === "function_call_output");

2364+

expect(functionCall).toBeDefined();

2365+

expect(functionOutput).toBeDefined();

2366+

expect(functionCall?.id).toMatch(/^fc_/);

2367+

expect(functionCall?.id?.length).toBeLessThanOrEqual(64);

2368+

expect(functionCall?.call_id).toBe("call_ug6lFGKwZDjHfzW8H0PDQRwN");

2369+

expect(functionOutput?.call_id).toBe(functionCall?.call_id);

2370+

for (const item of params.input ?? []) {

2371+

if (item.id !== undefined) {

2372+

expect(item.id.length).toBeLessThanOrEqual(64);

2373+

}

2374+

if (item.call_id !== undefined) {

2375+

expect(item.call_id.length).toBeLessThanOrEqual(64);

2376+

}

2377+

}

2378+

});

2379+23012380

it("adds minimal user input for Codex responses when only the system prompt is present", () => {

23022381

const params = buildOpenAIResponsesParams(

23032382

{