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

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
人人都是产品经理
人人都是产品经理
Cisco Talos Blog
Cisco Talos Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
V
V2EX
博客园 - 三生石上(FineUI控件)
Martin Fowler
Martin Fowler
WordPress大学
WordPress大学
D
Docker
S
SegmentFault 最新的问题
博客园 - 聂微东
美团技术团队
Apple Machine Learning Research
Apple Machine Learning Research
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Last Week in AI
Last Week in AI
M
MIT News - Artificial intelligence
F
Fortinet All Blogs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
The GitHub Blog
The GitHub Blog
GbyAI
GbyAI
L
LangChain Blog
Vercel News
Vercel News
博客园 - 叶小钗
MongoDB | Blog
MongoDB | Blog
Stack Overflow Blog
Stack Overflow Blog
H
Help Net Security
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
The Cloudflare Blog
Engineering at Meta
Engineering at Meta
T
Threat Research - Cisco Blogs
T
Threatpost
Scott Helme
Scott Helme
T
Tailwind CSS Blog
Latest news
Latest news
Stack Overflow Blog
Stack Overflow Blog
Blog — PlanetScale
Blog — PlanetScale
The Register - Security
The Register - Security
罗磊的独立博客
P
Proofpoint News Feed
腾讯CDC
S
Schneier on Security
雷峰网
雷峰网
A
About on SuperTechFans
T
Tenable Blog
F
Full Disclosure
Cyberwarzone
Cyberwarzone
博客园_首页
有赞技术团队
有赞技术团队
K
Kaspersky official blog

Recent Commits to openclaw:main

