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

推荐订阅源

aimingoo的专栏
aimingoo的专栏
B
Blog RSS Feed
Recent Announcements
Recent Announcements
Vercel News
Vercel News
M
MIT News - Artificial intelligence
阮一峰的网络日志
阮一峰的网络日志
L
LangChain Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Microsoft Security Blog
Microsoft Security Blog
H
Help Net Security
T
The Blog of Author Tim Ferriss
Y
Y Combinator Blog
G
Google Developers Blog
罗磊的独立博客
爱范儿
爱范儿
宝玉的分享
宝玉的分享
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园_首页
S
SegmentFault 最新的问题
WordPress大学
WordPress大学
月光博客
月光博客
人人都是产品经理
人人都是产品经理
Apple Machine Learning Research
Apple Machine Learning Research

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(status): distinguish runtime-loaded plugins from inst...
masatohoshin · 2026-06-29 · via Recent Commits to openclaw:main

@@ -11,7 +11,13 @@ import {

1111

} from "../plugin-state/plugin-state-store.js";

1212

import { createRuntimeHealthRecordEnvelope } from "../plugin-state/runtime-health-store.js";

1313

import { createEmptyPluginRegistry } from "../plugins/registry-empty.js";

14-

import { resetPluginRuntimeStateForTest, setActivePluginRegistry } from "../plugins/runtime.js";

14+

import {

15+

pinActivePluginChannelRegistry,

16+

pinActivePluginHttpRouteRegistry,

17+

pinActivePluginSessionExtensionRegistry,

18+

resetPluginRuntimeStateForTest,

19+

setActivePluginRegistry,

20+

} from "../plugins/runtime.js";

1521

import { withStateDirEnv } from "../test-helpers/state-dir-env.js";

1622

import { collectRuntimePluginHealthSnapshot } from "./status-plugin-health.runtime.js";

1723

@@ -245,4 +251,83 @@ describe("runtime plugin health snapshot", () => {

245251

]);

246252

expect(resolveReadOnlyChannelPluginsForConfigMock).not.toHaveBeenCalled();

247253

});

254+255+

it("records only runtime status:loaded plugins as runtime-loaded", () => {

256+

const registry = createEmptyPluginRegistry();

257+

registry.plugins.push(

258+

{ id: "runtime-ok", status: "loaded", enabled: true } as never,

259+

{ id: "runtime-broken", status: "error", enabled: true } as never,

260+

{ id: "runtime-off", status: "disabled", enabled: false } as never,

261+

);

262+

setActivePluginRegistry(registry, "runtime-loaded-ids", "default", "/tmp/ws");

263+264+

expect(collectRuntimePluginHealthSnapshot().runtimeLoadedPluginIds).toEqual(["runtime-ok"]);

265+

});

266+267+

it("includes loaded plugins from a pinned channel registry diverged from active", () => {

268+

const active = createEmptyPluginRegistry();

269+

active.plugins.push({ id: "active-ok", status: "loaded", enabled: true } as never);

270+

setActivePluginRegistry(active, "active", "default", "/tmp/ws");

271+272+

const channel = createEmptyPluginRegistry();

273+

channel.plugins.push({ id: "channel-only", status: "loaded", enabled: true } as never);

274+

pinActivePluginChannelRegistry(channel);

275+276+

expect(collectRuntimePluginHealthSnapshot().runtimeLoadedPluginIds).toEqual([

277+

"active-ok",

278+

"channel-only",

279+

]);

280+

});

281+282+

it("includes loaded plugins from a pinned http-route registry diverged from active", () => {

283+

const active = createEmptyPluginRegistry();

284+

active.plugins.push({ id: "active-ok", status: "loaded", enabled: true } as never);

285+

setActivePluginRegistry(active, "active", "default", "/tmp/ws");

286+287+

const httpRoute = createEmptyPluginRegistry();

288+

httpRoute.plugins.push({ id: "route-only", status: "loaded", enabled: true } as never);

289+

pinActivePluginHttpRouteRegistry(httpRoute);

290+291+

expect(collectRuntimePluginHealthSnapshot().runtimeLoadedPluginIds).toEqual([

292+

"active-ok",

293+

"route-only",

294+

]);

295+

});

296+297+

it("includes loaded plugins from a pinned session-extension registry diverged from active", () => {

298+

const active = createEmptyPluginRegistry();

299+

active.plugins.push({ id: "active-ok", status: "loaded", enabled: true } as never);

300+

setActivePluginRegistry(active, "active", "default", "/tmp/ws");

301+302+

const sessionExtension = createEmptyPluginRegistry();

303+

sessionExtension.plugins.push({

304+

id: "session-only",

305+

status: "loaded",

306+

enabled: true,

307+

} as never);

308+

pinActivePluginSessionExtensionRegistry(sessionExtension);

309+310+

expect(collectRuntimePluginHealthSnapshot().runtimeLoadedPluginIds).toEqual([

311+

"active-ok",

312+

"session-only",

313+

]);

314+

});

315+316+

it("dedupes runtime-loaded ids shared across registry surfaces", () => {

317+

const active = createEmptyPluginRegistry();

318+

active.plugins.push({ id: "shared", status: "loaded", enabled: true } as never);

319+

setActivePluginRegistry(active, "active", "default", "/tmp/ws");

320+321+

const channel = createEmptyPluginRegistry();

322+

channel.plugins.push(

323+

{ id: "shared", status: "loaded", enabled: true } as never,

324+

{ id: "channel-only", status: "loaded", enabled: true } as never,

325+

);

326+

pinActivePluginChannelRegistry(channel);

327+328+

expect(collectRuntimePluginHealthSnapshot().runtimeLoadedPluginIds).toEqual([

329+

"channel-only",

330+

"shared",

331+

]);

332+

});

248333

});