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

推荐订阅源

Engineering at Meta
Engineering at Meta
T
Threatpost
P
Palo Alto Networks Blog
NISL@THU
NISL@THU
O
OpenAI News
Project Zero
Project Zero
G
GRAHAM CLULEY
P
Privacy International News Feed
A
Arctic Wolf
Microsoft Azure Blog
Microsoft Azure Blog
H
Help Net Security
M
MIT News - Artificial intelligence
T
Threat Research - Cisco Blogs
S
Security @ Cisco Blogs
Google DeepMind News
Google DeepMind News
B
Blog RSS Feed
D
Docker
aimingoo的专栏
aimingoo的专栏
博客园 - 【当耐特】
N
Netflix TechBlog - Medium
云风的 BLOG
云风的 BLOG
雷峰网
雷峰网
W
WeLiveSecurity
P
Proofpoint News Feed
腾讯CDC
Cloudbric
Cloudbric
S
Secure Thoughts
C
Check Point Blog
博客园 - Franky
T
The Exploit Database - CXSecurity.com
T
Troy Hunt's Blog
GbyAI
GbyAI
Security Archives - TechRepublic
Security Archives - TechRepublic
Application and Cybersecurity Blog
Application and Cybersecurity Blog
月光博客
月光博客
C
Cyber Attacks, Cyber Crime and Cyber Security
I
Intezer
TaoSecurity Blog
TaoSecurity Blog
L
Lohrmann on Cybersecurity
V
Visual Studio Blog
F
Fortinet All Blogs
博客园 - 叶小钗
C
CXSECURITY Database RSS Feed - CXSecurity.com
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Recorded Future
Recorded Future
C
Cisco Blogs
博客园 - 司徒正美
Stack Overflow Blog
Stack Overflow Blog
Y
Y Combinator Blog
Apple Machine Learning Research
Apple Machine Learning Research

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
chore(lint): enable stricter error rules · openclaw/openclaw@27dde7a
steipete · 2026-06-01 · via Recent Commits to openclaw:main

File tree

    • mattermost/src/mattermost

        • bundled-plugin-install-uninstall

        • openai-web-search-minimal

Original file line numberDiff line numberDiff line change

@@ -82,7 +82,10 @@

8282

"typescript/no-meaningless-void-operator": "error",

8383

"typescript/no-misused-promises": "error",

8484

"typescript/no-inferrable-types": "error",

85+

"typescript/only-throw-error": "error",

8586

"typescript/no-non-null-asserted-nullish-coalescing": "error",

87+

"typescript/prefer-promise-reject-errors": "error",

88+

"typescript/restrict-plus-operands": "error",

8689

"typescript/no-unnecessary-qualifier": "error",

8790

"typescript/no-unnecessary-type-assertion": "error",

8891

"typescript/no-unnecessary-type-arguments": "error",

@@ -109,6 +112,8 @@

109112

"typescript/require-array-sort-compare": "error",

110113

"typescript/restrict-template-expressions": "error",

111114

"typescript/triple-slash-reference": "error",

115+

"typescript/unbound-method": "error",

116+

"typescript/use-unknown-in-catch-callback-variable": "error",

112117

"unicorn/consistent-date-clone": "error",

113118

"unicorn/consistent-empty-array-spread": "error",

114119

"unicorn/consistent-function-scoping": "off",

@@ -128,6 +133,7 @@

128133

"unicorn/no-unnecessary-slice-end": "error",

129134

"unicorn/no-useless-error-capture-stack-trace": "error",

130135

"unicorn/no-useless-promise-resolve-reject": "error",

136+

"unicorn/no-useless-switch-case": "error",

131137

"unicorn/no-zero-fractions": "error",

132138

"unicorn/prefer-date-now": "error",

133139

"unicorn/prefer-dom-node-text-content": "error",

Original file line numberDiff line numberDiff line change

@@ -68,7 +68,7 @@ class LegacyRunTurnEventQueue {

6868

return item;

6969

}

7070

if (this.error) {

71-

throw this.error;

71+

throw toLintErrorObject(this.error, "Non-Error thrown");

7272

}

