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

推荐订阅源

Engineering at Meta
Engineering at Meta
D
DataBreaches.Net
云风的 BLOG
云风的 BLOG
B
Blog
T
The Blog of Author Tim Ferriss
MyScale Blog
MyScale Blog
A
About on SuperTechFans
H
Heimdal Security Blog
AI
AI
F
Full Disclosure
The Last Watchdog
The Last Watchdog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
量子位
I
InfoQ
Martin Fowler
Martin Fowler
MongoDB | Blog
MongoDB | Blog
WordPress大学
WordPress大学
Hugging Face - Blog
Hugging Face - Blog
小众软件
小众软件
N
News and Events Feed by Topic
腾讯CDC
L
LINUX DO - 最新话题
Attack and Defense Labs
Attack and Defense Labs
Hacker News: Ask HN
Hacker News: Ask HN
Google Online Security Blog
Google Online Security Blog
博客园_首页
Forbes - Security
Forbes - Security
The Register - Security
The Register - Security
博客园 - 三生石上(FineUI控件)
PCI Perspectives
PCI Perspectives
V
Vulnerabilities – Threatpost
The Cloudflare Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Recent Commits to openclaw:main
Recent Commits to openclaw:main
L
LangChain Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
NISL@THU
NISL@THU
博客园 - Franky
Microsoft Security Blog
Microsoft Security Blog
J
Java Code Geeks
Simon Willison's Weblog
Simon Willison's Weblog
O
OpenAI News
H
Hacker News: Front Page
Project Zero
Project Zero
P
Privacy International News Feed
Cyberwarzone
Cyberwarzone
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
大猫的无限游戏
大猫的无限游戏
Application and Cybersecurity Blog
Application and Cybersecurity 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 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
refactor: use accessor-backed transcript corpus for memory (#96162) · openclaw/openclaw@c24d266
jalehman · 2026-06-24 · via Recent Commits to openclaw:main

@@ -14,6 +14,10 @@ import type {

1414

MemorySyncParams,

1515

MemorySyncProgressUpdate,

1616

} from "openclaw/plugin-sdk/memory-core-host-engine-storage";

17+

import {

18+

clearConfigCache,

19+

clearRuntimeConfigSnapshot,

20+

} from "openclaw/plugin-sdk/runtime-config-snapshot";

1721

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

1822

import { MemoryManagerSyncOps } from "./manager-sync-ops.js";

1923

@@ -102,6 +106,7 @@ class SessionStartupCatchupHarness extends MemoryManagerSyncOps {

102106103107

readonly syncCalls: SyncParams[] = [];

104108

readonly indexedPaths: string[] = [];

109+

readonly indexedContents: string[] = [];

105110106111

constructor(sourceRows: SourceStateRow[]) {

107112

super();

@@ -139,6 +144,35 @@ class SessionStartupCatchupHarness extends MemoryManagerSyncOps {

139144

return Array.from(this.sessionPendingFiles);

140145

}

141146147+

addPendingSessionTarget(target: NonNullable<MemorySyncParams["sessions"]>[number]): void {

148+

this.sessionPendingTargets.set(

149+

[target.agentId ?? "", target.sessionId, target.sessionKey ?? ""].join("\0"),

150+

target,

151+

);

152+

}

153+154+

async processPendingSessionDeltas(): Promise<void> {

155+

await (

156+

this as unknown as {

157+

processSessionDeltaBatch: () => Promise<void>;

158+

}

159+

).processSessionDeltaBatch();

160+

}

161+162+

async combineTargetSessionFilesForTest(params: {

163+

sessions?: MemorySyncParams["sessions"];

164+

sessionFiles?: string[];

165+

}): Promise<Set<string> | null> {

166+

return await (

167+

this as unknown as {

168+

combineTargetSessionFiles: (params: {

169+

sessions?: MemorySyncParams["sessions"];

170+

sessionFiles?: string[];

171+

}) => Promise<Set<string> | null>;

172+

}

173+

).combineTargetSessionFiles(params);

174+

}

175+142176

isSessionsDirty(): boolean {

143177

return this.sessionsDirty;

144178

}

@@ -184,9 +218,10 @@ class SessionStartupCatchupHarness extends MemoryManagerSyncOps {

184218185219

protected async indexFile(

186220

entry: MemoryIndexEntry,

187-

_options: { source: MemorySource; content?: string },

221+

options: { source: MemorySource; content?: string },

188222

): Promise<void> {

189223

this.indexedPaths.push(entry.path);

224+

this.indexedContents.push(options.content ?? "");

190225

}

191226

}

192227

@@ -202,6 +237,8 @@ describe("session startup catch-up", () => {

202237

vi.clearAllTimers();

203238

vi.useRealTimers();

204239

vi.unstubAllEnvs();

240+

clearRuntimeConfigSnapshot();

241+

clearConfigCache();

205242

await fs.rm(stateDir, { recursive: true, force: true });

206243

});

207244

@@ -396,6 +433,147 @@ describe("session startup catch-up", () => {

396433

expect(harness.indexedPaths).toEqual([]);

397434

});

398435436+

it("resolves identity-targeted delta sync through a custom session store", async () => {

437+

const storeDir = path.join(stateDir, "custom-sessions");

438+

const sessionFile = path.join(storeDir, "custom-thread.jsonl");

439+

const storePath = path.join(storeDir, "sessions.json");

440+

const configPath = path.join(stateDir, "openclaw.json");

441+

await fs.mkdir(storeDir, { recursive: true });

442+

await fs.writeFile(

443+

sessionFile,

444+

JSON.stringify({

445+

type: "message",

446+

message: { role: "user", content: "custom store target" },

447+

}) + "\n",

448+

"utf-8",

449+

);

450+

await fs.writeFile(

451+

storePath,

452+

JSON.stringify({

453+

"agent:main:chat:custom": {

454+

sessionFile: "custom-thread.jsonl",

455+

sessionId: "custom-thread",

456+

},

457+

}),

458+

"utf-8",

459+

);

460+

await fs.writeFile(configPath, JSON.stringify({ session: { store: storePath } }), "utf-8");

461+

vi.stubEnv("OPENCLAW_CONFIG_PATH", configPath);

462+

clearRuntimeConfigSnapshot();

463+

clearConfigCache();

464+

const harness = new SessionStartupCatchupHarness([]);

465+

(harness as unknown as { settings: ResolvedMemorySearchConfig }).settings.sync.sessions = {

466+

deltaBytes: 1,

467+

deltaMessages: 1,

468+

postCompactionForce: true,

469+

};

470+

harness.addPendingSessionTarget({

471+

agentId: "main",

472+

sessionId: "custom-thread",

473+

sessionKey: "agent:main:chat:custom",

474+

});

475+476+

await harness.processPendingSessionDeltas();

477+

await Promise.resolve();

478+479+

expect(harness.getDirtySessionFiles()).toEqual([sessionFile]);

480+

expect(harness.syncCalls).toEqual([{ reason: "session-delta" }]);

481+

});

482+483+

it("keeps explicit custom-store session file targets at the sync gate", async () => {

484+

const storeDir = path.join(stateDir, "custom-sessions");

485+

const sessionFile = path.join(storeDir, "explicit-target.jsonl");

486+

const storePath = path.join(storeDir, "sessions.json");

487+

const configPath = path.join(stateDir, "openclaw.json");

488+

await fs.mkdir(storeDir, { recursive: true });

489+

await fs.writeFile(

490+

sessionFile,

491+

JSON.stringify({

492+

type: "message",

493+

message: { role: "user", content: "explicit target" },

494+

}) + "\n",

495+

"utf-8",

496+

);

497+

await fs.writeFile(

498+

storePath,

499+

JSON.stringify({

500+

"agent:main:chat:explicit-target": {

501+

sessionFile: "explicit-target.jsonl",

502+

sessionId: "explicit-target",

503+

},

504+

}),

505+

"utf-8",

506+

);

507+

await fs.writeFile(configPath, JSON.stringify({ session: { store: storePath } }), "utf-8");

508+

vi.stubEnv("OPENCLAW_CONFIG_PATH", configPath);

509+

clearRuntimeConfigSnapshot();

510+

clearConfigCache();

511+

const harness = new SessionStartupCatchupHarness([]);

512+513+

await expect(

514+

harness.combineTargetSessionFilesForTest({ sessionFiles: [sessionFile] }),

515+

).resolves.toEqual(new Set([sessionFile]));

516+

});

517+518+

it("preserves generated-session classification during targeted custom-store indexing", async () => {

519+

const storeDir = path.join(stateDir, "custom-sessions");

520+

const sessionFile = path.join(storeDir, "cron-thread.jsonl");

521+

const otherSessionFile = path.join(storeDir, "other-thread.jsonl");

522+

const storePath = path.join(storeDir, "sessions.json");

523+

const configPath = path.join(stateDir, "openclaw.json");

524+

await fs.mkdir(storeDir, { recursive: true });

525+

await fs.writeFile(

526+

sessionFile,

527+

JSON.stringify({

528+

type: "message",

529+

message: { role: "assistant", content: "Internal cron output that must stay out." },

530+

}) + "\n",

531+

"utf-8",

532+

);

533+

await fs.writeFile(

534+

otherSessionFile,

535+

JSON.stringify({

536+

type: "message",

537+

message: { role: "user", content: "Other custom-store content" },

538+

}) + "\n",

539+

"utf-8",

540+

);

541+

await fs.writeFile(

542+

storePath,

543+

JSON.stringify({

544+

"agent:main:cron:job-1:run:run-1": {

545+

sessionFile: "cron-thread.jsonl",

546+

sessionId: "cron-thread",

547+

},

548+

"agent:main:chat:other": {

549+

sessionFile: "other-thread.jsonl",

550+

sessionId: "other-thread",

551+

},

552+

}),

553+

"utf-8",

554+

);

555+

await fs.writeFile(configPath, JSON.stringify({ session: { store: storePath } }), "utf-8");

556+

vi.stubEnv("OPENCLAW_CONFIG_PATH", configPath);

557+

clearRuntimeConfigSnapshot();

558+

clearConfigCache();

559+

const harness = new SessionStartupCatchupHarness([]);

560+561+

await (

562+

harness as unknown as {

563+

syncSessionFiles: (params: {

564+

needsFullReindex: boolean;

565+

targetSessionFiles: string[];

566+

}) => Promise<void>;

567+

}

568+

).syncSessionFiles({

569+

needsFullReindex: false,

570+

targetSessionFiles: [sessionFile],

571+

});

572+573+

expect(harness.indexedPaths).toEqual(["sessions/cron-thread.jsonl"]);

574+

expect(harness.indexedContents).toEqual([""]);

575+

});

576+399577

it("queues transcript update identity without requiring a session file", async () => {

400578

vi.useFakeTimers();

401579

const harness = new SessionStartupCatchupHarness([]);

@@ -456,6 +634,49 @@ describe("session startup catch-up", () => {

456634

harness.stopTranscriptListener();

457635

});

458636637+

it("queues file-only transcript updates from a custom session store", async () => {

638+

vi.useFakeTimers();

639+

const storeDir = path.join(stateDir, "custom-sessions");

640+

const sessionFile = path.join(storeDir, "custom-update.jsonl");

641+

const storePath = path.join(storeDir, "sessions.json");

642+

const configPath = path.join(stateDir, "openclaw.json");

643+

await fs.mkdir(storeDir, { recursive: true });

644+

await fs.writeFile(

645+

sessionFile,

646+

JSON.stringify({

647+

type: "message",

648+

message: { role: "user", content: "custom update" },

649+

}) + "\n",

650+

"utf-8",

651+

);

652+

await fs.writeFile(

653+

storePath,

654+

JSON.stringify({

655+

"agent:main:chat:custom-update": {

656+

sessionFile: "custom-update.jsonl",

657+

sessionId: "custom-update",

658+

},

659+

}),

660+

"utf-8",

661+

);

662+

await fs.writeFile(configPath, JSON.stringify({ session: { store: storePath } }), "utf-8");

663+

vi.stubEnv("OPENCLAW_CONFIG_PATH", configPath);

664+

clearRuntimeConfigSnapshot();

665+

clearConfigCache();

666+

const harness = new SessionStartupCatchupHarness([]);

667+

harness.startTranscriptListener();

668+669+

emitSessionTranscriptUpdate({

670+

sessionFile,

671+

sessionKey: "agent:main:chat:custom-update",

672+

});

673+

await Promise.resolve();

674+675+

expect(harness.getPendingSessionFiles()).toEqual([sessionFile]);

676+

expect(harness.getPendingSessionTargets()).toEqual([]);

677+

harness.stopTranscriptListener();

678+

});

679+459680

it("prefers transcript update path compatibility before identity", async () => {

460681

vi.useFakeTimers();

461682

const session = await writeSessionFile("thread.jsonl");