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

推荐订阅源

H
Help Net Security
T
ThreatConnect
SecWiki News
SecWiki News
F
Future of Privacy Forum
AWS News Blog
AWS News Blog
C
Cisco Blogs
A
Arctic Wolf
Vercel News
Vercel News
The GitHub Blog
The GitHub Blog
Scott Helme
Scott Helme
V
V2EX
博客园 - 叶小钗
阮一峰的网络日志
阮一峰的网络日志
K
Kaspersky official blog
G
Google Developers Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
P
Privacy International News Feed
C
Cyber Attacks, Cyber Crime and Cyber Security
N
News | PayPal Newsroom
Schneier on Security
Schneier on Security
NISL@THU
NISL@THU
Microsoft Azure Blog
Microsoft Azure Blog
量子位
The Hacker News
The Hacker News
Stack Overflow Blog
Stack Overflow Blog
Security Latest
Security Latest
M
Microsoft Research Blog - Microsoft Research
Google Online Security Blog
Google Online Security Blog
博客园_首页
C
CXSECURITY Database RSS Feed - CXSecurity.com
I
InfoQ
Google DeepMind News
Google DeepMind News
Y
Y Combinator Blog
The Cloudflare Blog
Microsoft Security Blog
Microsoft Security Blog
Martin Fowler
Martin Fowler
Cisco Talos Blog
Cisco Talos Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
Troy Hunt's Blog
F
Fox-IT International blog
S
Security @ Cisco Blogs
博客园 - 司徒正美
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
C
Comments on: Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
L
LINUX DO - 最新话题
GbyAI
GbyAI
Project Zero
Project Zero
腾讯CDC
T
Tailwind CSS Blog

Recent Commits to openclaw:main