7373

if (this.closed) {

7474

return null;

@@ -178,3 +178,17 @@ export function lazyStartRuntimeTurn(

178178

},

179179

};

180180

}

181+
182+

function toLintErrorObject(value: unknown, fallbackMessage: string): Error {

183+

if (value instanceof Error) {

184+

return value;

185+

}

186+

if (typeof value === "string") {

187+

return new Error(value);

188+

}

189+

const error = new Error(fallbackMessage, { cause: value });

190+

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

191+

Object.assign(error, value);

192+

}

193+

return error;

194+

}

Original file line numberDiff line numberDiff line change

@@ -286,7 +286,7 @@ describe("AcpxRuntime fresh reset wrapper", () => {

286286

})

287287

.then(

288288

() => ({ status: "resolved" as const }),

289-

(error) => ({ status: "rejected" as const, error }),

289+

(error: unknown) => ({ status: "rejected" as const, error }),

290290

);

291291
292292

expect(outcome.status).toBe("rejected");

@@ -298,7 +298,12 @@ describe("AcpxRuntime fresh reset wrapper", () => {

298298

code: "ACP_SESSION_INIT_FAILED",

299299

message: expect.stringContaining("deployment missing"),

300300

});

301-

expect(outcome.error.message).not.toContain("sk-testsecret1234567890");

301+

const error = outcome.error;

302+

expect(error).toBeInstanceOf(AcpRuntimeError);

303+

if (!(error instanceof AcpRuntimeError)) {

304+

throw new Error("expected AcpRuntimeError");

305+

}

306+

expect(error.message).not.toContain("sk-testsecret1234567890");

302307

});

303308
304309

