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

推荐订阅源

IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
G
GRAHAM CLULEY
P
Privacy & Cybersecurity Law Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
宝玉的分享
宝玉的分享
P
Proofpoint News Feed
H
Help Net Security
V
Visual Studio Blog
阮一峰的网络日志
阮一峰的网络日志
C
Cisco Blogs
人人都是产品经理
人人都是产品经理
Know Your Adversary
Know Your Adversary
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Recorded Future
Recorded Future
I
Intezer
罗磊的独立博客
T
The Exploit Database - CXSecurity.com
Blog — PlanetScale
Blog — PlanetScale
Malwarebytes
Malwarebytes
Spread Privacy
Spread Privacy
T
Tor Project blog
V
Vulnerabilities – Threatpost
云风的 BLOG
云风的 BLOG
腾讯CDC
B
Blog RSS Feed
Stack Overflow Blog
Stack Overflow Blog
F
Future of Privacy Forum
MyScale Blog
MyScale Blog
Latest news
Latest news
IT之家
IT之家
MongoDB | Blog
MongoDB | Blog
The Hacker News
The Hacker News
S
Securelist
博客园 - 【当耐特】
C
CXSECURITY Database RSS Feed - CXSecurity.com
T
Threat Research - Cisco Blogs
Jina AI
Jina AI
Cisco Talos Blog
Cisco Talos Blog
B
Blog
博客园 - 三生石上(FineUI控件)
Last Week in AI
Last Week in AI
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
M
MIT News - Artificial intelligence
V
V2EX
D
Darknet – Hacking Tools, Hacker News & Cyber Security
The Cloudflare Blog
The GitHub Blog
The GitHub Blog
博客园 - 聂微东
F
Full Disclosure
C
CERT Recently Published Vulnerability Notes

Recent Commits to openclaw:main

