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

推荐订阅源

V
Visual Studio Blog
Martin Fowler
Martin Fowler
aimingoo的专栏
aimingoo的专栏
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
Cybersecurity and Infrastructure Security Agency CISA
C
Cisco Blogs
S
Securelist
博客园 - Franky
P
Proofpoint News Feed
量子位
雷峰网
雷峰网
Security Latest
Security Latest
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Latest news
Latest news
L
Lohrmann on Cybersecurity
W
WeLiveSecurity
月光博客
月光博客
Hacker News: Ask HN
Hacker News: Ask HN
宝玉的分享
宝玉的分享
GbyAI
GbyAI
小众软件
小众软件
M
MIT News - Artificial intelligence
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
S
Secure Thoughts
The Cloudflare Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
IT之家
IT之家
H
Hackread – Cybersecurity News, Data Breaches, AI and More
T
Threat Research - Cisco Blogs
Stack Overflow Blog
Stack Overflow Blog
有赞技术团队
有赞技术团队
Attack and Defense Labs
Attack and Defense Labs
Y
Y Combinator Blog
Scott Helme
Scott Helme
O
OpenAI News
Know Your Adversary
Know Your Adversary
AWS News Blog
AWS News Blog
阮一峰的网络日志
阮一峰的网络日志
A
About on SuperTechFans
云风的 BLOG
云风的 BLOG
V
Vulnerabilities – Threatpost
博客园 - 【当耐特】
K
Kaspersky official blog
Microsoft Azure Blog
Microsoft Azure Blog
S
SegmentFault 最新的问题
Forbes - Security
Forbes - Security
腾讯CDC
NISL@THU
NISL@THU
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
T
Tailwind CSS 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 test: trim doctor command hotspots · openclaw/openclaw@c66f16a test: isolate agent auth and spawn hotspots · openclaw/openclaw@9285935 test: stabilize MCP startup disposal race · openclaw/openclaw@dd9d2eb test: merge browser contract server suites · openclaw/openclaw@5817a76 test: narrow ollama provider discovery setup · openclaw/openclaw@a0d9598 build: declare qa-lab aimock runtime dependency · openclaw/openclaw@24431e5 test: speed up safe-bins exec harness · openclaw/openclaw@ee856ab test: preserve tool helpers in embedded runner mocks · openclaw/openclaw@acd86a0 refactor: move memory embeddings into provider plugins · openclaw/openclaw@77e6e4c test: reuse system-run temp fixtures · openclaw/openclaw@7e9ff0f test: trim hotspot wait overhead · openclaw/openclaw@12a59b0 Check: avoid duplicate boundary prep · openclaw/openclaw@baf11b8 test: reduce hotspot fixture overhead · openclaw/openclaw@3a59edd feat(ui): overhaul settings and slash command UX (#67819) thanks @Bun… · openclaw/openclaw@2cfb660 QA Matrix: exit cleanly on failure · openclaw/openclaw@42805d2 QA Matrix: isolate scenario coverage · openclaw/openclaw@7e659e1 Matrix: refresh crypto bootstrap state · openclaw/openclaw@94081d8 QA Lab: add provider registry · openclaw/openclaw@bb7e982 Matrix: add plugin changelog · openclaw/openclaw@4acab55 test: trim more hotspot overhead · openclaw/openclaw@f485311 test: trim remaining hotspot tests · openclaw/openclaw@6ba8626 test: narrow hotspot mocks · openclaw/openclaw@dbc8179 test: isolate gemini embedding request helpers · openclaw/openclaw@cd330f5 test: trim memory and mcp hotspots · openclaw/openclaw@fd48dfa test: slim provider registry mocks · openclaw/openclaw@2e08c77 test: harden Parallels update smoke · openclaw/openclaw@1a98090 feat: default Anthropic to Opus 4.7 · openclaw/openclaw@628b454 fix: harden node-host shell payload mutability checks · openclaw/openclaw@75c551e fix: land node-host approval binding for native binaries (#66731) (th… · openclaw/openclaw@29919bb CI: add daily schedule to CodeQL workflow (#67645) · openclaw/openclaw@69d25f5 fix(gateway): capture config hash after plugin auto-enable to prevent… · openclaw/openclaw@8c11210 fix: repair sanitized replay tool results before send (#67620) (thank… · openclaw/openclaw@c3c7a99 fix: restrict HTML timeout short-circuit to transient statuses · openclaw/openclaw@de129a6 fix: keep TUI watchdog bound to active run (#67401) (thanks @xantorres) · openclaw/openclaw@3525273 Gateway/skills: dedupe skills prefix-match + drop dead fallback on log · openclaw/openclaw@d7f489f Extensions/lmstudio: back off inference preload after consecutive fai… · openclaw/openclaw@b555214 TUI/streaming: add watchdog that resets the activity indicator after … · openclaw/openclaw@f44ab20 Agents/tool-loop: enable unknown-tool stream guard by default · openclaw/openclaw@36ed367 Gateway/skills: invalidate session skills snapshot on config write · openclaw/openclaw@b23d59a fix: classify HTML provider error pages correctly (#67642) (thanks @s… · openclaw/openclaw@e588e90 fix(skills): remove unused model-usage import (#67641) · openclaw/openclaw@55f05df docs(changelog): credit codex fix superseded PRs · openclaw/openclaw@e485f24 fix(openai-codex): normalize stale transport metadata in resolution a… · openclaw/openclaw@90801ba CI: pin Docker-related GitHub Actions (#67632) · openclaw/openclaw@f697b01 Android: modernize WebView and discovery API usage (#67627) · openclaw/openclaw@44a6e50 fix(deps): bump hono to 4.12.14 and @hono/node-server to 1.19.14 (GHS… · openclaw/openclaw@fbccc18 fix(deps): bump dompurify to 3.4.0 (#67614) · openclaw/openclaw@2c2dc00 CI: add explicit permissions to all workflow jobs (fixes code-scannin… · openclaw/openclaw@01b7516 fix: register bundled TTS providers and route overrides correctly (#6… · openclaw/openclaw@6ea3cdd fix: align host tilde paths with OS home (#62804) (thanks @stainlu) · openclaw/openclaw@ecfaf64 fix: flush creds queue before reconnect socket open (#67464) (thanks … · openclaw/openclaw@405c63f fix: strip standalone <function> tool call tags from visible text (#6… · openclaw/openclaw@78df859 fix(agents): preserve cli session metadata before transcript persist … · openclaw/openclaw@898fd04 docs(changelog): move cli transcript entry · openclaw/openclaw@c1817c6 fix(agents): normalize cli transcript api field · openclaw/openclaw@3a3fae0 docs(changelog): note cli transcript persistence · openclaw/openclaw@6c343f1 fix(agents): persist cli transcript turns · openclaw/openclaw@b8ef507 fix(msteams): harden security-sensitive flows (#65841) · openclaw/openclaw@c56b56e [Dashboard] Fix exec approval modal overflow for long command content… · openclaw/openclaw@053c5b0 Docs: remove QA changelog entry · openclaw/openclaw@7fd5771 QA: fix private runtime source loading (#67428) · openclaw/openclaw@d5933af docs(gateway): correct protocol.md schema path, hello-ok example, aut… · openclaw/openclaw@489404d CI: pin Node 22 runners to 22.18.0 · openclaw/openclaw@4ffa621 models.authStatus: normalize provider ids + tighten env-backed escape… · openclaw/openclaw@f2fdb9d Update CHANGELOG.md · openclaw/openclaw@7694a92 test(parallels): clean up npm update guard jobs · openclaw/openclaw@045ea7b Plugins: prefer scanDir override paths · openclaw/openclaw@b2974da fix(dreaming): default storage.mode to "separate" so phase blocks sto… · openclaw/openclaw@8c392f0 fix(memory-core): skip dreaming transcript ingestion via session stor… · openclaw/openclaw@a1b01f0 fix: dedupe replayed exec.finished node events (#67281) · openclaw/openclaw@5dcf526
fix(providers): lock auth setup profile writes · openclaw/openclaw@f410a95
vincentkoc · 2026-05-16 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -16,7 +16,7 @@ import {

1616

type OpenClawConfig as ProviderAuthConfig,

1717

type ProviderAuthResult,

1818

suggestOAuthProfileIdForLegacyDefault,

19-

upsertAuthProfile,

19+

upsertAuthProfileWithLock,

2020

validateAnthropicSetupToken,

2121

} from "openclaw/plugin-sdk/provider-auth";

2222

import {

@@ -44,6 +44,7 @@ import { buildAnthropicReplayPolicy } from "./replay-policy.js";

4444

import { wrapAnthropicProviderStream } from "./stream-wrappers.js";

4545
4646

const PROVIDER_ID = "anthropic";

47+

type UpsertAuthProfileParams = Parameters<typeof upsertAuthProfileWithLock>[0];

4748

const DEFAULT_ANTHROPIC_MODEL = "anthropic/claude-opus-4-7";

4849

const ANTHROPIC_OPUS_47_MODEL_ID = "claude-opus-4-7";

4950

const ANTHROPIC_OPUS_47_DOT_MODEL_ID = "claude-opus-4.7";

@@ -80,6 +81,15 @@ const CLAUDE_CLI_CANONICAL_ALLOWLIST_REFS = CLAUDE_CLI_DEFAULT_ALLOWLIST_REFS.ma

8081

? `anthropic/${ref.slice(CLAUDE_CLI_BACKEND_ID.length + 1)}`

8182

: ref,

8283

);

84+
85+

async function upsertAuthProfileWithLockOrThrow(params: UpsertAuthProfileParams): Promise<void> {

86+

const updated = await upsertAuthProfileWithLock(params);

87+

if (!updated) {

88+

throw new Error(

89+

"Failed to update auth profile store; the auth store lock may be busy. Wait a moment and retry.",

90+

);

91+

}

92+

}

8393

const CLAUDE_CLI_CANONICAL_DEFAULT_MODEL_REF = CLAUDE_CLI_DEFAULT_MODEL_REF.startsWith(

8494

`${CLAUDE_CLI_BACKEND_ID}/`,

8595

)

@@ -166,7 +176,7 @@ async function runAnthropicSetupTokenNonInteractive(

166176
167177

const profileId = resolveAnthropicSetupTokenProfileId(ctx.opts.tokenProfileId);

168178

const expires = resolveAnthropicSetupTokenExpiry(ctx.opts.tokenExpiresIn);

169-

upsertAuthProfile({

179+

await upsertAuthProfileWithLockOrThrow({

170180

profileId,

171181

credential: {

172182

type: "token",

Original file line numberDiff line numberDiff line change

@@ -7,7 +7,7 @@ import {

77

listProfilesForProvider,

88

normalizeApiKeyInput,

99

normalizeOptionalSecretInput,

10-

upsertAuthProfile,

10+

upsertAuthProfileWithLock,

1111

validateApiKeyInput,

1212

} from "openclaw/plugin-sdk/provider-auth";

1313

import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";

@@ -19,6 +19,16 @@ import { wrapCloudflareAiGatewayProviderStream } from "./stream-wrappers.js";

1919

const PROVIDER_ID = "cloudflare-ai-gateway";

2020

const PROVIDER_ENV_VAR = "CLOUDFLARE_AI_GATEWAY_API_KEY";

2121

const PROFILE_ID = "cloudflare-ai-gateway:default";

22+

type UpsertAuthProfileParams = Parameters<typeof upsertAuthProfileWithLock>[0];

23+
24+

async function upsertAuthProfileWithLockOrThrow(params: UpsertAuthProfileParams): Promise<void> {

25+

const updated = await upsertAuthProfileWithLock(params);

26+

if (!updated) {

27+

throw new Error(

28+

"Failed to update auth profile store; the auth store lock may be busy. Wait a moment and retry.",

29+

);

30+

}

31+

}

2232
2333

function readRequiredTextInput(value: unknown): string {

2434

return typeof value === "string" ? value.trim() : "";

@@ -176,7 +186,7 @@ export default definePluginEntry({

176186

if (!credential) {

177187

return null;

178188

}

179-

upsertAuthProfile({

189+

await upsertAuthProfileWithLockOrThrow({

180190

profileId: PROFILE_ID,

181191

credential,

182192

agentDir: ctx.agentDir,

Original file line numberDiff line numberDiff line change

@@ -4,7 +4,7 @@ import { logConfigUpdated, updateConfig } from "openclaw/plugin-sdk/config-mutat

44

import {

55

applyAuthProfileConfig,

66

ensureAuthProfileStore,

7-

upsertAuthProfile,

7+

upsertAuthProfileWithLock,

88

} from "openclaw/plugin-sdk/provider-auth";

99

import type { RuntimeEnv } from "openclaw/plugin-sdk/runtime";

1010

@@ -36,6 +36,8 @@ type DeviceTokenResponse =

3636

const GITHUB_DEVICE_ACCESS_DENIED = Symbol("github-device-access-denied");

3737

const GITHUB_DEVICE_EXPIRED = Symbol("github-device-expired");

3838
39+

type UpsertAuthProfileParams = Parameters<typeof upsertAuthProfileWithLock>[0];

40+
3941

class GitHubDeviceFlowError extends Error {

4042

readonly kind: symbol;

4143

constructor(kind: symbol, message: string) {

@@ -45,6 +47,15 @@ class GitHubDeviceFlowError extends Error {

4547

}

4648

}

4749
50+

async function upsertAuthProfileWithLockOrThrow(params: UpsertAuthProfileParams): Promise<void> {

51+

const updated = await upsertAuthProfileWithLock(params);

52+

if (!updated) {

53+

throw new Error(

54+

"Failed to update auth profile store; the auth store lock may be busy. Wait a moment and retry.",

55+

);

56+

}

57+

}

58+
4859

function isGitHubDeviceAccessDeniedError(err: unknown): boolean {

4960

return err instanceof GitHubDeviceFlowError && err.kind === GITHUB_DEVICE_ACCESS_DENIED;

5061

}

@@ -266,7 +277,7 @@ export async function githubCopilotLoginCommand(

266277

});

267278

polling.stop("GitHub access token acquired");

268279
269-

upsertAuthProfile({

280+

await upsertAuthProfileWithLockOrThrow({

270281

profileId,

271282

credential: {

272283

type: "token",

Original file line numberDiff line numberDiff line change

@@ -14,7 +14,7 @@ import {

1414

normalizeApiKeyInput,

1515

normalizeOptionalSecretInput,

1616

type SecretInput,

17-

upsertAuthProfile,

17+

upsertAuthProfileWithLock,

1818

validateApiKeyInput,

1919

} from "openclaw/plugin-sdk/provider-auth-api-key";

2020

import {

@@ -36,6 +36,16 @@ import { applyZaiConfig, applyZaiProviderConfig, ZAI_DEFAULT_MODEL_REF } from ".

3636

const PROVIDER_ID = "zai";

3737

const GLM5_TEMPLATE_MODEL_ID = "glm-4.7";

3838

const PROFILE_ID = "zai:default";

39+

type UpsertAuthProfileParams = Parameters<typeof upsertAuthProfileWithLock>[0];

40+
41+

async function upsertAuthProfileWithLockOrThrow(params: UpsertAuthProfileParams): Promise<void> {

42+

const updated = await upsertAuthProfileWithLock(params);

43+

if (!updated) {

44+

throw new Error(

45+

"Failed to update auth profile store; the auth store lock may be busy. Wait a moment and retry.",

46+

);

47+

}

48+

}

3949
4050

function resolveGlm5ForwardCompatModel(

4151

ctx: ProviderResolveDynamicModelContext,

@@ -229,7 +239,7 @@ async function runZaiApiKeyAuthNonInteractive(

229239

if (!credential) {

230240

return null;

231241

}

232-

upsertAuthProfile({

242+

await upsertAuthProfileWithLockOrThrow({

233243

profileId: PROFILE_ID,

234244

credential,

235245

agentDir: ctx.agentDir,

Original file line numberDiff line numberDiff line change

@@ -3,7 +3,7 @@

33

export type { OpenClawConfig } from "../config/config.js";

44

export type { SecretInput } from "../config/types.secrets.js";

55
6-

export { upsertAuthProfile } from "../agents/auth-profiles/profiles.js";

6+

export { upsertAuthProfile, upsertAuthProfileWithLock } from "../agents/auth-profiles/profiles.js";

77

export {

88

formatApiKeyPreview,

99

normalizeApiKeyInput,

Original file line numberDiff line numberDiff line change

@@ -1,4 +1,4 @@

1-

import { upsertAuthProfile } from "../agents/auth-profiles/profiles.js";

1+

import { upsertAuthProfileWithLock } from "../agents/auth-profiles/profiles.js";

22

import type { OpenClawConfig } from "../config/types.openclaw.js";

33

import type { SecretInput } from "../config/types.secrets.js";

44

import { createLazyRuntimeSurface } from "../shared/lazy-runtime.js";

@@ -32,6 +32,8 @@ type ProviderApiKeyAuthMethodOptions = {

3232

applyConfig?: (cfg: OpenClawConfig) => OpenClawConfig;

3333

};

3434
35+

type UpsertAuthProfileParams = Parameters<typeof upsertAuthProfileWithLock>[0];

36+
3537

const loadProviderApiKeyAuthRuntime = createLazyRuntimeSurface(

3638

() => import("./provider-api-key-auth.runtime.js"),

3739

({ providerApiKeyAuthRuntime }) => providerApiKeyAuthRuntime,

@@ -57,6 +59,15 @@ function resolveProfileIds(params: {

5759

return [resolveProfileId(params)];

5860

}

5961
62+

async function upsertAuthProfileWithLockOrThrow(params: UpsertAuthProfileParams): Promise<void> {

63+

const updated = await upsertAuthProfileWithLock(params);

64+

if (!updated) {

65+

throw new Error(

66+

"Failed to update auth profile store; the auth store lock may be busy. Wait a moment and retry.",

67+

);

68+

}

69+

}

70+
6071

async function applyApiKeyConfig(params: {

6172

ctx: ProviderAuthMethodNonInteractiveContext;

6273

providerId: string;

@@ -177,7 +188,7 @@ export function createProviderApiKeyAuthMethod(

177188

if (!credential) {

178189

return null;

179190

}

180-

upsertAuthProfile({

191+

await upsertAuthProfileWithLockOrThrow({

181192

profileId,

182193

credential,

183194

agentDir: ctx.agentDir,