test(scripts): require usable memory search in fd repro fix: route denied exec approval followups to sessions fix(agents): extend payload-less session lock grace test(gateway): avoid brittle shutdown timer assertion · openclaw/openclaw@b7232db refactor: extract web content core package (#88346) · openclaw/openclaw@a20b2dc fix(mcp): bound channel bridge pending approvals · openclaw/openclaw@c6b1fed feat(cli): add sessions tail progress view · openclaw/openclaw@c80ec43 docs(changelog): restore 2026.5.28 release credits · openclaw/openclaw@b6891d2 docs(changelog): require complete release credits · openclaw/openclaw@ec78a21 perf: fast path session store json parsing · openclaw/openclaw@be3af54 refactor(agents): bind subagent threads in core (#88416) · openclaw/openclaw@3fc0df9 fix: skip browser cleanup when browser is disabled · openclaw/openclaw@4ac90a5 perf: skip unnecessary setup auth fallback · openclaw/openclaw@39e9873 ci(release): allow direct publish recovery · openclaw/openclaw@50b7a2f ci(release): checkout approval helper · openclaw/openclaw@427df01 test(scripts): expose kitchen sink command RSS · openclaw/openclaw@b93ed3f refactor(msteams): persist conversation and poll stores in sqlite · openclaw/openclaw@a2b2c4a fix(agents): dedupe subagent browser session cleanup · openclaw/openclaw@a9a86f7 fix(build): avoid stale agent-core dts warnings (#87915) · openclaw/openclaw@371a8ab Move cron persistence to SQLite (#88285) · openclaw/openclaw@005da57 fix(ui): keep selected chat model visible after session switch · openclaw/openclaw@d11e82a fix(llm): repair invalid streaming unicode escapes ci: update Blacksmith Testbox actions refactor: move model catalog normalization into core package fix(codex): keep app-server continuation turns alive · openclaw/openclaw@961691d test(agents): wait for MCP method-not-found log · openclaw/openclaw@2780f54 fix(scripts): quiet minimal runtime asset copies · openclaw/openclaw@37058ad ci: skip codeql network shard for test-only changes · openclaw/openclaw@37c6e2d fix: remove redundant unknown union ci: keep harness changes on fast checks (#88429) · openclaw/openclaw@e24a9c5 chore: remove inert skill workshop package · openclaw/openclaw@d9c0d09 fix(auth): bound oauth mirror expiry · openclaw/openclaw@0c7ab41 fix(export-html): guard msg.content and result.content filter/iterati… · openclaw/openclaw@5811693 fix(agents): bound auth health expiry · openclaw/openclaw@445ff22 ci: stabilize changed checks · openclaw/openclaw@602364f fix(agents): bound discovery auth expiry · openclaw/openclaw@c73e8ee fix: harden skill workshop proposal results · openclaw/openclaw@7d19f89 fix: preserve trusted policy checks for skill workshop · openclaw/openclaw@908fc35 fix: refresh skill workshop generated surfaces · openclaw/openclaw@77c6bee refactor: move skill research capture logic · openclaw/openclaw@6eb6730 fix: serialize skill proposal lifecycle mutations · openclaw/openclaw@41044a2 fix: keep autonomous skill capture opt-in · openclaw/openclaw@43e4b9d fix: allow concise skill update descriptions · openclaw/openclaw@28290a4 fix: preserve auto-captured skill updates · openclaw/openclaw@0b49710 fix: scan skill proposal prompt content · openclaw/openclaw@131e662 fix: refresh skill workshop CI expectations · openclaw/openclaw@515d4ff chore: keep skill workshop package manifest inert · openclaw/openclaw@dcc329a fix: align skill proposal revise validation · openclaw/openclaw@7051bf1 fix: approve final skill workshop tool params · openclaw/openclaw@3cd368e fix: serialize skill proposal creation limits · openclaw/openclaw@d6d1cc2 fix: bound skill workshop descriptions · openclaw/openclaw@3a9e7df refactor: rename skill workshop agent tool · openclaw/openclaw@2383cfd fix: enforce skill workshop proposal bounds · openclaw/openclaw@e4905ce fix(plugin-sdk): bound oauth result expiry fix(agents): harden message dts and block timestamps fix(outbound): bound delivery recovery deadline fix(shared): bound epoch expiry helpers fix(media): bound provider operation deadlines · openclaw/openclaw@06e0fd3 fix(agents): bound run drain deadlines · openclaw/openclaw@51cceaf fix(github-copilot): bound device code expiry feat: improve MCP operability fix(models): bound pasted token expiry · openclaw/openclaw@9cb9851 fix(plugins): bound scheduled turn delays fix(skill-creator): sort .skill entries deterministically · openclaw/openclaw@878e433 fix(qqbot): bound reminder schedule time fix(memory): bound qmd embed backoff · openclaw/openclaw@caac973 fix(discord): bound timeout member expiry · openclaw/openclaw@6399b6a fix(qqbot): skip token cache on invalid clock · openclaw/openclaw@472606d fix(infra): bound device bootstrap expiry · openclaw/openclaw@1774965 fix(cron): bound relative at timestamps · openclaw/openclaw@e0248fc fix(crestodian): bound rescue approval expiry · openclaw/openclaw@6a753ad fix(agents): bound codex cli fallback expiry · openclaw/openclaw@53812bd fix(gateway): forward stop sequences across providers · openclaw/openclaw@fe3c3ac feat: expand workboard orchestration metadata (#88408) · openclaw/openclaw@5435b45 fix(discord): bound rest rate-limit deadlines · openclaw/openclaw@abc26b0 fix(agents): show exec target node in tool display · openclaw/openclaw@64533ba fix(telegram): bound transport cooldown expiry · openclaw/openclaw@7d4bf8f test(release): harden live release checks · openclaw/openclaw@bdb0fde fix(anthropic): bound setup token expiry · openclaw/openclaw@926a165 fix(bedrock): bound mantle runtime token expiry · openclaw/openclaw@70b6fdd fix(agents): bound sqlite cache expiry · openclaw/openclaw@9ad7f5b fix(agents): bound google prompt cache expiry · openclaw/openclaw@1ee751d fix(agents): bound auth profile block expiry · openclaw/openclaw@30e3ca0 fix(telegram): bound error cooldown expiry · openclaw/openclaw@1f6c1ea fix(discord): bound component registry expiry · openclaw/openclaw@8654353 fix(discord): carry reply typing feedback through queue · openclaw/openclaw@6f20f29 fix(discord): omit undefined component registry fields fix(gateway): bound node pending work expiry fix(gateway): explain ignored restart signal · openclaw/openclaw@bc77f7a fix(media): dedupe duplicate inbound media path urls fix(gateway): bound plugin node capability expiry fix(install): show npm install progress without gum · openclaw/openclaw@1c9851e fix(commitments): bound terminal failure cooldown expiry · openclaw/openclaw@a4f6240 test(tasks): cover task domain view mappers (#86755) · openclaw/openclaw@8d3fe21 fix(imessage): bound private api negative cache expiry refactor(matrix): move ephemeral state to plugin sqlite (#88387) fix(imessage): bound approval reaction poll expiry fix(agents): bound exec followup handoff expiry · openclaw/openclaw@cbad1b6 fix(sandbox): bound novnc observer token expiry · openclaw/openclaw@f4cd5e4 test(release): wait for live probe cleanup · openclaw/openclaw@0e7773d
fix(responses): drop orphaned assistant msg_* id when reasoning is dr… · openclaw/openclaw@48980a0
BSG2000 · 2026-05-31 · via Recent Commits to openclaw:main

@@ -1,5 +1,10 @@

11

import type { AgentMessage } from "openclaw/plugin-sdk/agent-core";

2-

import type { AssistantMessage, ThinkingContent, UserMessage, Usage } from "openclaw/plugin-sdk/llm";

2+

import type {

3+

AssistantMessage,

4+

ThinkingContent,

5+

UserMessage,

6+

Usage,

7+

} from "openclaw/plugin-sdk/llm";

38

import { beforeAll, beforeEach, describe, expect, it, vi } from "vitest";

49

import {

510

expectOpenAIResponsesStrictSanitizeCall,

@@ -978,6 +983,114 @@ describe("sanitizeSessionHistory", () => {

978983

]);

979984

});

