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

推荐订阅源

MongoDB | Blog
MongoDB | Blog
B
Blog RSS Feed
MyScale Blog
MyScale Blog
M
MIT News - Artificial intelligence
H
Hackread – Cybersecurity News, Data Breaches, AI and More
J
Java Code Geeks
U
Unit 42
Blog — PlanetScale
Blog — PlanetScale
L
LangChain Blog
C
Check Point Blog
WordPress大学
WordPress大学
Last Week in AI
Last Week in AI
人人都是产品经理
人人都是产品经理
T
Tailwind CSS Blog
Vercel News
Vercel News
腾讯CDC
GbyAI
GbyAI
有赞技术团队
有赞技术团队
S
SegmentFault 最新的问题
H
Help Net Security
博客园 - 三生石上(FineUI控件)
D
DataBreaches.Net
Microsoft Security Blog
Microsoft Security 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
fix(ui): stop unsupported wiki RPC probes during startup ...
rubencu · 2026-04-19 · via Recent Commits to openclaw:main

@@ -22,6 +22,7 @@ function createState(): { state: DreamingState; request: ReturnType<typeof vi.fn

2222

request,

2323

} as unknown as DreamingState["client"],

2424

connected: true,

25+

hello: null,

2526

configSnapshot: { hash: "hash-1" },

2627

applySessionKey: "main",

2728

dreamingStatusLoading: false,

@@ -227,6 +228,11 @@ describe("dreaming controller", () => {

227228228229

it("loads and normalizes wiki import insights", async () => {

229230

const { state, request } = createState();

231+

state.hello = {

232+

type: "hello-ok",

233+

protocol: 3,

234+

features: { methods: ["wiki.importInsights"] },

235+

};

230236

state.configSnapshot = {

231237

hash: "hash-1",

232238

config: {

@@ -297,6 +303,40 @@ describe("dreaming controller", () => {

297303

expect(state.wikiImportInsightsLoading).toBe(false);

298304

});

299305306+

it("falls back to config gating for wiki import insights when methods are not advertised", async () => {

307+

const { state, request } = createState();

308+

state.configSnapshot = {

309+

hash: "hash-1",

310+

config: {

311+

plugins: {

312+

entries: {

313+

"memory-wiki": {

314+

enabled: true,

315+

},

316+

},

317+

},

318+

},

319+

};

320+

request.mockResolvedValue({

321+

sourceType: "chatgpt",

322+

totalItems: 1,

323+

totalClusters: 1,

324+

clusters: [],

325+

});

326+327+

await loadWikiImportInsights(state);

328+329+

expect(request).toHaveBeenCalledWith("wiki.importInsights", {});

330+

expect(state.wikiImportInsights).toEqual(

331+

expect.objectContaining({

332+

totalItems: 1,

333+

totalClusters: 1,

334+

}),

335+

);

336+

expect(state.wikiImportInsightsError).toBeNull();

337+

expect(state.wikiImportInsightsLoading).toBe(false);

338+

});

339+300340

it("skips wiki import insights when memory-wiki is not enabled", async () => {

301341

const { state, request } = createState();

302342

state.configSnapshot = {

@@ -321,8 +361,48 @@ describe("dreaming controller", () => {

321361

expect(state.wikiImportInsightsLoading).toBe(false);

322362

});

323363364+

it("skips wiki import insights when the gateway does not advertise the method", async () => {

365+

const { state, request } = createState();

366+

state.hello = {

367+

type: "hello-ok",

368+

protocol: 3,

369+

features: { methods: ["doctor.memory.status"] },

370+

};

371+

state.configSnapshot = {

372+

hash: "hash-1",

373+

config: {

374+

plugins: {

375+

entries: {

376+

"memory-wiki": {

377+

enabled: true,

378+

},

379+

},

380+

},

381+

},

382+

};

383+

state.wikiImportInsights = {

384+

sourceType: "chatgpt",

385+

totalItems: 1,

386+

totalClusters: 1,

387+

clusters: [],

388+

};

389+

state.wikiImportInsightsError = "unknown method: wiki.importInsights";

390+391+

await loadWikiImportInsights(state);

392+393+

expect(request).not.toHaveBeenCalled();

394+

expect(state.wikiImportInsights).toBeNull();

395+

expect(state.wikiImportInsightsError).toBeNull();

396+

expect(state.wikiImportInsightsLoading).toBe(false);

397+

});

398+324399

it("loads and normalizes the wiki memory palace", async () => {

325400

const { state, request } = createState();

401+

state.hello = {

402+

type: "hello-ok",

403+

protocol: 3,

404+

features: { methods: ["wiki.palace"] },

405+

};

326406

state.configSnapshot = {

327407

hash: "hash-1",

328408

config: {

@@ -391,6 +471,41 @@ describe("dreaming controller", () => {

391471

expect(state.wikiMemoryPalaceLoading).toBe(false);

392472

});

393473474+

it("falls back to config gating for wiki memory palace when methods are not advertised", async () => {

475+

const { state, request } = createState();

476+

state.configSnapshot = {

477+

hash: "hash-1",

478+

config: {

479+

plugins: {

480+

entries: {

481+

"memory-wiki": {

482+

enabled: true,

483+

},

484+

},

485+

},

486+

},

487+

};

488+

request.mockResolvedValue({

489+

totalItems: 1,

490+

totalClaims: 2,

491+

totalQuestions: 0,

492+

totalContradictions: 0,

493+

clusters: [],

494+

});

495+496+

await loadWikiMemoryPalace(state);

497+498+

expect(request).toHaveBeenCalledWith("wiki.palace", {});

499+

expect(state.wikiMemoryPalace).toEqual(

500+

expect.objectContaining({

501+

totalItems: 1,

502+

totalClaims: 2,

503+

}),

504+

);

505+

expect(state.wikiMemoryPalaceError).toBeNull();

506+

expect(state.wikiMemoryPalaceLoading).toBe(false);

507+

});

508+394509

it("skips wiki memory palace when memory-wiki is not enabled", async () => {

395510

const { state, request } = createState();

396511

state.configSnapshot = {

@@ -416,6 +531,42 @@ describe("dreaming controller", () => {

416531

expect(state.wikiMemoryPalaceLoading).toBe(false);

417532

});

418533534+

it("skips wiki memory palace when the gateway does not advertise the method", async () => {

535+

const { state, request } = createState();

536+

state.hello = {

537+

type: "hello-ok",

538+

protocol: 3,

539+

features: { methods: ["doctor.memory.status"] },

540+

};

541+

state.configSnapshot = {

542+

hash: "hash-1",

543+

config: {

544+

plugins: {

545+

entries: {

546+

"memory-wiki": {

547+

enabled: true,

548+

},

549+

},

550+

},

551+

},

552+

};

553+

state.wikiMemoryPalace = {

554+

totalItems: 1,

555+

totalClaims: 1,

556+

totalQuestions: 0,

557+

totalContradictions: 0,

558+

clusters: [],

559+

};

560+

state.wikiMemoryPalaceError = "unknown method: wiki.palace";

561+562+

await loadWikiMemoryPalace(state);

563+564+

expect(request).not.toHaveBeenCalled();

565+

expect(state.wikiMemoryPalace).toBeNull();

566+

expect(state.wikiMemoryPalaceError).toBeNull();

567+

expect(state.wikiMemoryPalaceLoading).toBe(false);

568+

});

569+419570

it("patches config to update global dreaming enablement", async () => {

420571

const { state, request } = createState();

421572

state.configSnapshot = {