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

推荐订阅源

TaoSecurity Blog
TaoSecurity Blog
T
Troy Hunt's Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Vercel News
Vercel News
T
Threatpost
G
Google Developers Blog
T
Threat Research - Cisco Blogs
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
T
The Exploit Database - CXSecurity.com
H
Heimdal Security Blog
Google DeepMind News
Google DeepMind News
Cyberwarzone
Cyberwarzone
T
The Blog of Author Tim Ferriss
Know Your Adversary
Know Your Adversary
Hacker News: Ask HN
Hacker News: Ask HN
www.infosecurity-magazine.com
www.infosecurity-magazine.com
S
Schneier on Security
B
Blog
V2EX - 技术
V2EX - 技术
NISL@THU
NISL@THU
C
CERT Recently Published Vulnerability Notes
W
WeLiveSecurity
C
Cybersecurity and Infrastructure Security Agency CISA
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Y
Y Combinator Blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Spread Privacy
Spread Privacy
The Last Watchdog
The Last Watchdog
V
Vulnerabilities – Threatpost
N
Netflix TechBlog - Medium
Schneier on Security
Schneier on Security
F
Fortinet All Blogs
N
News | PayPal Newsroom
Attack and Defense Labs
Attack and Defense Labs
Blog — PlanetScale
Blog — PlanetScale
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Microsoft Security Blog
Microsoft Security Blog
S
Security @ Cisco Blogs
人人都是产品经理
人人都是产品经理
爱范儿
爱范儿
P
Privacy & Cybersecurity Law Blog
P
Proofpoint News Feed
Project Zero
Project Zero
I
Intezer
罗磊的独立博客
H
Hackread – Cybersecurity News, Data Breaches, AI and More
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - Franky
SecWiki News
SecWiki News
Martin Fowler
Martin Fowler

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
refactor(agents): dedupe dead helper code · openclaw/openclaw@b63acf5
vincentkoc · 2026-06-18 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -0,0 +1,29 @@

1+

import { normalizeSecretInput } from "../../utils/normalize-secret-input.js";

2+

import type { AuthProfileCredential } from "./types.js";

3+
4+

// Upsert paths normalize literal secret strings but preserve SecretRef-backed

5+

// credentials for the secret resolver.

6+

export function normalizeAuthProfileCredential(

7+

credential: AuthProfileCredential,

8+

): AuthProfileCredential {

9+

if (credential.type === "api_key") {

10+

if (typeof credential.key !== "string") {

11+

return credential;

12+

}

13+

const { key: _key, ...rest } = credential;

14+

const key = normalizeSecretInput(credential.key);

15+

return {

16+

...rest,

17+

...(key ? { key } : {}),

18+

};

19+

}

20+

if (credential.type === "token") {

21+

if (typeof credential.token !== "string") {

22+

return credential;

23+

}

24+

const { token: _token, ...rest } = credential;

25+

const token = normalizeSecretInput(credential.token);

26+

return { ...rest, ...(token ? { token } : {}) };

27+

}

28+

return credential;

29+

}

Original file line numberDiff line numberDiff line change

@@ -8,8 +8,8 @@ import {

88

normalizeProviderId,

99

} from "@openclaw/model-catalog-core/provider-id";

1010

import { normalizeStringEntries } from "@openclaw/normalization-core/string-normalization";

11-

import { normalizeSecretInput } from "../../utils/normalize-secret-input.js";

1211

import { resolveProviderIdForAuth } from "../provider-auth-aliases.js";

12+

import { normalizeAuthProfileCredential } from "./credential-normalize.js";

1313

import { dedupeProfileIds, listProfilesForProvider } from "./profile-list.js";

1414

import {

1515

ensureAuthProfileStoreForLocalUpdate,

@@ -157,31 +157,6 @@ export async function promoteAuthProfileInOrder(params: {

157157

});

158158

}

159159
160-

// Upsert paths normalize literal secret strings but preserve SecretRef-backed

161-

// credentials for the secret resolver.

162-

function normalizeAuthProfileCredential(credential: AuthProfileCredential): AuthProfileCredential {

163-

if (credential.type === "api_key") {

164-

if (typeof credential.key !== "string") {

165-

return credential;

166-

}

167-

const { key: _key, ...rest } = credential;

168-

const key = normalizeSecretInput(credential.key);

169-

return {

170-

...rest,

171-

...(key ? { key } : {}),

172-

};

173-

}

174-

if (credential.type === "token") {

175-

if (typeof credential.token !== "string") {

176-

return credential;

177-

}

178-

const { token: _token, ...rest } = credential;

179-

const token = normalizeSecretInput(credential.token);

180-

return { ...rest, ...(token ? { token } : {}) };

181-

}

182-

return credential;

183-

}

