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

推荐订阅源

博客园 - 司徒正美
T
The Blog of Author Tim Ferriss
F
Fortinet All Blogs
Martin Fowler
Martin Fowler
罗磊的独立博客
The GitHub Blog
The GitHub Blog
L
LangChain Blog
A
About on SuperTechFans
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
D
DataBreaches.Net
宝玉的分享
宝玉的分享
U
Unit 42
阮一峰的网络日志
阮一峰的网络日志
Last Week in AI
Last Week in AI
N
Netflix TechBlog - Medium
The Cloudflare Blog
Microsoft Azure Blog
Microsoft Azure Blog
H
Help Net Security
美团技术团队
大猫的无限游戏
大猫的无限游戏
雷峰网
雷峰网
爱范儿
爱范儿
酷 壳 – CoolShell
酷 壳 – CoolShell
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
perf(plugins): reuse derived metadata snapshots · opencla...
steipete · 2026-05-26 · via Recent Commits to openclaw:main

@@ -404,7 +404,7 @@ describe("loadPluginMetadataSnapshot process memo", () => {

404404

expect(readSpy).not.toHaveBeenCalled();

405405

});

406406407-

it("does not memoize policy-stale derived snapshots", () => {

407+

it("memoizes policy-stale derived snapshots within the process", () => {

408408

const stateDir = tempStateDir();

409409

touchPersistedIndex(stateDir);

410410

loadPluginRegistrySnapshotWithMetadata.mockReturnValue({

@@ -422,10 +422,10 @@ describe("loadPluginMetadataSnapshot process memo", () => {

422422

loadPluginMetadataSnapshot({ config: {}, env: {}, stateDir });

423423

loadPluginMetadataSnapshot({ config: {}, env: {}, stateDir });

424424425-

expect(loadPluginRegistrySnapshotWithMetadata).toHaveBeenCalledTimes(2);

425+

expect(loadPluginRegistrySnapshotWithMetadata).toHaveBeenCalledOnce();

426426

});

427427428-

it("refreshes policy-stale derived snapshots when derived plugin files change", () => {

428+

it("keeps process-stable derived snapshots when derived plugin files change", () => {

429429

const stateDir = tempStateDir();

430430

touchPersistedIndex(stateDir);

431431

const pluginDir = path.join(stateDir, "current", "derived");

@@ -448,16 +448,16 @@ describe("loadPluginMetadataSnapshot process memo", () => {

448448

writeJson(manifestPath, { id: "derived", version: "2.0.0", commandAliases: [{ name: "new" }] });

449449

loadPluginMetadataSnapshot({ config: {}, env: {}, stateDir });

450450451-

expect(loadPluginRegistrySnapshotWithMetadata).toHaveBeenCalledTimes(2);

452-

expect(loadPluginManifestRegistryForInstalledIndex).toHaveBeenCalledTimes(2);

451+

expect(loadPluginRegistrySnapshotWithMetadata).toHaveBeenCalledOnce();

452+

expect(loadPluginManifestRegistryForInstalledIndex).toHaveBeenCalledOnce();

453453

});

454454455455

it.each([

456456

["persisted-registry-missing", undefined],

457457

["persisted-registry-stale-source", undefined],

458458

["persisted-registry-disabled", undefined],

459459

[undefined, { preferPersisted: false }],

460-

])("does not memoize derived snapshots for %s diagnostics", (code, options) => {

460+

])("memoizes derived snapshots for %s diagnostics within the process", (code, options) => {

461461

const stateDir = tempStateDir();

462462

touchPersistedIndex(stateDir);

463463

loadPluginRegistrySnapshotWithMetadata.mockReturnValue({

@@ -469,7 +469,7 @@ describe("loadPluginMetadataSnapshot process memo", () => {

469469

loadPluginMetadataSnapshot({ config: {}, env: {}, stateDir, ...options });

470470

loadPluginMetadataSnapshot({ config: {}, env: {}, stateDir, ...options });

471471472-

expect(loadPluginRegistrySnapshotWithMetadata).toHaveBeenCalledTimes(2);

472+

expect(loadPluginRegistrySnapshotWithMetadata).toHaveBeenCalledOnce();

473473

});

474474475475

it("refreshes when the persisted registry file changes", () => {