address review: scope short-circuit by caller auth context + rewarm o… test(model-provider-auth): cover prepared-state short-circuit and clear perf(models): pre-warm provider auth state at gateway startup address review v3: invalidate prepared map on auth-profile logout + d… address review v2: workspace scope, warm generation guard, plugin rel… fix(qa-lab): rename codex lifecycle fixtures to match knip ignore pat… · openclaw/openclaw@ebd8b00 test(gateway): relax e2e node status waits · openclaw/openclaw@b25a0d0 fix #84745: scope Google preview model normalization to Google provid… · openclaw/openclaw@7d5afcb test(qa-lab): cover codex plugin lifecycle fixtures · openclaw/openclaw@bbf3eec fix(tests): allow slower kitchen sink installs · openclaw/openclaw@ec0cf9a revert(qa-lab): remove scenario github traceability metadata · openclaw/openclaw@46c8864 fix(docker): prune omitted plugin runtime deps fix(auth): skip OAuth refresh adapter when credential has no refresh … test(qa-lab): cover update package sentinel · openclaw/openclaw@178e510 fix(json): retry on transient File changed during read race condition… fix(status): add gateway delivery health telemetry (#85016) · openclaw/openclaw@5955f35 test(qa-lab): trace scenario issue evidence · openclaw/openclaw@efb7e47 fix(sessions): preserve compatible auth overrides (#85014) · openclaw/openclaw@b33deb4 ci(qa): publish soak parity artifacts fix(qa): keep searchable tool coverage report-only test(e2e): isolate kitchen sink rpc gateway fix(ollama): allow Orb host local auth (#84999) · openclaw/openclaw@277a4b6 test(qa-lab): add personal failure recovery scenario · openclaw/openclaw@229323d ci: tune crabbox developer image config feat(qa-lab): add jsonl replay harness · openclaw/openclaw@cf06578 fix(codex): beta blocker - keep context engine on canonical session k… · openclaw/openclaw@66dcc4e chore(release): refresh generated baselines · openclaw/openclaw@1b1580c fix(openshell): use NVIDIA CLI contract · openclaw/openclaw@e72f601 docs(release): prefer 1Password provider preflight Policy: add model, network, and MCP conformance checks (#80783) · openclaw/openclaw@6dbd5bd fix(agents): fence embedded session writes refactor: remove sender owner tool gating · openclaw/openclaw@02182d5 docs: remove stale owner tool wording test: update command auth expectations · openclaw/openclaw@95eac52 fix(xai): keep OAuth URL clickable (#84927) · openclaw/openclaw@159b300 Fix stale WebChat typing indicator after terminal session patch (#84565) docs: document rejected autoreview findings · openclaw/openclaw@c49647e docs(changelog): note VAPID subject fix · openclaw/openclaw@db606a8 perf(plugins): reuse compatible gateway startup registry · openclaw/openclaw@d2ad7d6 test: cover dispatch registry reuse caller · openclaw/openclaw@b248b48 docs: add plugin registry reuse changelog · openclaw/openclaw@6ccca4a fix(tests): wrap kitchen sink pnpm runner fix(agents): cap heartbeat context hint fallback · openclaw/openclaw@04061bc chore(deadcode): dedupe repeated helpers · openclaw/openclaw@88c49f9 perf(cli): cache stable subcommand help (#84786) · openclaw/openclaw@f39f56a fix(ollama): preserve tool call ids [AI-assisted] (#84855) · openclaw/openclaw@2000227 fix: align remaining copyright notice · openclaw/openclaw@f43e83c fix(config): append numeric bound hints to ceiling/floor validation e… · openclaw/openclaw@8a8f9dc fix(qa): enable private self-check runtime · openclaw/openclaw@0fb1de5 fix(diffs): replace iconMarkup string with ToolbarIconName enum to el… · openclaw/openclaw@b7f9bf5 fix: update mac copyright owner fix(agents): normalize openapi tool schemas · openclaw/openclaw@ec67290 fix(memory): stop recall tracking when dreaming is disabled · openclaw/openclaw@c89632b fix(diagnostics-otel): suppress exporter rejection crashes (#84881) perf: speed up secrets and nodes help startup (#84818) · openclaw/openclaw@233765b docs: add PDF timeout changelog · openclaw/openclaw@e3b77d6 fix(pdf): bound remote body reads [Fix] Reject slow node event sends (#84387) fix(doctor): detect Codex bwrap namespace denials · openclaw/openclaw@43c6c26 fix(update): prune stale local bundled plugin shadows · openclaw/openclaw@4a360ac ci: add live Codex plugin release check · openclaw/openclaw@3eb2d64 fix(slack): suppress reasoning reply payloads (#84322) chore: update vite · openclaw/openclaw@ec7495c chore: update dependencies · openclaw/openclaw@ec10d12 fix(config): validate browser sandbox bind sources [AI] (#84799) · openclaw/openclaw@3cc8b2a doctor: constrain legacy plugin cleanup paths [AI] (#84801) Fix Telegram isolated polling stall watchdog (#84861) · openclaw/openclaw@40db92f ci(release): keep non-waiting clawhub publish best effort fix(docker): keep prune store warmup before offline stage · openclaw/openclaw@1e8d966 ci(release): require resolved target before child dispatch · openclaw/openclaw@2fd02c2 fix(docker): keep runtime prune offline · openclaw/openclaw@a329b9e ci(release): streamline beta publish verification · openclaw/openclaw@1c5fda1 ci(release): preserve direct repair publishes · openclaw/openclaw@0604d25 ci(release): keep focused validation reruns independent · openclaw/openclaw@624d920 [Fix] Keep node systemd tokens out of unit files (#84815) fix: reject symlinked whatsapp creds · openclaw/openclaw@194f078 fix(whatsapp): guard credential atomic writes refactor(whatsapp): use async fs-safe credential checks · openclaw/openclaw@9ec9fbf fix(doctor): clear stale runtime override pins (#84221) fix(agents): disable pi-coding-agent auto-retry to prevent tool call … fix(trajectory): tolerate partial skill snapshot entries in support c… · openclaw/openclaw@c9b6a8b fix(ui): widen settings personal card · openclaw/openclaw@3156d94 fix(agents): log pre-prompt compaction fits decisions (#84676) · openclaw/openclaw@79be940 fix(memory-core): allow bounded dreaming session cleanup (#84802) · openclaw/openclaw@0671a2a perf(cli): lazy-load agents actions for help (#84483) · openclaw/openclaw@168f8a7 Skip empty sherpa structured transcripts (#84667) · openclaw/openclaw@46030f5 feat: support git and local skill installs (#84793) · openclaw/openclaw@c031274 Policy: add tool metadata conformance (#80056) fix(doctor): warn when sandbox hides MCP tools (#84742) · openclaw/openclaw@6745fe8 perf(cli): speed up onboarding help startup (#84488) · openclaw/openclaw@2c0c9c9 perf: isolate doctor core check tests (#84493) · openclaw/openclaw@2585249 feat(tasks): explain stale-running maintenance decisions (#84691) · openclaw/openclaw@3d3cf96 fix(minimax): stop advertising music duration control (#84765) fix(codex): guard path-only bootstrap files [AI-assisted] (#84736) · openclaw/openclaw@c4f14a3 Warn on plaintext secret config in doctor (#84718) · openclaw/openclaw@9cdf8a1 Remove skill prelude exec allowlist (#84570) perf(tui): defer EmbeddedTuiBackend import, drop dead warmup helpers … · openclaw/openclaw@b79effe perf(tui): skip plugin metadata + provider catalog on remote TUI star… · openclaw/openclaw@d91ef6b Route JSON-mode plugin registration logs to stderr (#84741) · openclaw/openclaw@b3ec4f0 build: suppress rolldown-plugin-dts CommonJS dts warnings from bundle…
fix(models): reset warmed provider auth on hot reload · openclaw/openclaw@aef8d17
steipete · 2026-05-22 · via Recent Commits to openclaw:main