184-
185160

/** Upserts an auth profile immediately into the local store. */

186161

export function upsertAuthProfile(params: {

187162

profileId: string;

Original file line numberDiff line numberDiff line change

@@ -3,35 +3,10 @@

33

* Normalizes literal secrets before persistence and routes all writes through

44

* the shared SQLite lock to avoid racing concurrent auth updates.

55

*/

6-

import { normalizeSecretInput } from "../../utils/normalize-secret-input.js";

6+

import { normalizeAuthProfileCredential } from "./credential-normalize.js";

77

import { updateAuthProfileStoreWithLock } from "./store.js";

88

import type { AuthProfileCredential, AuthProfileStore } from "./types.js";

99
10-

// Upserts normalize literal secrets before persistence; SecretRef fields are

11-

// preserved by leaving non-string key/token values untouched.

12-

function normalizeAuthProfileCredential(credential: AuthProfileCredential): AuthProfileCredential {

13-

if (credential.type === "api_key") {

14-

if (typeof credential.key !== "string") {

15-

return credential;

16-

}

17-

const { key: _key, ...rest } = credential;

18-

const key = normalizeSecretInput(credential.key);

19-

return {

20-

...rest,

21-

...(key ? { key } : {}),

22-

};

23-

}

24-

if (credential.type === "token") {

25-

if (typeof credential.token !== "string") {

26-

return credential;

27-

}

28-

const { token: _token, ...rest } = credential;

29-

const token = normalizeSecretInput(credential.token);

30-

return { ...rest, ...(token ? { token } : {}) };

31-

}

32-

return credential;

33-

}

34-
3510

/** Upserts an auth profile under the store lock, returning null on write failure. */

3611

export async function upsertAuthProfileWithLock(params: {

3712

profileId: string;

Original file line numberDiff line numberDiff line change

@@ -0,0 +1,28 @@

1+

export function toCodeModeJsonSafe(value: unknown): unknown {

2+

if (value === undefined) {

3+

return null;

4+

}

5+

try {

6+

const serialized = JSON.stringify(value);

7+

return serialized === undefined ? null : (JSON.parse(serialized) as unknown);

8+

} catch {

9+

if (value instanceof Error) {

10+

return { name: value.name, message: value.message };

11+

}

12+

if (value === null) {

13+

return null;

14+

}

15+

switch (typeof value) {

16+

case "string":

17+

case "number":

18+

case "boolean":

19+

return value;

20+

case "bigint":

21+

case "symbol":

22+

case "function":

23+

return String(value);

24+

default:

25+

return Object.prototype.toString.call(value);

26+

}

27+

}

28+

}

Original file line numberDiff line numberDiff line change

@@ -4,6 +4,7 @@

44

* files, and a guarded invocation runtime.

55

*/

66

import { isRecord } from "../../packages/normalization-core/src/record-coerce.js";

7+

import { toCodeModeJsonSafe } from "./code-mode-json.js";

78
89

const FORBIDDEN_NAMESPACE_PATH_SEGMENTS = new Set(["__proto__", "constructor", "prototype"]);

910

const NAMESPACE_PATH_KEY_SEPARATOR = "\u0000";

@@ -965,35 +966,6 @@ export function describeCodeModeNamespacesForPrompt(

965966

return lines.join("\n");

966967

}

967968
968-

function toJsonSafe(value: unknown): unknown {

969-

if (value === undefined) {

970-

return null;

971-

}

972-

try {

973-

const serialized = JSON.stringify(value);

974-

return serialized === undefined ? null : (JSON.parse(serialized) as unknown);

975-

} catch {

976-

if (value instanceof Error) {

977-

return { name: value.name, message: value.message };

978-

}

979-

if (value === null) {

980-

return null;

981-

}

982-

switch (typeof value) {

983-

case "string":

984-

case "number":

985-

case "boolean":

986-

return value;

987-

case "bigint":

988-

case "symbol":

989-

case "function":

990-

return String(value);

991-

default:

992-

return Object.prototype.toString.call(value);

993-

}

994-

}

995-

}

996-
997969

function assertNamespacePathSegment(segment: string): void {

998970

if (

999971

!segment ||

@@ -1024,7 +996,7 @@ function serializeNamespaceScopeValue(

1024996

);

1025997

}

1026998

if (value === null || typeof value !== "object") {

1027-

return { kind: "value", value: toJsonSafe(value) };

999+

return { kind: "value", value: toCodeModeJsonSafe(value) };

10281000

}

10291001

if (stack.has(value)) {

10301002

throw new Error(`Circular code mode namespace scope at ${path.join(".") || "(root)"}.`);

@@ -1130,12 +1102,12 @@ export async function createCodeModeNamespaceRuntime(

11301102

}

11311103

const input = target.input ? await target.input(args) : (args[0] ?? {});

11321104

if (target.local) {

1133-

return toJsonSafe(input);

1105+

return toCodeModeJsonSafe(input);

11341106

}

11351107

if (!target.catalogId && !entry.registration.requiredToolNames.includes(target.toolName)) {

11361108

throw new Error(`Code mode namespace path targets undeclared tool: ${target.toolName}`);

11371109

}

1138-

return toJsonSafe(

1110+

return toCodeModeJsonSafe(

11391111

await executeTool({

11401112

pluginId: entry.registration.pluginId,

11411113

toolName: target.toolName,

Original file line numberDiff line numberDiff line change

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

2222

isCodeModeControlTool,

2323

markCodeModeControlTool,

2424

} from "./code-mode-control-tools.js";

25+

import { toCodeModeJsonSafe } from "./code-mode-json.js";

2526

import {

2627

createCodeModeApiVirtualFiles,

2728

createCodeModeNamespaceRuntime,

@@ -287,37 +288,8 @@ function reserveActiveRunSlot(): () => void {

287288

};

288289

}

289290
290-

function toJsonSafe(value: unknown): unknown {

291-

if (value === undefined) {

292-

return null;

293-

}

294-

try {

295-

const serialized = JSON.stringify(value);

296-

return serialized === undefined ? null : (JSON.parse(serialized) as unknown);

297-

} catch {

298-

if (value instanceof Error) {

299-

return { name: value.name, message: value.message };

300-

}

301-

if (value === null) {

302-

return null;

303-

}

304-

switch (typeof value) {

305-

case "string":

306-

case "number":

307-

case "boolean":

308-

return value;

309-

case "bigint":

310-

case "symbol":

311-

case "function":

312-

return String(value);

313-

default:

314-

return Object.prototype.toString.call(value);

315-

}

316-

}

317-

}

318-
319291

function jsonByteLength(value: unknown): number {

320-

return Buffer.byteLength(JSON.stringify(toJsonSafe(value)) ?? "null", "utf8");

292+

return Buffer.byteLength(JSON.stringify(toCodeModeJsonSafe(value)) ?? "null", "utf8");

321293

}

322294
323295

class CodeModeLimitError extends ToolInputError {

@@ -600,7 +572,7 @@ async function runBridgeRequest(params: {

600572

break;

601573

}

602574

}

603-

return { id: params.request.id, ok: true, value: toJsonSafe(value) };

575+

return { id: params.request.id, ok: true, value: toCodeModeJsonSafe(value) };

604576

} catch (error) {

605577

return { id: params.request.id, ok: false, error: errorMessage(error) };

606578

}

Original file line numberDiff line numberDiff line change

@@ -1,18 +1,14 @@

11

// Plugin Lifecycle Probe tests cover QA Lab plugin lifecycle evidence.

22

import { spawn } from "node:child_process";

33

import { randomBytes } from "node:crypto";

4-

import fs, { mkdirSync, writeFileSync } from "node:fs";

4+

import fs from "node:fs";

55

import os from "node:os";

66

import path from "node:path";

77

import { readPluginInstallRecords } from "../../../../scripts/e2e/lib/plugin-index-sqlite.mjs";

88

import { createTempDirTracker } from "../../../helpers/temp-dir.js";

99
1010

const tempDirs = createTempDirTracker();

1111
12-

function makeTempDir(): string {

13-

return tempDirs.make("openclaw-plugin-lifecycle-probe-");

14-

}

15-
1612

type ProbeEnv = Pick<NodeJS.ProcessEnv, "HOME" | "OPENCLAW_CONFIG_PATH" | "OPENCLAW_STATE_DIR">;

1713
1814

type MatrixEnv = NodeJS.ProcessEnv & ProbeEnv;