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

推荐订阅源

C
Cisco Blogs
V
Visual Studio Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Microsoft Security Blog
Microsoft Security Blog
WordPress大学
WordPress大学
S
SegmentFault 最新的问题
大猫的无限游戏
大猫的无限游戏
罗磊的独立博客
H
Hackread – Cybersecurity News, Data Breaches, AI and More
T
The Blog of Author Tim Ferriss
Microsoft Azure Blog
Microsoft Azure Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
人人都是产品经理
人人都是产品经理
Vercel News
Vercel News
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
月光博客
月光博客
博客园 - 聂微东
GbyAI
GbyAI
C
Check Point Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Forbes - Security
Forbes - Security
H
Heimdal Security Blog
T
The Exploit Database - CXSecurity.com
Google DeepMind News
Google DeepMind News
Simon Willison's Weblog
Simon Willison's Weblog
G
GRAHAM CLULEY
雷峰网
雷峰网
I
Intezer
E
Exploit-DB.com RSS Feed
W
WeLiveSecurity
Engineering at Meta
Engineering at Meta
S
Securelist
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 司徒正美
N
News and Events Feed by Topic
Webroot Blog
Webroot Blog
Recent Announcements
Recent Announcements
SecWiki News
SecWiki News
T
Tor Project blog
Security Latest
Security Latest
博客园 - Franky
S
Schneier on Security
A
Arctic Wolf
Y
Y Combinator Blog
L
LINUX DO - 最新话题
The GitHub Blog
The GitHub Blog
The Register - Security
The Register - Security
小众软件
小众软件
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报

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 test: trim doctor command hotspots · openclaw/openclaw@c66f16a test: isolate agent auth and spawn hotspots · openclaw/openclaw@9285935 test: stabilize MCP startup disposal race · openclaw/openclaw@dd9d2eb test: merge browser contract server suites · openclaw/openclaw@5817a76 test: narrow ollama provider discovery setup · openclaw/openclaw@a0d9598 build: declare qa-lab aimock runtime dependency · openclaw/openclaw@24431e5 test: speed up safe-bins exec harness · openclaw/openclaw@ee856ab test: preserve tool helpers in embedded runner mocks · openclaw/openclaw@acd86a0 refactor: move memory embeddings into provider plugins · openclaw/openclaw@77e6e4c test: reuse system-run temp fixtures · openclaw/openclaw@7e9ff0f test: trim hotspot wait overhead · openclaw/openclaw@12a59b0 Check: avoid duplicate boundary prep · openclaw/openclaw@baf11b8 test: reduce hotspot fixture overhead · openclaw/openclaw@3a59edd feat(ui): overhaul settings and slash command UX (#67819) thanks @Bun… · openclaw/openclaw@2cfb660 QA Matrix: exit cleanly on failure · openclaw/openclaw@42805d2 QA Matrix: isolate scenario coverage · openclaw/openclaw@7e659e1 Matrix: refresh crypto bootstrap state · openclaw/openclaw@94081d8 QA Lab: add provider registry · openclaw/openclaw@bb7e982 Matrix: add plugin changelog · openclaw/openclaw@4acab55 test: trim more hotspot overhead · openclaw/openclaw@f485311 test: trim remaining hotspot tests · openclaw/openclaw@6ba8626 test: narrow hotspot mocks · openclaw/openclaw@dbc8179 test: isolate gemini embedding request helpers · openclaw/openclaw@cd330f5 test: trim memory and mcp hotspots · openclaw/openclaw@fd48dfa test: slim provider registry mocks · openclaw/openclaw@2e08c77 test: harden Parallels update smoke · openclaw/openclaw@1a98090 feat: default Anthropic to Opus 4.7 · openclaw/openclaw@628b454 fix: harden node-host shell payload mutability checks · openclaw/openclaw@75c551e fix: land node-host approval binding for native binaries (#66731) (th… · openclaw/openclaw@29919bb CI: add daily schedule to CodeQL workflow (#67645) · openclaw/openclaw@69d25f5 fix(gateway): capture config hash after plugin auto-enable to prevent… · openclaw/openclaw@8c11210 fix: repair sanitized replay tool results before send (#67620) (thank… · openclaw/openclaw@c3c7a99 fix: restrict HTML timeout short-circuit to transient statuses · openclaw/openclaw@de129a6 fix: keep TUI watchdog bound to active run (#67401) (thanks @xantorres) · openclaw/openclaw@3525273 Gateway/skills: dedupe skills prefix-match + drop dead fallback on log · openclaw/openclaw@d7f489f Extensions/lmstudio: back off inference preload after consecutive fai… · openclaw/openclaw@b555214 TUI/streaming: add watchdog that resets the activity indicator after … · openclaw/openclaw@f44ab20 Agents/tool-loop: enable unknown-tool stream guard by default · openclaw/openclaw@36ed367 Gateway/skills: invalidate session skills snapshot on config write · openclaw/openclaw@b23d59a fix: classify HTML provider error pages correctly (#67642) (thanks @s… · openclaw/openclaw@e588e90 fix(skills): remove unused model-usage import (#67641) · openclaw/openclaw@55f05df docs(changelog): credit codex fix superseded PRs · openclaw/openclaw@e485f24 fix(openai-codex): normalize stale transport metadata in resolution a… · openclaw/openclaw@90801ba CI: pin Docker-related GitHub Actions (#67632) · openclaw/openclaw@f697b01 Android: modernize WebView and discovery API usage (#67627) · openclaw/openclaw@44a6e50 fix(deps): bump hono to 4.12.14 and @hono/node-server to 1.19.14 (GHS… · openclaw/openclaw@fbccc18 fix(deps): bump dompurify to 3.4.0 (#67614) · openclaw/openclaw@2c2dc00 CI: add explicit permissions to all workflow jobs (fixes code-scannin… · openclaw/openclaw@01b7516 fix: register bundled TTS providers and route overrides correctly (#6… · openclaw/openclaw@6ea3cdd fix: align host tilde paths with OS home (#62804) (thanks @stainlu) · openclaw/openclaw@ecfaf64 fix: flush creds queue before reconnect socket open (#67464) (thanks … · openclaw/openclaw@405c63f fix: strip standalone <function> tool call tags from visible text (#6… · openclaw/openclaw@78df859 fix(agents): preserve cli session metadata before transcript persist … · openclaw/openclaw@898fd04 docs(changelog): move cli transcript entry · openclaw/openclaw@c1817c6 fix(agents): normalize cli transcript api field · openclaw/openclaw@3a3fae0 docs(changelog): note cli transcript persistence · openclaw/openclaw@6c343f1 fix(agents): persist cli transcript turns · openclaw/openclaw@b8ef507 fix(msteams): harden security-sensitive flows (#65841) · openclaw/openclaw@c56b56e [Dashboard] Fix exec approval modal overflow for long command content… · openclaw/openclaw@053c5b0 Docs: remove QA changelog entry · openclaw/openclaw@7fd5771 QA: fix private runtime source loading (#67428) · openclaw/openclaw@d5933af docs(gateway): correct protocol.md schema path, hello-ok example, aut… · openclaw/openclaw@489404d CI: pin Node 22 runners to 22.18.0 · openclaw/openclaw@4ffa621 models.authStatus: normalize provider ids + tighten env-backed escape… · openclaw/openclaw@f2fdb9d Update CHANGELOG.md · openclaw/openclaw@7694a92 test(parallels): clean up npm update guard jobs · openclaw/openclaw@045ea7b Plugins: prefer scanDir override paths · openclaw/openclaw@b2974da fix(dreaming): default storage.mode to "separate" so phase blocks sto… · openclaw/openclaw@8c392f0 fix(memory-core): skip dreaming transcript ingestion via session stor… · openclaw/openclaw@a1b01f0 fix: dedupe replayed exec.finished node events (#67281) · openclaw/openclaw@5dcf526
fix(agents): retry empty post-tool final turns (#93073) · openclaw/openclaw@77a682c
fuller-stack · 2026-06-15 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -100,6 +100,7 @@ export function buildCodexTurnStartFailureResult(params: {

100100

assistantTexts: [],

101101

toolMetas: [],

102102

lastAssistant: undefined,

103+

currentAttemptAssistant: undefined,

103104

didSendViaMessagingTool: false,

104105

messagingToolSentTexts: [],

105106

messagingToolSentMediaUrls: [],

Original file line numberDiff line numberDiff line change

@@ -1391,6 +1391,45 @@ describe("createCodexDynamicToolBridge", () => {

13911391

expect(result.sideEffectEvidence).toBe(true);

13921392

});

13931393
1394+

it("keeps audited core read-only dynamic tools replay-safe", async () => {

1395+

const bridge = createBridgeWithToolResult("search", textToolResult("no matches"));

1396+
1397+

const result = await bridge.handleToolCall({

1398+

threadId: "thread-1",

1399+

turnId: "turn-1",

1400+

callId: "call-1",

1401+

namespace: null,

1402+

tool: "search",

1403+

arguments: { query: "scheduler" },

1404+

});

1405+
1406+

expect(result).toEqual(expectInputText("no matches"));

1407+

expect(result.sideEffectEvidence).toBeUndefined();

1408+

});

1409+
1410+

it("keeps async-started read-only tools replay-unsafe", async () => {

1411+

const bridge = createBridgeWithToolResult(

1412+

"search",

1413+

textToolResult("Background task started.", {

1414+

async: true,

1415+

status: "started",

1416+

taskId: "task-1",

1417+

}),

1418+

);

1419+
1420+

const result = await bridge.handleToolCall({

1421+

threadId: "thread-1",

1422+

turnId: "turn-1",

1423+

callId: "call-1",

1424+

namespace: null,

1425+

tool: "search",

1426+

arguments: { query: "scheduler" },

1427+

});

1428+
1429+

expect(result.asyncStarted).toBe(true);

1430+

expect(result.sideEffectEvidence).toBe(true);

1431+

});

1432+
13941433

it("does not mark pre-execution argument failures as side-effect evidence", async () => {

13951434

const execute = vi.fn(async () => textToolResult("should not run"));

13961435

const bridge = createCodexDynamicToolBridge({

Original file line numberDiff line numberDiff line change

@@ -12,7 +12,10 @@ import {

1212

filterToolResultMediaUrls,

1313

HEARTBEAT_RESPONSE_TOOL_NAME,

1414

embeddedAgentLog,

15+

getChannelAgentToolMeta,

16+

getPluginToolMeta,

1517

type EmbeddedRunAttemptParams,

18+

isAgentToolReplaySafe,

1619

isToolWrappedWithBeforeToolCallHook,

1720

isToolResultError,

1821

isMessagingTool,

@@ -178,6 +181,16 @@ export function createCodexDynamicToolBridge(params: {

178181

runtime: "codex",

179182

...toolResultHookContext,

180183

});

184+

const isReplaySafeTool = (tool: AnyAgentTool) =>

185+

isAgentToolReplaySafe(tool, {

186+

declaredReplaySafe: (candidate) => {

187+

const pluginMeta = getPluginToolMeta(candidate as AnyAgentTool);

188+

if (pluginMeta) {

189+

return pluginMeta.replaySafe === true;

190+

}

191+

return getChannelAgentToolMeta(candidate as never) ? false : undefined;

192+

},

193+

});

181194

const legacyExtensionRunner =

182195

createCodexAppServerToolResultExtensionRunner(toolResultHookContext);

183196

const directToolNames = new Set([

@@ -316,11 +329,13 @@ export function createCodexDynamicToolBridge(params: {

316329

isToolResultYield(rawResult) ||

317330

isToolResultYield(result),

318331

);

319-

withDynamicToolAsyncStarted(

332+

const asyncStarted =

333+

isAsyncStartedToolResult(rawResult) || isAsyncStartedToolResult(result);

334+

withDynamicToolAsyncStarted(response, asyncStarted);

335+

return withSideEffectEvidence(

320336

response,

321-

isAsyncStartedToolResult(rawResult) || isAsyncStartedToolResult(result),

337+

asyncStarted || (terminalType !== "blocked" && !isReplaySafeTool(toolEntry.tool)),

322338

);

323-

return withSideEffectEvidence(response, terminalType !== "blocked");

324339

} catch (error) {

325340

const errorMessage = error instanceof Error ? error.message : String(error);

326341

notifyAgentToolResult(

@@ -361,7 +376,7 @@ export function createCodexDynamicToolBridge(params: {

361376

},

362377

"error",

363378

),

364-

didStartExecution,

379+

didStartExecution && !isReplaySafeTool(toolEntry.tool),

365380

);

366381

}

367382

},

Original file line numberDiff line numberDiff line change

@@ -309,6 +309,7 @@ describe("CodexAppServerEventProjector", () => {

309309

expect(result.assistantTexts).toEqual(["hello"]);

310310

expect(result.messagesSnapshot.map((message) => message.role)).toEqual(["user", "assistant"]);

311311

expect(result.lastAssistant?.content).toEqual([{ type: "text", text: "hello" }]);

312+

expect(result.currentAttemptAssistant?.content).toEqual([{ type: "text", text: "hello" }]);

312313

expectUsageFields(result.attemptUsage, { input: 3, output: 7, cacheRead: 2, total: 12 });

313314

expectUsageFields(result.lastAssistant?.usage, {

314315

input: 3,

@@ -751,6 +752,7 @@ describe("CodexAppServerEventProjector", () => {

751752
752753

expect(result.assistantTexts).toEqual([]);

753754

expect(result.lastAssistant).toBeUndefined();

755+

expect(result.currentAttemptAssistant).toBeUndefined();

754756

});

755757
756758

it("does not treat app-server interrupted status as a user cancellation by itself", async () => {

@@ -1052,6 +1054,34 @@ describe("CodexAppServerEventProjector", () => {

10521054

expect(JSON.stringify(result.messagesSnapshot)).not.toContain("checking thread context");

10531055

});

10541056
1057+

it("preserves an empty final assistant item after tool activity", async () => {

1058+

const projector = await createProjector();

1059+

projector.recordDynamicToolCall({

1060+

callId: "call-search",

1061+

tool: "memory_search",

1062+

arguments: { query: "scheduler" },

1063+

});

1064+

projector.recordDynamicToolResult({

1065+

callId: "call-search",

1066+

tool: "memory_search",

1067+

success: true,

1068+

sideEffectEvidence: false,

1069+

contentItems: [{ type: "inputText", text: "no matches" }],

1070+

});

1071+

await projector.handleNotification(

1072+

turnCompleted([

1073+

{ type: "agentMessage", id: "msg-before-tool", text: "Checking the scheduler now." },

1074+

{ type: "agentMessage", id: "msg-final", text: "" },

1075+

]),

1076+

);

1077+
1078+

const result = projector.buildResult(buildEmptyToolTelemetry());

1079+
1080+

expect(result.assistantTexts).toEqual(["Checking the scheduler now."]);

1081+

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

1082+

expect(result.replayMetadata).toEqual({ hadPotentialSideEffects: false, replaySafe: true });

1083+

});

1084+
10551085

it("streams commentary agent messages as keyed progress events", async () => {

10561086

const onAgentEvent = vi.fn();

10571087

const onPartialReply = vi.fn();

Original file line numberDiff line numberDiff line change

@@ -313,6 +313,7 @@ export class CodexAppServerEventProjector {

313313

assistantTexts.length > 0

314314

? this.createAssistantMessage(assistantTexts.join("\n\n"))

315315

: undefined;

316+

const currentAttemptAssistant = this.createCurrentAttemptAssistantMessage();

316317

// Each snapshot entry is tagged with a stable mirror identity of the

317318

// shape `${turnId}:${kind}`. The mirror's idempotency key is derived

318319

// from this identity rather than from snapshot position or content

@@ -385,6 +386,7 @@ export class CodexAppServerEventProjector {

385386

assistantTexts,

386387

toolMetas,

387388

lastAssistant,

389+

currentAttemptAssistant,

388390

...(this.lastNativeToolError ? { lastToolError: this.lastNativeToolError } : {}),

389391

didSendViaMessagingTool: toolTelemetry.didSendViaMessagingTool,

390392

messagingToolSentTexts: toolTelemetry.messagingToolSentTexts,

@@ -614,10 +616,10 @@ export class CodexAppServerEventProjector {

614616

this.completedItemIds.add(itemId);

615617

}

616618

this.rememberAssistantPhase(item);

617-

if (item?.type === "agentMessage" && typeof item.text === "string" && item.text) {

619+

if (item?.type === "agentMessage" && typeof item.text === "string") {

618620

this.rememberAssistantItem(item.id);

619621

this.assistantTextByItem.set(item.id, item.text);

620-

if (this.isCommentaryAssistantItem(item.id)) {

622+

if (item.text && this.isCommentaryAssistantItem(item.id)) {

621623

this.emitCommentaryProgress({ itemId: item.id, text: item.text });

622624

}

623625

}

@@ -752,7 +754,7 @@ export class CodexAppServerEventProjector {

752754

}

753755

for (const item of turn.items ?? []) {

754756

this.rememberAssistantPhase(item);

755-

if (item.type === "agentMessage" && typeof item.text === "string" && item.text) {

757+

if (item.type === "agentMessage" && typeof item.text === "string") {

756758

this.rememberAssistantItem(item.id);

757759

this.assistantTextByItem.set(item.id, item.text);

758760

}

@@ -1690,6 +1692,26 @@ export class CodexAppServerEventProjector {

16901692

this.assistantItemOrder.push(itemId);

16911693

}

16921694
1695+

private createCurrentAttemptAssistantMessage(): AssistantMessage | undefined {

1696+

for (let i = this.assistantItemOrder.length - 1; i >= 0; i -= 1) {

1697+

const itemId = this.assistantItemOrder[i];

1698+

if (

1699+

!itemId ||

1700+

this.isCommentaryAssistantItem(itemId) ||

1701+

!this.assistantTextByItem.has(itemId)

1702+

) {

1703+

continue;

1704+

}

1705+

const text = this.assistantTextByItem.get(itemId) ?? "";

1706+

const normalizedText = text.trim();

1707+

if (normalizedText && this.toolProgressTexts.has(normalizedText)) {

1708+

continue;

1709+

}

1710+

return this.createAssistantMessage(text);

1711+

}

1712+

return undefined;

1713+

}

1714+
16931715

private async readMirroredSessionMessages(): Promise<AgentMessage[]> {

16941716

return (await readCodexMirroredSessionHistoryMessages(this.params.sessionFile)) ?? [];

16951717

}

Original file line numberDiff line numberDiff line change

@@ -284,7 +284,6 @@ describe("copilotToolMetasHavePotentialSideEffects", () => {

284284

expect(copilotToolMetasHavePotentialSideEffects([{ toolName: "status" }])).toBe(false);

285285

expect(copilotToolMetasHavePotentialSideEffects([{ toolName: "file_read" }])).toBe(false);

286286

expect(copilotToolMetasHavePotentialSideEffects([{ toolName: "memory_get" }])).toBe(false);

287-

expect(copilotToolMetasHavePotentialSideEffects([{ toolName: "memory_search" }])).toBe(false);

288287

expect(copilotToolMetasHavePotentialSideEffects([{ toolName: "sessions_history" }])).toBe(

289288

false,

290289

);

@@ -294,6 +293,10 @@ describe("copilotToolMetasHavePotentialSideEffects", () => {

294293

expect(copilotToolMetasHavePotentialSideEffects([{ toolName: "web_search" }])).toBe(false);

295294

});

296295
296+

it("treats memory_search recall tracking as a potential side effect", () => {

297+

expect(copilotToolMetasHavePotentialSideEffects([{ toolName: "memory_search" }])).toBe(true);

298+

});

299+
297300

it("detects async-started tools even without a mutating name", () => {

298301

expect(

299302

copilotToolMetasHavePotentialSideEffects([{ asyncStarted: true, toolName: "read" }]),

Original file line numberDiff line numberDiff line change

@@ -223,7 +223,6 @@ const COPILOT_REPLAY_SAFE_READ_ONLY_TOOL_NAMES = new Set([

223223

"list",

224224

"ls",

225225

"memory_get",

226-

"memory_search",

227226

"probe",

228227

"query",

229228

"read",

Original file line numberDiff line numberDiff line change

@@ -7,6 +7,11 @@

77

"contracts": {

88

"tools": ["memory_get", "memory_search"]

99

},

10+

"toolMetadata": {

11+

"memory_get": {

12+

"replaySafe": true

13+

}

14+

},

1015

"commandAliases": [

1116

{

1217

"name": "dreaming",

Original file line numberDiff line numberDiff line change

@@ -181,6 +181,7 @@

181181

]

182182

},

183183

"x_search": {

184+

"replaySafe": true,

184185

"authSignals": [

185186

{

186187

"provider": "xai"

Original file line numberDiff line numberDiff line change

@@ -0,0 +1,18 @@

1+

import { describe, expect, it } from "vitest";

2+

import {

3+

copyChannelAgentToolMeta,

4+

getChannelAgentToolMeta,

5+

setChannelAgentToolMeta,

6+

} from "./channel-tool-metadata.js";

7+
8+

describe("channel tool metadata", () => {

9+

it("preserves ownership when a concrete tool is wrapped", () => {

10+

const source = {};

11+

const wrapped = {};

12+
13+

setChannelAgentToolMeta(source as never, { channelId: "telegram" });

14+

copyChannelAgentToolMeta(source as never, wrapped as never);

15+
16+

expect(getChannelAgentToolMeta(wrapped as never)).toEqual({ channelId: "telegram" });

17+

});

18+

});