@@ -40,6 +40,10 @@ const hoisted = vi.hoisted(() => ({

4040

activeEmbeddedRunSessionKeys: [] as string[],

4141

markRestartAbortedMainSessions: vi.fn(async (_params: unknown) => ({ marked: 1, skipped: 0 })),

4242

runtimeConfig: { value: { session: { store: "/tmp/active-sessions.json" } } as OpenClawConfig },

43+

reloadEvents: [] as string[],

44+

resetModelCatalogCache: vi.fn(() => {}),

45+

clearCurrentProviderAuthState: vi.fn(() => {}),

46+

warmCurrentProviderAuthState: vi.fn(async (_cfg: OpenClawConfig) => {}),

4347

}));

44484549

vi.mock("../hooks/gmail-watcher.js", () => ({

@@ -95,6 +99,24 @@ vi.mock("../config/config.js", () => ({

9599

getRuntimeConfig: () => hoisted.runtimeConfig.value,

96100

}));

97101102+

vi.mock("../agents/model-catalog.js", () => ({

103+

resetModelCatalogCache: () => {

104+

hoisted.reloadEvents.push("reset-model-catalog");

105+

hoisted.resetModelCatalogCache();

106+

},

107+

}));

108+109+

vi.mock("../agents/model-provider-auth.js", () => ({

110+

clearCurrentProviderAuthState: () => {

111+

hoisted.reloadEvents.push("clear-provider-auth");

112+

hoisted.clearCurrentProviderAuthState();

113+

},

114+

warmCurrentProviderAuthState: async (cfg: OpenClawConfig) => {

115+

hoisted.reloadEvents.push("warm-provider-auth");

116+

await hoisted.warmCurrentProviderAuthState(cfg);

117+

},

118+

}));

119+98120

function createReloadHandlersForTest(logReload = { info: vi.fn(), warn: vi.fn() }) {

99121

const cron = { start: vi.fn(async () => {}), stop: vi.fn() };

100122

const heartbeatRunner = {

@@ -139,6 +161,76 @@ afterEach(() => {

139161

hoisted.activeEmbeddedRunSessionKeys.length = 0;

140162

hoisted.markRestartAbortedMainSessions.mockClear();

141163

hoisted.runtimeConfig.value = { session: { store: "/tmp/active-sessions.json" } };

164+

hoisted.reloadEvents.length = 0;

165+

hoisted.resetModelCatalogCache.mockClear();

166+

hoisted.clearCurrentProviderAuthState.mockClear();

167+

hoisted.warmCurrentProviderAuthState.mockClear();

168+

});

169+170+

describe("gateway hot reload model state", () => {

171+

it("resets prepared model runtime state for every hot reload and rewarms after plugin reload", async () => {

172+

const reloadPlugins = vi.fn(async (): Promise<GatewayPluginReloadResult> => {

173+

hoisted.reloadEvents.push("reload-plugins");

174+

return {

175+

restartChannels: new Set(),

176+

activeChannels: new Set(),

177+

};

178+

});

179+

const { applyHotReload } = createGatewayReloadHandlers({

180+

deps: {} as never,

181+

broadcast: vi.fn(),

182+

getState: () => ({

183+

hooksConfig: {} as never,

184+

hookClientIpConfig: {} as never,

185+

heartbeatRunner: { stop: vi.fn(), updateConfig: vi.fn() } as never,

186+

cronState: {

187+

cron: { start: vi.fn(async () => {}), stop: vi.fn() },

188+

storePath: "/tmp/cron.json",

189+

cronEnabled: false,

190+

} as never,

191+

channelHealthMonitor: null,

192+

}),

193+

setState: vi.fn(),

194+

startChannel: vi.fn(async () => {}),

195+

stopChannel: vi.fn(async () => {}),

196+

reloadPlugins,

197+

logHooks: { info: vi.fn(), warn: vi.fn(), error: vi.fn() },

198+

logChannels: { info: vi.fn(), error: vi.fn() },

199+

logCron: { error: vi.fn() },

200+

logReload: { info: vi.fn(), warn: vi.fn() },

201+

createHealthMonitor: () => null,

202+

});

203+204+

const nextConfig = { plugins: { enabled: true } } as OpenClawConfig;

205+

await applyHotReload(

206+

{

207+

changedPaths: ["plugins.enabled"],

208+

restartGateway: false,

209+

restartReasons: [],

210+

hotReasons: ["plugins.enabled"],

211+

reloadHooks: false,

212+

restartGmailWatcher: false,

213+

restartCron: false,

214+

restartHeartbeat: false,

215+

restartHealthMonitor: false,

216+

reloadPlugins: true,

217+

restartChannels: new Set(),

218+

disposeMcpRuntimes: false,

219+

noopPaths: [],

220+

},

221+

nextConfig,

222+

);

223+224+

expect(hoisted.reloadEvents).toEqual([

225+

"reset-model-catalog",

226+

"clear-provider-auth",

227+

"reload-plugins",

228+

"reset-model-catalog",

229+

"clear-provider-auth",

230+

"warm-provider-auth",

231+

]);

232+

expect(hoisted.warmCurrentProviderAuthState).toHaveBeenCalledWith(nextConfig);

233+

});

142234

});

143235144236

describe("gateway restart deferral preflight", () => {