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

推荐订阅源

U
Unit 42
Blog — PlanetScale
Blog — PlanetScale
H
Help Net Security
The GitHub Blog
The GitHub Blog
博客园 - Franky
酷 壳 – CoolShell
酷 壳 – CoolShell
Recent Announcements
Recent Announcements
量子位
aimingoo的专栏
aimingoo的专栏
大猫的无限游戏
大猫的无限游戏
博客园 - 叶小钗
Microsoft Azure Blog
Microsoft Azure Blog
Martin Fowler
Martin Fowler
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
A
About on SuperTechFans
T
Tailwind CSS Blog
V
V2EX
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
B
Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
S
SegmentFault 最新的问题
G
Google Developers Blog
M
MIT News - Artificial intelligence

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: keep config writes independent of auth profile refs ...
steipete · 2026-05-18 · via Recent Commits to openclaw:main

@@ -21,6 +21,7 @@ import {

2121

getActiveSecretsRuntimeEnv as getActiveSecretsRuntimeEnvState,

2222

getActiveSecretsRuntimeRefreshContext,

2323

getActiveSecretsRuntimeSnapshot as getActiveSecretsRuntimeSnapshotState,

24+

getLiveSecretsRuntimeAuthStores,

2425

getPreparedSecretsRuntimeSnapshotRefreshContext,

2526

registerSecretsRuntimeStateClearHook,

2627

setPreparedSecretsRuntimeSnapshotRefreshContext,

@@ -123,6 +124,7 @@ export async function prepareSecretsRuntimeSnapshot(params: {

123124

setPreparedSecretsRuntimeSnapshotRefreshContext(snapshot, {

124125

env: runtimeEnv,

125126

explicitAgentDirs: params.agentDirs?.length ? [...candidateDirs] : null,

127+

includeAuthStoreRefs,

126128

loadAuthStore: fastPathLoadAuthStore,

127129

loadablePluginOrigins: params.loadablePluginOrigins ?? new Map<string, PluginOrigin>(),

128130

});

@@ -197,6 +199,7 @@ export async function prepareSecretsRuntimeSnapshot(params: {

197199

setPreparedSecretsRuntimeSnapshotRefreshContext(snapshot, {

198200

env: runtimeEnv,

199201

explicitAgentDirs: params.agentDirs?.length ? [...candidateDirs] : null,

202+

includeAuthStoreRefs,

200203

loadAuthStore: params.loadAuthStore ?? loadAuthProfileStoreForSecretsRuntime,

201204

loadablePluginOrigins,

202205

});

@@ -210,27 +213,36 @@ export function activateSecretsRuntimeSnapshot(snapshot: PreparedSecretsRuntimeS

210213

({

211214

env: { ...process.env } as Record<string, string | undefined>,

212215

explicitAgentDirs: null,

216+

includeAuthStoreRefs: snapshot.authStores.length > 0,

213217

loadAuthStore: loadAuthProfileStoreForSecretsRuntime,

214218

loadablePluginOrigins: new Map<string, PluginOrigin>(),

215219

} satisfies SecretsRuntimeRefreshContext);

216220

activateSecretsRuntimeSnapshotState({

217221

snapshot,

218222

refreshContext,

219223

refreshHandler: {

220-

refresh: async ({ sourceConfig }) => {

224+

refresh: async ({ sourceConfig, includeAuthStoreRefs }) => {

221225

const activeRefreshContext = getActiveSecretsRuntimeRefreshContext();

222-

if (!getActiveSecretsRuntimeSnapshotState() || !activeRefreshContext) {

226+

const activeSnapshot = getActiveSecretsRuntimeSnapshotState();

227+

if (!activeSnapshot || !activeRefreshContext) {

223228

return false;

224229

}

230+

const oneShotSkipAuthStoreRefs =

231+

includeAuthStoreRefs === false && activeRefreshContext.includeAuthStoreRefs;

225232

const refreshed = await prepareSecretsRuntimeSnapshot({

226233

config: sourceConfig,

227234

env: activeRefreshContext.env,

228235

agentDirs: resolveRefreshAgentDirs(sourceConfig, activeRefreshContext),

236+

includeAuthStoreRefs: includeAuthStoreRefs ?? activeRefreshContext.includeAuthStoreRefs,

229237

loadablePluginOrigins: activeRefreshContext.loadablePluginOrigins,

230238

...(activeRefreshContext.loadAuthStore

231239

? { loadAuthStore: activeRefreshContext.loadAuthStore }

232240

: {}),

233241

});

242+

if (oneShotSkipAuthStoreRefs) {

243+

refreshed.authStores = getLiveSecretsRuntimeAuthStores();

244+

setPreparedSecretsRuntimeSnapshotRefreshContext(refreshed, activeRefreshContext);

245+

}

234246

activateSecretsRuntimeSnapshot(refreshed);

235247

return true;

236248

},

@@ -248,6 +260,7 @@ export async function refreshActiveSecretsRuntimeSnapshot(): Promise<boolean> {

248260

config: activeSnapshot.sourceConfig,

249261

env: activeRefreshContext.env,

250262

agentDirs: resolveRefreshAgentDirs(activeSnapshot.sourceConfig, activeRefreshContext),

263+

includeAuthStoreRefs: activeRefreshContext.includeAuthStoreRefs,

251264

loadablePluginOrigins: activeRefreshContext.loadablePluginOrigins,

252265

...(activeRefreshContext.loadAuthStore

253266

? { loadAuthStore: activeRefreshContext.loadAuthStore }