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

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
B
Blog
Jina AI
Jina AI
N
Netflix TechBlog - Medium
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园_首页
Hugging Face - Blog
Hugging Face - Blog
博客园 - 聂微东
美团技术团队
Google DeepMind News
Google DeepMind News
WordPress大学
WordPress大学
阮一峰的网络日志
阮一峰的网络日志
U
Unit 42
The Cloudflare Blog
V
V2EX
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
小众软件
小众软件
罗磊的独立博客
Microsoft Security Blog
Microsoft Security Blog
Apple Machine Learning Research
Apple Machine Learning Research
I
InfoQ
GbyAI
GbyAI
腾讯CDC
MongoDB | Blog
MongoDB | 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: avoid Copilot replay item ID collisions · openclaw/o...
steipete · 2026-05-17 · via Recent Commits to openclaw:main

@@ -2377,6 +2377,87 @@ describe("openai transport stream", () => {

23772377

}

23782378

});

237923792380+

it("keeps distinct overlong Copilot Responses replay item ids distinct", () => {

2381+

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

2382+

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

2383+

const secondToolCallId = `call_second|${sharedToolItemPrefix}BB`;

2384+

const params = buildOpenAIResponsesParams(

2385+

{

2386+

id: "gpt-5.5",

2387+

name: "GPT-5.5",

2388+

api: "openai-responses",

2389+

provider: "github-copilot",

2390+

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

2391+

reasoning: true,

2392+

input: ["text"],

2393+

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

2394+

contextWindow: 200000,

2395+

maxTokens: 8192,

2396+

} satisfies Model<"openai-responses">,

2397+

{

2398+

systemPrompt: "system",

2399+

messages: [

2400+

{

2401+

role: "assistant",

2402+

api: "openai-responses",

2403+

provider: "github-copilot",

2404+

model: "gpt-5.5",

2405+

usage: {

2406+

input: 0,

2407+

output: 0,

2408+

cacheRead: 0,

2409+

cacheWrite: 0,

2410+

totalTokens: 0,

2411+

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

2412+

},

2413+

stopReason: "toolUse",

2414+

timestamp: 1,

2415+

content: [

2416+

{ type: "toolCall", id: firstToolCallId, name: "read", arguments: { path: "a" } },

2417+

{ type: "toolCall", id: secondToolCallId, name: "read", arguments: { path: "b" } },

2418+

],

2419+

},

2420+

{

2421+

role: "toolResult",

2422+

toolCallId: firstToolCallId,

2423+

toolName: "read",

2424+

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

2425+

isError: false,

2426+

timestamp: 2,

2427+

},

2428+

{

2429+

role: "toolResult",

2430+

toolCallId: secondToolCallId,

2431+

toolName: "read",

2432+

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

2433+

isError: false,

2434+

timestamp: 3,

2435+

},

2436+

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

2437+

],

2438+

tools: [],

2439+

} as never,

2440+

{ sessionId: "session-123" },

2441+

) as {

2442+

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

2443+

};

2444+2445+

const functionCalls = params.input?.filter((item) => item.type === "function_call") ?? [];

2446+

const functionOutputs =

2447+

params.input?.filter((item) => item.type === "function_call_output") ?? [];

2448+

expect(functionCalls).toHaveLength(2);

2449+

expect(functionOutputs).toHaveLength(2);

2450+

expect(functionCalls.map((item) => item.id)).toEqual([

2451+

expect.stringMatching(/^fc_/),

2452+

expect.stringMatching(/^fc_/),

2453+

]);

2454+

expect(new Set(functionCalls.map((item) => item.id)).size).toBe(2);

2455+

for (const item of functionCalls) {

2456+

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

2457+

}

2458+

expect(functionOutputs.map((item) => item.call_id)).toEqual(["call_first", "call_second"]);

2459+

});

2460+23802461

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

23812462

const params = buildOpenAIResponsesParams(

23822463

{