fix(diagnostics): track model stream progress (#86757) fix(test): prepare macos runner tmpdir · openclaw/openclaw@7db4b3d test(agents): stabilize yielded exec timeout test · openclaw/openclaw@c14c043 test: stabilize media fallback and background timeout tests · openclaw/openclaw@3bb4be2 fix(whatsapp): warn once when group inbound dropped for missing chann… chore(release): refresh plugin sdk api baseline · openclaw/openclaw@e752f9b test(whatsapp): stabilize media format expectations · openclaw/openclaw@c43ed9e test(qqbot): make OPENCLAW_HOME media test Windows-safe · openclaw/openclaw@1e9b6b7 fix(test): forward installer smoke controls test: align image fast path expectations · openclaw/openclaw@21aefb8 test: align pnpm cache workflow assertion · openclaw/openclaw@c4f0682 test: enforce per-test ci threshold · openclaw/openclaw@4118a32 ci(mantis): pass crabbox capacity regions · openclaw/openclaw@4fdf617 ci: disable pnpm action cache on Windows · openclaw/openclaw@bc3d6ba fix(agents): skip wildcard catalog metadata refs (#86524) fix(test): bootstrap macos script stdin test(codex): avoid app-server diagnostic notification race fix(embedded-runner): preserve provider errors on cleanup takeover (#… · openclaw/openclaw@7fbca96 fix(agents): handle preflight compaction no-op budgets (#86709) · openclaw/openclaw@bcde7b1 fix: make QQ Bot media paths respect `OPENCLAW_HOME` configuration (#… · openclaw/openclaw@0d23c3b fix(tooling): skip gauntlet declaration prebuild fix(control-ui): support raw edits from editable config (#86726) · openclaw/openclaw@c9d0464 revert: iMessage group media attachment command (#86734) · openclaw/openclaw@5a33378 fix(release): stabilize beta validation after rebase · openclaw/openclaw@609d70d fix(test): measure kitchen sink gateway children · openclaw/openclaw@4738d0a fix(whatsapp): restore ack emoji identity fallback (#86697) · openclaw/openclaw@34d862d fix(imessage): send group media via attachment command · openclaw/openclaw@f322732 fix(test): harden plugin gauntlet proof · openclaw/openclaw@eab8d29 fix(release): stabilize beta validation after main rebase · openclaw/openclaw@9301598 refactor: use Rastermill for image processing (#86621) perf(discord): use libopus-wasm for voice opus fix(build): pin synthetic auth runtime dist entry (#86714) · openclaw/openclaw@3d06594 fix(plugin-sdk): preserve string-const unions as flat enum for deepse… · openclaw/openclaw@fddca99 fix(perf): bound session transcript stat fanout · openclaw/openclaw@2e6ba44 fix(test): bound plugin gauntlet prebuilds · openclaw/openclaw@6984a82 perf: speed up usage cost lookups · openclaw/openclaw@743bce2 Add OpenTelemetry LLM content spans (#86191) · openclaw/openclaw@f824e15 chore: remove unused tracked assets · openclaw/openclaw@592f192 fix(release): accept optional Discord voice decoder · openclaw/openclaw@8f1f790 fix(perf): tolerate passing filtered release gates · openclaw/openclaw@c410658 fix(release): stabilize beta validation tests · openclaw/openclaw@e049105 fix(ui): refresh raw copy i18n baseline · openclaw/openclaw@010a79b fix(packaging): bound dist inventory filesystem scans fix(test): remove image tool timeout slack · openclaw/openclaw@669df88 fix(cron): accept opaque session target keys · openclaw/openclaw@c9364f0 fix: honor skill source install aliases (#84842) · openclaw/openclaw@24d58af fix(test): avoid message tool bundled channel loads · openclaw/openclaw@6421808 test(onboard): guard docker e2e resources · openclaw/openclaw@80aa6d7 chore: bump OpenClaw to 2026.5.26 · openclaw/openclaw@d00d0a2 fix: stabilize discord voice receive recovery · openclaw/openclaw@321f06a perf: reduce session and auth cache hotpath work (#86678) · openclaw/openclaw@ee51169 fix(qa): stream gateway gauntlet prebuild output fix(cli): route plugin packaging recovery hints · openclaw/openclaw@56633e4 perf(agents): reuse model manifest context · openclaw/openclaw@ea2496b fix(diagnostics): expose missing telemetry signals (#86682) · openclaw/openclaw@ef8619d perf: avoid extra session snapshot cloning · openclaw/openclaw@71e9eaa fix: avoid compaction checkpoint transcript copies (#86666) · openclaw/openclaw@c59635a fix: preserve code mode failure output test: avoid message tool discovery in send helper · openclaw/openclaw@1514cc8 fix(scripts): bound guard inventory file reads · openclaw/openclaw@6defcb0 fix(test): isolate kitchen sink rpc home env feat(signal): support reaction approvals (#85894) fix(scripts): bound source scan file reads · openclaw/openclaw@57748a6 test(ollama): support cloud api live smoke · openclaw/openclaw@2a6b4ed test: serialize agents tools vitest files · openclaw/openclaw@978a2d0 fix(auto-reply): use context-aware overflow reserve hints (#84399) · openclaw/openclaw@3a4f2b1 feat(gateway): forward OpenAI sampling params (#84094) · openclaw/openclaw@6c7b3f3 perf: cache model cost indexes · openclaw/openclaw@068924e fix: hide unsupported best effort message option · openclaw/openclaw@5dc7043 refactor: reuse realtime output activity in google meet (#86665) fix(test): harden bundled plugin install sweep · openclaw/openclaw@84929e4 fix: prefer source public artifacts in source checkouts · openclaw/openclaw@c87957d test: type child process spawn mock · openclaw/openclaw@65a2105 test(installer): cover rocky cli installs · openclaw/openclaw@fe33747 docs: update changelog for landed fixes · openclaw/openclaw@da831e2 fix: dampen repeated device-required probes · openclaw/openclaw@399c692 fix(ui): keep local file markdown links inert · openclaw/openclaw@fc2d2d5 fix(update): avoid duplicate plugin smoke failures · openclaw/openclaw@342bde2 fix(gateway): cap retained compaction checkpoint bytes · openclaw/openclaw@d7361ef fix: stabilize tests and reduce plugin memory churn · openclaw/openclaw@c1a026a perf: reduce runtime metadata hotpath churn · openclaw/openclaw@1d21224 refactor: share realtime output activity tracking (#86661) fix(memory-wiki): bound compile page reads (#86660) · openclaw/openclaw@acbdb8c test(qa-matrix): use larger media coverage jpeg fix(cli): reject unknown command help roots (#81083) (thanks @YB0y) · openclaw/openclaw@bec7d56 test: improve test profiling helpers · openclaw/openclaw@68ab48b perf: reduce fuzzy matching allocations · openclaw/openclaw@ec7ad3b perf: reduce runtime cache churn · openclaw/openclaw@1531fe2 refactor: reuse forced consult coordinator in discord voice (#86656) · openclaw/openclaw@0164fd5 fix(scripts): drain codex-cli metadata stdout (#84239) (thanks @Iftek… fix(test): avoid discord voice tts activation tax · openclaw/openclaw@75ac0b5 fix(codex): disable native thread personality (#85891) (thanks @lastg… · openclaw/openclaw@0f35ec2 Refactor realtime voice turn context tracking (#86650) fix(discord): surface silent reply-delivery skips and remove runtime.… · openclaw/openclaw@3a48366 test(discord): cover deliver-lambda abort-skip path via processDiscor… · openclaw/openclaw@48adcb1 docs: update changelog for landed bug fixes · openclaw/openclaw@75c6cf2 test(qa-matrix): use valid media coverage jpeg · openclaw/openclaw@0f54221 fix(gmail-watcher): strip listeners from old process after settleProc… · openclaw/openclaw@0a38932 fix(gmail-watcher): prevent TDZ in settleProcess and guard exit handl… · openclaw/openclaw@94968c8 fix(hooks): stop existing Gmail watcher before re-entry to prevent leaks
Preserve runtime external auth snapshots (#85558) · openclaw/openclaw@711e963
TurboTheTurt · 2026-05-26 · via Recent Commits to openclaw:main

@@ -6,7 +6,11 @@ import { resolveOAuthDir } from "../../config/paths.js";

66

import { AUTH_STORE_VERSION } from "./constants.js";

77

import { legacyOAuthSidecarTestUtils } from "./legacy-oauth-sidecar.js";

88

import { resolveAuthStorePath } from "./paths.js";

9-

import { coercePersistedAuthProfileStore, loadPersistedAuthProfileStore } from "./persisted.js";

9+

import {

10+

coercePersistedAuthProfileStore,

11+

loadPersistedAuthProfileStore,

12+

mergeAuthProfileStores,

13+

} from "./persisted.js";

10141115

function withEnvValue(key: string, value: string | undefined): () => void {

1216

const previous = process.env[key];

@@ -212,4 +216,139 @@ describe("persisted auth profile boundary", () => {

212216

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

213217

}

214218

});

219+220+

it("lets authoritative runtime external metadata remove stale base profiles", () => {

221+

const merged = mergeAuthProfileStores(

222+

{

223+

version: AUTH_STORE_VERSION,

224+

runtimeExternalProfileIds: ["anthropic:claude-cli"],

225+

runtimeExternalProfileIdsAuthoritative: true,

226+

profiles: {

227+

"anthropic:claude-cli": {

228+

type: "oauth",

229+

provider: "anthropic",

230+

access: "stale-access",

231+

refresh: "stale-refresh",

232+

expires: 1,

233+

},

234+

},

235+

order: {

236+

anthropic: ["anthropic:claude-cli"],

237+

},

238+

lastGood: {

239+

anthropic: "anthropic:claude-cli",

240+

},

241+

},

242+

{

243+

version: AUTH_STORE_VERSION,

244+

runtimeExternalProfileIds: [],

245+

runtimeExternalProfileIdsAuthoritative: true,

246+

profiles: {},

247+

},

248+

);

249+250+

expect(merged.runtimeExternalProfileIds).toEqual([]);

251+

expect(merged.runtimeExternalProfileIdsAuthoritative).toBe(true);

252+

expect(merged.profiles["anthropic:claude-cli"]).toBeUndefined();

253+

expect(merged.order?.anthropic).toBeUndefined();

254+

expect(merged.lastGood?.anthropic).toBeUndefined();

255+

});

256+257+

it("keeps override profiles when authoritative metadata removes base runtime external state", () => {

258+

const profileId = "anthropic:claude-cli";

259+

const merged = mergeAuthProfileStores(

260+

{

261+

version: AUTH_STORE_VERSION,

262+

runtimeExternalProfileIds: [profileId],

263+

runtimeExternalProfileIdsAuthoritative: true,

264+

profiles: {

265+

[profileId]: {

266+

type: "oauth",

267+

provider: "anthropic",

268+

access: "stale-access",

269+

refresh: "stale-refresh",

270+

expires: 1,

271+

},

272+

},

273+

order: {

274+

anthropic: [profileId],

275+

},

276+

lastGood: {

277+

anthropic: profileId,

278+

},

279+

},

280+

{

281+

version: AUTH_STORE_VERSION,

282+

runtimeExternalProfileIds: [],

283+

runtimeExternalProfileIdsAuthoritative: true,

284+

profiles: {

285+

[profileId]: {

286+

type: "api_key",

287+

provider: "anthropic",

288+

key: "sk-local",

289+

},

290+

},

291+

order: {

292+

anthropic: [profileId],

293+

},

294+

lastGood: {

295+

anthropic: profileId,

296+

},

297+

},

298+

);

299+300+

expect(merged.runtimeExternalProfileIds).toEqual([]);

301+

expect(merged.runtimeExternalProfileIdsAuthoritative).toBe(true);

302+

expect(merged.profiles[profileId]).toMatchObject({

303+

type: "api_key",

304+

provider: "anthropic",

305+

key: "sk-local",

306+

});

307+

expect(merged.order?.anthropic).toEqual([profileId]);

308+

expect(merged.lastGood?.anthropic).toBe(profileId);

309+

});

310+311+

it("preserves inherited base runtime external profiles during agent-store merges", () => {

312+

const profileId = "anthropic:claude-cli";

313+

const merged = mergeAuthProfileStores(

314+

{

315+

version: AUTH_STORE_VERSION,

316+

runtimeExternalProfileIds: [profileId],

317+

runtimeExternalProfileIdsAuthoritative: true,

318+

profiles: {

319+

[profileId]: {

320+

type: "oauth",

321+

provider: "anthropic",

322+

access: "main-access",

323+

refresh: "main-refresh",

324+

expires: 1,

325+

},

326+

},

327+

order: {

328+

anthropic: [profileId],

329+

},

330+

lastGood: {

331+

anthropic: profileId,

332+

},

333+

},

334+

{

335+

version: AUTH_STORE_VERSION,

336+

runtimeExternalProfileIds: [],

337+

runtimeExternalProfileIdsAuthoritative: true,

338+

profiles: {},

339+

},

340+

{ preserveBaseRuntimeExternalProfiles: true },

341+

);

342+343+

expect(merged.runtimeExternalProfileIds).toEqual([profileId]);

344+

expect(merged.runtimeExternalProfileIdsAuthoritative).toBe(true);

345+

expect(merged.profiles[profileId]).toMatchObject({

346+

type: "oauth",

347+

provider: "anthropic",

348+

access: "main-access",

349+

refresh: "main-refresh",

350+

});

351+

expect(merged.order?.anthropic).toEqual([profileId]);

352+

expect(merged.lastGood?.anthropic).toBe(profileId);

353+

});

215354

});