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

推荐订阅源

G
Google Developers Blog
宝玉的分享
宝玉的分享
月光博客
月光博客
B
Blog
云风的 BLOG
云风的 BLOG
Google DeepMind News
Google DeepMind News
Engineering at Meta
Engineering at Meta
aimingoo的专栏
aimingoo的专栏
N
Netflix TechBlog - Medium
博客园_首页
GbyAI
GbyAI
人人都是产品经理
人人都是产品经理
A
About on SuperTechFans
Y
Y Combinator Blog
L
LangChain Blog
有赞技术团队
有赞技术团队
D
Docker
爱范儿
爱范儿
博客园 - 司徒正美
H
Hackread – Cybersecurity News, Data Breaches, AI and More
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
酷 壳 – CoolShell
酷 壳 – CoolShell
Microsoft Security Blog
Microsoft Security Blog
D
DataBreaches.Net

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(e2e): align prerelease and google live guards · openc...
vincentkoc · 2026-05-28 · via Recent Commits to openclaw:main

@@ -308,10 +308,10 @@ describe("google transport stream", () => {

308308

{

309309

content: {

310310

parts: [

311-

{ thought: true, text: "draft", thoughtSignature: "sig_1" },

311+

{ thought: true, text: "draft", thoughtSignature: "c2lnXzE=" },

312312

{ text: "answer" },

313313

{

314-

thoughtSignature: "call_sig_1",

314+

thoughtSignature: "Y2FsbF9zaWdfMQ==",

315315

functionCall: { name: "lookup", args: { q: "hello" } },

316316

},

317317

],

@@ -416,14 +416,14 @@ describe("google transport stream", () => {

416416

expect(result.content[0]).toEqual({

417417

type: "thinking",

418418

thinking: "draft",

419-

thinkingSignature: "sig_1",

419+

thinkingSignature: "c2lnXzE=",

420420

});

421421

expect(result.content[1]?.type).toBe("text");

422422

expect(result.content[1]).toHaveProperty("text", "answer");

423423

expect(result.content[2]?.type).toBe("toolCall");

424424

expect(result.content[2]).toHaveProperty("name", "lookup");

425425

expect(result.content[2]).toHaveProperty("arguments", { q: "hello" });

426-

expect(result.content[2]).toHaveProperty("thoughtSignature", "call_sig_1");

426+

expect(result.content[2]).toHaveProperty("thoughtSignature", "Y2FsbF9zaWdfMQ==");

427427

});

428428429429

it("merges tool-call thought signatures from sibling SSE parts", async () => {

@@ -437,7 +437,7 @@ describe("google transport stream", () => {

437437

{

438438

functionCall: { id: "call_1", name: "lookup", args: { q: "hello" } },

439439

},

440-

{ thoughtSignature: "call_sig_merged_1" },

440+

{ thoughtSignature: "Y2FsbF9zaWdfbWVyZ2VkXzE=" },

441441

],

442442

},

443443

finishReason: "STOP",

@@ -467,7 +467,7 @@ describe("google transport stream", () => {

467467

id: "call_1",

468468

name: "lookup",

469469

arguments: { q: "hello" },

470-

thoughtSignature: "call_sig_merged_1",

470+

thoughtSignature: "Y2FsbF9zaWdfbWVyZ2VkXzE=",

471471

},

472472

]);

473473

});

@@ -483,7 +483,7 @@ describe("google transport stream", () => {

483483

{

484484

functionCall: { id: "call_1", name: "lookup", args: { q: "hello" } },

485485

},

486-

{ thought: true, thoughtSignature: "thought_sig_after_call" },

486+

{ thought: true, thoughtSignature: "dGhvdWdodF9zaWdfYWZ0ZXJfY2FsbA==" },

487487

{ thought: true, text: "draft" },

488488

{ text: "answer" },

489489

],

@@ -518,7 +518,7 @@ describe("google transport stream", () => {

518518

expect(result.content[1]).toEqual({

519519

type: "thinking",

520520

thinking: "draft",

521-

thinkingSignature: "thought_sig_after_call",

521+

thinkingSignature: "dGhvdWdodF9zaWdfYWZ0ZXJfY2FsbA==",

522522

});

523523

expect(result.content[2]).toEqual({ type: "text", text: "answer" });

524524

});

@@ -984,7 +984,7 @@ describe("google transport stream", () => {

984984

id: "call_1",

985985

name: "lookup",

986986

arguments: { q: "hello" },

987-

thoughtSignature: "call_sig_1",

987+

thoughtSignature: "Y2FsbF9zaWdfMQ==",

988988

},

989989

],

990990

},

@@ -995,7 +995,7 @@ describe("google transport stream", () => {

995995

role: "model",

996996

parts: [

997997

{

998-

thoughtSignature: "call_sig_1",

998+

thoughtSignature: "Y2FsbF9zaWdfMQ==",

999999

functionCall: { name: "lookup", args: { q: "hello" } },

10001000

},

10011001

],

@@ -1010,7 +1010,7 @@ describe("google transport stream", () => {

1010101010111011

const params = buildGoogleGenerativeAiParams(model, {

10121012

messages: [

1013-

googleToolCallAssistantTurn({ thoughtSignature: "call_sig_replay_1" }),

1013+

googleToolCallAssistantTurn({ thoughtSignature: "Y2FsbF9zaWdfcmVwbGF5XzE=" }),

10141014

toolResultTurn(),

10151015

googleToolCallAssistantTurn({ timestamp: 2 }),

10161016

],

@@ -1022,7 +1022,7 @@ describe("google transport stream", () => {

10221022

role: "model",

10231023

parts: [

10241024

{

1025-

thoughtSignature: "call_sig_replay_1",

1025+

thoughtSignature: "Y2FsbF9zaWdfcmVwbGF5XzE=",

10261026

functionCall: { name: "lookup", args: { q: "hello" } },

10271027

},

10281028

],

@@ -1040,7 +1040,7 @@ describe("google transport stream", () => {

1040104010411041

const params = buildGoogleGenerativeAiParams(model, {

10421042

messages: [

1043-

googleToolCallAssistantTurn({ thoughtSignature: "call_sig_alias_1" }),

1043+

googleToolCallAssistantTurn({ thoughtSignature: "Y2FsbF9zaWdfYWxpYXNfMQ==" }),

10441044

toolResultTurn(),

10451045

googleToolCallAssistantTurn({ timestamp: 2 }),

10461046

],

@@ -1050,7 +1050,7 @@ describe("google transport stream", () => {

10501050

role: "model",

10511051

parts: [

10521052

{

1053-

thoughtSignature: "call_sig_alias_1",

1053+

thoughtSignature: "Y2FsbF9zaWdfYWxpYXNfMQ==",

10541054

functionCall: { name: "lookup", args: { q: "hello" } },

10551055

},

10561056

],

@@ -1079,12 +1079,12 @@ describe("google transport stream", () => {

10791079

{

10801080

type: "thinking",

10811081

thinking: "plan",

1082-

thinkingSignature: "think_sig_alias_1",

1082+

thinkingSignature: "dGhpbmtfc2lnX2FsaWFzXzE=",

10831083

},

10841084

{

10851085

type: "text",

10861086

text: "answer",

1087-

textSignature: "text_sig_alias_1",

1087+

textSignature: "dGV4dF9zaWdfYWxpYXNfMQ==",

10881088

},

10891089

],

10901090

},

@@ -1097,11 +1097,11 @@ describe("google transport stream", () => {

10971097

{

10981098

thought: true,

10991099

text: "plan",

1100-

thoughtSignature: "think_sig_alias_1",

1100+

thoughtSignature: "dGhpbmtfc2lnX2FsaWFzXzE=",

11011101

},

11021102

{

11031103

text: "answer",

1104-

thoughtSignature: "text_sig_alias_1",

1104+

thoughtSignature: "dGV4dF9zaWdfYWxpYXNfMQ==",

11051105

},

11061106

],

11071107

});

@@ -1115,7 +1115,7 @@ describe("google transport stream", () => {

1115111511161116

const params = buildGoogleGenerativeAiParams(model, {

11171117

messages: [

1118-

googleToolCallAssistantTurn({ thoughtSignature: "opaque.sig-url_safe~1" }),

1118+

googleToolCallAssistantTurn({ thoughtSignature: "b3BhcXVlLnNpZy11cmxfc2FmZX4x" }),

11191119

toolResultTurn(),

11201120

googleToolCallAssistantTurn({ timestamp: 2 }),

11211121

],

@@ -1125,7 +1125,7 @@ describe("google transport stream", () => {

11251125

role: "model",

11261126

parts: [

11271127

{

1128-

thoughtSignature: "opaque.sig-url_safe~1",

1128+

thoughtSignature: "b3BhcXVlLnNpZy11cmxfc2FmZX4x",

11291129

functionCall: { name: "lookup", args: { q: "hello" } },

11301130

},

11311131

],

@@ -1140,11 +1140,11 @@ describe("google transport stream", () => {

1140114011411141

const params = buildGoogleGenerativeAiParams(model, {

11421142

messages: [

1143-

googleToolCallAssistantTurn({ thoughtSignature: "call_sig_first_1" }),

1143+

googleToolCallAssistantTurn({ thoughtSignature: "Y2FsbF9zaWdfZmlyc3RfMQ==" }),

11441144

toolResultTurn(),

11451145

googleToolCallAssistantTurn({

11461146

timestamp: 2,

1147-

thoughtSignature: "call_sig_second_1",

1147+

thoughtSignature: "Y2FsbF9zaWdfc2Vjb25kXzE=",

11481148

}),

11491149

],

11501150

} as never);

@@ -1154,15 +1154,15 @@ describe("google transport stream", () => {

11541154

expect(modelTurns[0]).toMatchObject({

11551155

parts: [

11561156

{

1157-

thoughtSignature: "call_sig_first_1",

1157+

thoughtSignature: "Y2FsbF9zaWdfZmlyc3RfMQ==",

11581158

functionCall: { name: "lookup", args: { q: "hello" } },

11591159

},

11601160

],

11611161

});

11621162

expect(modelTurns[1]).toMatchObject({

11631163

parts: [

11641164

{

1165-

thoughtSignature: "call_sig_second_1",

1165+

thoughtSignature: "Y2FsbF9zaWdfc2Vjb25kXzE=",

11661166

functionCall: { name: "lookup", args: { q: "hello" } },

11671167

},

11681168

],

@@ -1181,7 +1181,7 @@ describe("google transport stream", () => {

11811181

toolResultTurn(),

11821182

googleToolCallAssistantTurn({

11831183

timestamp: 2,

1184-

thoughtSignature: "call_sig_future_1",

1184+

thoughtSignature: "Y2FsbF9zaWdfZnV0dXJlXzE=",

11851185

}),

11861186

],

11871187

} as never);

@@ -1199,7 +1199,7 @@ describe("google transport stream", () => {

11991199

expect(modelTurns[1]).toMatchObject({

12001200

parts: [

12011201

{

1202-

thoughtSignature: "call_sig_future_1",

1202+

thoughtSignature: "Y2FsbF9zaWdfZnV0dXJlXzE=",

12031203

functionCall: { name: "lookup", args: { q: "hello" } },

12041204

},

12051205

],

@@ -1214,7 +1214,7 @@ describe("google transport stream", () => {

1214121412151215

const params = buildGoogleGenerativeAiParams(model, {

12161216

messages: [

1217-

googleToolCallAssistantTurn({ thoughtSignature: "call_sig_replay_1" }),

1217+

googleToolCallAssistantTurn({ thoughtSignature: "Y2FsbF9zaWdfcmVwbGF5XzE=" }),

12181218

toolResultTurn(),

12191219

googleToolCallAssistantTurn({ timestamp: 2, args: { q: "hello-again" } }),

12201220

],

@@ -1247,7 +1247,7 @@ describe("google transport stream", () => {

12471247

model: "claude-sonnet-4",

12481248

id: "call_foreign",

12491249

// Plausible-looking base64 from a non-Gemini provider.

1250-

thoughtSignature: "msg_01XFDUDYJgAACcnSM2TTgQsA",

1250+

thoughtSignature: "bXNnXzAxWEZEVURZSmdBQUNjblNNMlRUZ1FzQQ==",

12511251

}),

12521252

toolResultTurn("call_foreign"),

12531253

{

@@ -1270,7 +1270,9 @@ describe("google transport stream", () => {

12701270

},

12711271

],

12721272

});

1273-

expect(firstModelTurn.parts[0].thoughtSignature).not.toBe("msg_01XFDUDYJgAACcnSM2TTgQsA");

1273+

expect(firstModelTurn.parts[0].thoughtSignature).not.toBe(

1274+

"bXNnXzAxWEZEVURZSmdBQUNjblNNMlRUZ1FzQQ==",

1275+

);

12741276

});

1275127712761278

it("does not replay prior Gemini thought signatures onto a later foreign route", () => {

@@ -1281,7 +1283,7 @@ describe("google transport stream", () => {

1281128312821284

const params = buildGoogleGenerativeAiParams(model, {

12831285

messages: [

1284-

googleToolCallAssistantTurn({ thoughtSignature: "call_sig_google_1" }),

1286+

googleToolCallAssistantTurn({ thoughtSignature: "Y2FsbF9zaWdfZ29vZ2xlXzE=" }),

12851287

toolResultTurn(),

12861288

googleToolCallAssistantTurn({

12871289

provider: "anthropic",

@@ -1302,7 +1304,7 @@ describe("google transport stream", () => {

13021304

},

13031305

],

13041306

});

1305-

expect(modelTurns[1]?.parts[0].thoughtSignature).not.toBe("call_sig_google_1");

1307+

expect(modelTurns[1]?.parts[0].thoughtSignature).not.toBe("Y2FsbF9zaWdfZ29vZ2xlXzE=");

13061308

});

1307130913081310

it("replaces invalid Gemini tool-call sentinel signatures with the skip fallback", () => {

@@ -1362,7 +1364,7 @@ describe("google transport stream", () => {

13621364

id: "call_math",

13631365

name: "math_eval",

13641366

arguments: { expression: "17*23" },

1365-

thoughtSignature: "real_sig_1",

1367+

thoughtSignature: "cmVhbF9zaWdfMQ==",

13661368

},

13671369

{

13681370

type: "toolCall",

@@ -1384,7 +1386,7 @@ describe("google transport stream", () => {

13841386

const parts = (params.contents[0] as { parts: Array<Record<string, unknown>> }).parts;

13851387

expect(parts).toHaveLength(3);

13861388

expect(parts[0]).toMatchObject({

1387-

thoughtSignature: "real_sig_1",

1389+

thoughtSignature: "cmVhbF9zaWdfMQ==",

13881390

functionCall: { name: "math_eval", args: { expression: "17*23" } },

13891391

});

13901392

expect(parts[1]).toMatchObject({

@@ -1418,7 +1420,7 @@ describe("google transport stream", () => {

14181420

id: "call_1",

14191421

name: "lookup",

14201422

arguments: { q: "hello" },

1421-

thoughtSignature: "foreign_sig",

1423+

thoughtSignature: "Zm9yZWlnbl9zaWc=",

14221424

},

14231425

],

14241426

},

@@ -1429,7 +1431,7 @@ describe("google transport stream", () => {

14291431

role: "model",

14301432

parts: [{ functionCall: { name: "lookup", args: { q: "hello" } } }],

14311433

});

1432-

expect(JSON.stringify(params.contents)).not.toContain("foreign_sig");

1434+

expect(JSON.stringify(params.contents)).not.toContain("Zm9yZWlnbl9zaWc=");

14331435

expect(JSON.stringify(params.contents)).not.toContain("skip_thought_signature_validator");

14341436

});

14351437

@@ -1748,8 +1750,8 @@ describe("google transport stream", () => {

17481750

{

17491751

content: {

17501752

parts: [

1751-

{ thought: true, text: "draft", thoughtSignature: "sig_1" },

1752-

{ thoughtSignature: "sig_2" },

1753+

{ thought: true, text: "draft", thoughtSignature: "c2lnXzE=" },

1754+

{ thoughtSignature: "c2lnXzI=" },

17531755

{ text: "answer" },

17541756

],

17551757

},

@@ -1789,7 +1791,7 @@ describe("google transport stream", () => {

17891791

const result = await stream.result();

1790179217911793

expect(result.content).toEqual([

1792-

{ type: "thinking", thinking: "draft", thinkingSignature: "sig_2" },

1794+

{ type: "thinking", thinking: "draft", thinkingSignature: "c2lnXzI=" },

17931795

{ type: "text", text: "answer" },

17941796

]);

17951797

expect(events.map((event) => event.type)).toEqual([

@@ -1815,7 +1817,7 @@ describe("google transport stream", () => {

18151817

{

18161818

content: {

18171819

parts: [

1818-

{ thoughtSignature: "sig_1" },

1820+

{ thoughtSignature: "c2lnXzE=" },

18191821

{ thought: true, text: "draft" },

18201822

{ text: "answer" },

18211823

],

@@ -1852,7 +1854,7 @@ describe("google transport stream", () => {

18521854

const result = await stream.result();

1853185518541856

expect(result.content).toEqual([

1855-

{ type: "thinking", thinking: "draft", thinkingSignature: "sig_1" },

1857+

{ type: "thinking", thinking: "draft", thinkingSignature: "c2lnXzE=" },

18561858

{ type: "text", text: "answer" },

18571859

]);

18581860

});