it("adds Codex wrapper stderr tail to generic first-turn failures", async () => {

Original file line numberDiff line numberDiff line change

@@ -218,13 +218,21 @@ describe("active-memory plugin", () => {

218218

};

219219

const waitForAbort = async (abortSignal?: AbortSignal): Promise<never> => {

220220

if (abortSignal?.aborted) {

221-

throw (abortSignal.reason as unknown) ?? new Error("Operation aborted");

221+

throw toLintErrorObject(

222+

(abortSignal.reason as unknown) ?? new Error("Operation aborted"),

223+

"Non-Error thrown",

224+

);

222225

}

223226

return await new Promise<never>((_resolve, reject) => {

224227

abortSignal?.addEventListener(

225228

"abort",

226229

() => {

227-

reject((abortSignal.reason as unknown) ?? new Error("Operation aborted"));

230+

reject(

231+

toLintErrorObject(

232+

(abortSignal.reason as unknown) ?? new Error("Operation aborted"),

233+

"Non-Error rejection",

234+

),

235+

);

228236

},

229237

{ once: true },

230238

);

@@ -4350,3 +4358,17 @@ describe("active-memory plugin", () => {

43504358

expect(config.circuitBreakerCooldownMs).toBe(5000);

43514359

});

43524360

});

4361+
4362+

function toLintErrorObject(value: unknown, fallbackMessage: string): Error {

4363+

if (value instanceof Error) {

4364+

return value;

4365+

}

4366+

if (typeof value === "string") {

4367+

return new Error(value);

4368+

}

4369+

const error = new Error(fallbackMessage, { cause: value });

4370+

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

4371+

Object.assign(error, value);

4372+

}

4373+

return error;

4374+

}

Original file line numberDiff line numberDiff line change

@@ -1011,7 +1011,6 @@ function buildPromptStyleLines(style: ActiveMemoryPromptStyle): string[] {

10111011

"If relevant memory is mostly a stable user preference or recurring habit, lean toward returning it.",

10121012

"If the strongest match is only a one-off historical fact and not a recurring preference or habit, prefer NONE unless the latest user message clearly asks for that fact.",

10131013

];

1014-

case "balanced":

10151014

default:

10161015

return [

10171016

"Treat the latest user message as the primary query.",

@@ -1982,7 +1981,7 @@ async function waitForSubagentPartialTimeoutData(

19821981

(await Promise.race([

19831982

subagentPromise.then(

19841983

() => undefined,

1985-

(error) => readPartialTimeoutData(error),

1984+

(error: unknown) => readPartialTimeoutData(error),

19861985

),

19871986

timeoutPromise,

19881987

])) ?? {}

Original file line numberDiff line numberDiff line change

@@ -571,7 +571,7 @@ export async function startGatewayBonjourAdvertiser(

571571

.then(() => {

572572

logger.info(`bonjour: advertised ${serviceSummary(label, svc)}`);

573573

})

574-

.catch((err) => {

574+

.catch((err: unknown) => {

575575

handleAdvertiseFailure(label, svc, err, "failed");

576576

});

577577

} catch (err) {

@@ -747,7 +747,7 @@ export async function startGatewayBonjourAdvertiser(

747747

)})`,

748748

);

749749

try {

750-

void svc.advertise().catch((err) => {

750+

void svc.advertise().catch((err: unknown) => {

751751

logger.warn(

752752

`bonjour: watchdog re-advertise failed (${serviceSummary(label, svc)}): ${formatBonjourError(err)}`,

753753

);

Original file line numberDiff line numberDiff line change

@@ -416,7 +416,8 @@ describe("cdp.helpers internal", () => {

416416

await expect(

417417

withCdpSocket(server.url, async (send) => {

418418

await send("Test.ok");

419-

const rejectRawString = () => Promise.reject("raw-string-from-callback");

419+

const rejectRawString = () =>

420+

Promise.reject(toLintErrorObject("raw-string-from-callback", "Non-Error rejection"));

420421

return rejectRawString();

421422

}),

422423

).rejects.toThrow(/raw-string-from-callback/);

@@ -572,3 +573,17 @@ describe("openCdpWebSocket option handling", () => {

572573

ws.close();

573574

});

574575

});

576+
577+

function toLintErrorObject(value: unknown, fallbackMessage: string): Error {

578+

if (value instanceof Error) {

579+

return value;

580+

}

581+

if (typeof value === "string") {

582+

return new Error(value);

583+

}

584+

const error = new Error(fallbackMessage, { cause: value });

585+

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

586+

Object.assign(error, value);

587+

}

588+

return error;

589+

}

Original file line numberDiff line numberDiff line change

@@ -258,7 +258,7 @@ function extractJsonMessage(result: ChromeMcpToolResult): unknown {

258258

}

259259

}

260260

if (lastError) {

261-

throw lastError;

261+

throw toLintErrorObject(lastError, "Non-Error thrown");

262262

}

263263

return null;

264264

}

@@ -629,7 +629,7 @@ async function closeChromeMcpClientAndProcess(params: {

629629

return;

630630

}

631631

await params.client.close().catch(() => {});

632-

await terminateChromeMcpProcessTree(rootPid, descendantPids).catch((err) => {

632+

await terminateChromeMcpProcessTree(rootPid, descendantPids).catch((err: unknown) => {

633633

log.trace(

634634

`Unable to fully terminate Chrome MCP subprocess tree for pid ${rootPid}: ${err instanceof Error ? err.message : String(err)}`,

635635

);

@@ -761,7 +761,8 @@ async function waitForChromeMcpReady(

761761

if (signal) {

762762

racers.push(

763763

new Promise<never>((_, reject) => {

764-

abortListener = () => reject(signal.reason ?? new Error("aborted"));

764+

abortListener = () =>

765+

reject(toLintErrorObject(signal.reason ?? new Error("aborted"), "Non-Error rejection"));

765766

signal.addEventListener("abort", abortListener, { once: true });

766767

}),

767768

);

@@ -793,7 +794,8 @@ async function waitForChromeMcpPendingSession(

793794

return await Promise.race([

794795

pending,

795796

new Promise<never>((_, reject) => {

796-

abortListener = () => reject(signal.reason ?? new Error("aborted"));

797+

abortListener = () =>

798+

reject(toLintErrorObject(signal.reason ?? new Error("aborted"), "Non-Error rejection"));

797799

signal.addEventListener("abort", abortListener, { once: true });

798800

}),

799801

]);

@@ -1022,7 +1024,8 @@ async function callTool(

10221024

if (signal) {

10231025

racers.push(

10241026

new Promise<never>((_, reject) => {

1025-

abortListener = () => reject(signal.reason ?? new Error("aborted"));

1027+

abortListener = () =>

1028+

reject(toLintErrorObject(signal.reason ?? new Error("aborted"), "Non-Error rejection"));

10261029

signal.addEventListener("abort", abortListener, { once: true });

10271030

}),

10281031

);

@@ -1540,3 +1543,17 @@ export async function resetChromeMcpSessionsForTest(): Promise<void> {

15401543

await stopAllChromeMcpSessions();

15411544

chromeMcpProcessCleanupDepsForTest = null;

15421545

}

1546+
1547+

function toLintErrorObject(value: unknown, fallbackMessage: string): Error {

1548+

if (value instanceof Error) {

1549+

return value;

1550+

}

1551+

if (typeof value === "string") {

1552+

return new Error(value);

1553+

}

1554+

const error = new Error(fallbackMessage, { cause: value });

1555+

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

1556+

Object.assign(error, value);

1557+

}

1558+

return error;

1559+

}

Original file line numberDiff line numberDiff line change

@@ -315,9 +315,17 @@ export async function fetchBrowserJson<T>(

315315
316316

let abortListener: (() => void) | undefined;

317317

const abortPromise: Promise<never> = abortCtrl.signal.aborted

318-

? Promise.reject(abortCtrl.signal.reason ?? new Error("aborted"))

318+

? Promise.reject(

319+

toLintErrorObject(abortCtrl.signal.reason ?? new Error("aborted"), "Non-Error rejection"),

320+

)

319321

: new Promise((_, reject) => {

320-

abortListener = () => reject(abortCtrl.signal.reason ?? new Error("aborted"));

322+

abortListener = () =>

323+

reject(

324+

toLintErrorObject(

325+

abortCtrl.signal.reason ?? new Error("aborted"),

326+

"Non-Error rejection",

327+

),

328+

);

321329

abortCtrl.signal.addEventListener("abort", abortListener, { once: true });

322330

});

323331

@@ -382,3 +390,17 @@ export const testApi = {

382390

withLoopbackBrowserAuth: withLoopbackBrowserAuthImpl,

383391

};

384392

export { testApi as __test };

393+
394+

function toLintErrorObject(value: unknown, fallbackMessage: string): Error {

395+

if (value instanceof Error) {

396+

return value;

397+

}

398+

if (typeof value === "string") {

399+

return new Error(value);

400+

}

401+

const error = new Error(fallbackMessage, { cause: value });

402+

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

403+

Object.assign(error, value);

404+

}

405+

return error;

406+

}

Original file line numberDiff line numberDiff line change

@@ -1359,12 +1359,12 @@ export async function gotoPageWithNavigationGuard(

13591359

try {

13601360

const response = await opts.page.goto(opts.url, { timeout: opts.timeoutMs });

13611361

if (blockedError) {

1362-

throw blockedError;

1362+

throw toLintErrorObject(blockedError, "Non-Error thrown");

13631363

}

13641364

return response;

13651365

} catch (err) {

13661366

if (blockedError) {

1367-

throw blockedError;

1367+

throw toLintErrorObject(blockedError, "Non-Error thrown");

13681368

}

13691369

throw err;

13701370

} finally {

@@ -1813,3 +1813,17 @@ export async function focusPageByTargetIdViaPlaywright(opts: {

18131813

}

18141814

}

18151815

}

1816+
1817+

function toLintErrorObject(value: unknown, fallbackMessage: string): Error {

1818+

if (value instanceof Error) {

1819+

return value;

1820+

}

1821+

if (typeof value === "string") {

1822+

return new Error(value);

1823+

}

1824+

const error = new Error(fallbackMessage, { cause: value });

1825+

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

1826+

Object.assign(error, value);

1827+

}

1828+

return error;

1829+

}