980985986+

it("drops the paired assistant message id when reasoning is dropped after a model switch", async () => {

987+

// Regression for issue #88019: a fallback from azure-openai-responses to a

988+

// non-Responses model and back must not leave an orphaned msg_* id (its

989+

// paired rs_* reasoning is dropped), which Azure Responses would reject.

990+

const sessionEntries = [

991+

makeModelSnapshotEntry({

992+

provider: "anthropic",

993+

modelApi: "anthropic-messages",

994+

modelId: "claude-3-7",

995+

}),

996+

];

997+

const sessionManager = makeInMemorySessionManager(sessionEntries);

998+

const messages = [

999+

{

1000+

role: "assistant",

1001+

content: [

1002+

{

1003+

type: "thinking",

1004+

thinking: "reasoning",

1005+

thinkingSignature: JSON.stringify({ id: "rs_test", type: "reasoning" }),

1006+

},

1007+

{

1008+

type: "text",

1009+

text: "answer",

1010+

textSignature: JSON.stringify({ v: 1, id: "msg_test" }),

1011+

},

1012+

],

1013+

},

1014+

] as unknown as AgentMessage[];

1015+1016+

const result = await sanitizeWithOpenAIResponses({

1017+

sanitizeSessionHistory,

1018+

messages,

1019+

modelId: "gpt-5.4",

1020+

sessionManager,

1021+

});

1022+1023+

expect(result).toEqual([

1024+

{

1025+

role: "assistant",

1026+

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

1027+

usage: makeZeroUsageSnapshot(),

1028+

},

1029+

]);

1030+

});

1031+1032+

it("preserves phase metadata when dropping the paired message id after a model switch", async () => {

1033+

// Regression for issue #88019 review: dropping the orphaned msg_* id must not

1034+

// discard the Responses phase (commentary/final_answer) carried in the same

1035+

// textSignature, otherwise commentary would replay as user-visible output.

1036+

const sessionEntries = [

1037+

makeModelSnapshotEntry({

1038+

provider: "anthropic",

1039+

modelApi: "anthropic-messages",

1040+

modelId: "claude-3-7",

1041+

}),

1042+

];

1043+

const sessionManager = makeInMemorySessionManager(sessionEntries);

1044+

const messages = [

1045+

{

1046+

role: "assistant",

1047+

content: [

1048+

{

1049+

type: "thinking",

1050+

thinking: "reasoning",

1051+

thinkingSignature: JSON.stringify({ id: "rs_test", type: "reasoning" }),

1052+

},

1053+

{

1054+

type: "text",

1055+

text: "thinking out loud",

1056+

textSignature: JSON.stringify({ v: 1, id: "msg_commentary", phase: "commentary" }),

1057+

},

1058+

{

1059+

type: "text",

1060+

text: "final answer",

1061+

textSignature: JSON.stringify({ v: 1, id: "msg_final", phase: "final_answer" }),

1062+

},

1063+

],

1064+

},

1065+

] as unknown as AgentMessage[];

1066+1067+

const result = await sanitizeWithOpenAIResponses({

1068+

sanitizeSessionHistory,

1069+

messages,

1070+

modelId: "gpt-5.4",

1071+

sessionManager,

1072+

});

1073+1074+

expect(result).toEqual([

1075+

{

1076+

role: "assistant",

1077+

content: [

1078+

{

1079+

type: "text",

1080+

text: "thinking out loud",

1081+

textSignature: JSON.stringify({ v: 1, phase: "commentary" }),

1082+

},

1083+

{

1084+

type: "text",

1085+

text: "final answer",

1086+

textSignature: JSON.stringify({ v: 1, phase: "final_answer" }),

1087+

},

1088+

],

1089+

usage: makeZeroUsageSnapshot(),

1090+

},

1091+

]);

1092+

});

1093+9811094

it("keeps paired openai reasoning when the model snapshot stays the same", async () => {

9821095

const sessionEntries = [

9831096

makeModelSnapshotEntry({