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

推荐订阅源

L
LangChain Blog
B
Blog RSS Feed
阮一峰的网络日志
阮一峰的网络日志
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
H
Help Net Security
MyScale Blog
MyScale Blog
WordPress大学
WordPress大学
Microsoft Azure Blog
Microsoft Azure Blog
GbyAI
GbyAI
小众软件
小众软件
大猫的无限游戏
大猫的无限游戏
Martin Fowler
Martin Fowler
Vercel News
Vercel News
S
SegmentFault 最新的问题
M
MIT News - Artificial intelligence
Microsoft Security Blog
Microsoft Security Blog
G
Google Developers Blog
Last Week in AI
Last Week in AI
Hugging Face - Blog
Hugging Face - Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 【当耐特】
Google DeepMind News
Google DeepMind News
Engineering at Meta
Engineering at Meta
云风的 BLOG
云风的 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
fix(ui): harden Workboard dialog accessibility · openclaw...
BunsDev · 2026-06-03 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -1659,7 +1659,7 @@ function remoteAwsMacosJsBootstrap({ packageManager = false } = {}) {

16591659

'mkdir -p "$tool_root" || { status=$?; return "$status"; };',

16601660

'install_lock="$tool_root/.node-${node_version}-${node_arch}.lock";',

16611661

"lock_acquired=0;",

1662-

'lock_deadline=$((SECONDS + 300));',

1662+

"lock_deadline=$((SECONDS + 300));",

16631663

"while true; do",

16641664

'if mkdir "$install_lock" 2>/dev/null; then lock_acquired=1; printf "%s\\n" "$$" >"$install_lock/pid" || { status=$?; rm -rf "$install_lock"; return "$status"; }; break; fi;',

16651665

'if [ -x "$node_dir/bin/node" ] && [ -f "$ready_marker" ]; then break; fi;',

@@ -1668,11 +1668,11 @@ function remoteAwsMacosJsBootstrap({ packageManager = false } = {}) {

16681668

'if [ -n "$lock_pid" ] && kill -0 "$lock_pid" 2>/dev/null; then echo "timed out waiting for active macOS Node toolchain install lock: $install_lock pid=$lock_pid" >&2; return 1; fi;',

16691669

'echo "reclaiming stale macOS Node toolchain install lock: $install_lock" >&2;',

16701670

'rm -rf "$install_lock" || return 1;',

1671-

'lock_deadline=$((SECONDS + 300));',

1671+

"lock_deadline=$((SECONDS + 300));",

16721672

"fi;",

16731673

"sleep 1;",

16741674

"done;",

1675-

"release_install_lock() { if [ \"$lock_acquired\" = \"1\" ]; then rm -rf \"$install_lock\" 2>/dev/null || true; fi; };",

1675+

'release_install_lock() { if [ "$lock_acquired" = "1" ]; then rm -rf "$install_lock" 2>/dev/null || true; fi; };',

16761676

'if [ ! -x "$node_dir/bin/node" ] || [ ! -f "$ready_marker" ]; then',

16771677

'tmp_dir="$(mktemp -d)" || { release_install_lock; return 1; };',

16781678

'pkg="node-v${node_version}-darwin-${node_arch}.tar.gz";',

@@ -1948,7 +1948,9 @@ function parseNonNegativeIntegerEnv(name, fallback, unit) {

19481948

}

19491949

const parsed = Number(raw);

19501950

if (!Number.isSafeInteger(parsed)) {

1951-

throw new Error(`${name} must be a safe non-negative integer ${unit}, got ${JSON.stringify(raw)}`);

1951+

throw new Error(

1952+

`${name} must be a safe non-negative integer ${unit}, got ${JSON.stringify(raw)}`,

1953+

);

19521954

}

19531955

return parsed;

19541956

}

Original file line numberDiff line numberDiff line change

@@ -6,8 +6,8 @@ import path from "node:path";

66

import { setTimeout as delay } from "node:timers/promises";

77

import { pathToFileURL } from "node:url";

88

import { promisify } from "node:util";

9-

import type { GatewayRpcClient } from "./mcp-channels-harness.ts";

109

import { readPositiveIntEnv } from "./lib/env-limits.mjs";

10+

import type { GatewayRpcClient } from "./mcp-channels-harness.ts";

1111
1212

const execFileAsync = promisify(execFile);

1313

const PROBE_PID_WAIT_MS = readCronMcpCleanupProbePidWaitMs();

Original file line numberDiff line numberDiff line change

@@ -325,10 +325,8 @@ class LinuxSmoke extends SmokeRunController<LinuxOptions> {

325325

);

326326

await this.phase("fresh.gateway-status", 240, () => this.verifyGatewayStatus());

327327

this.status.freshGateway = "pass";

328-

await this.phase(

329-

"fresh.first-local-agent-turn",

330-

this.agentTimeoutSeconds,

331-

() => this.verifyLocalTurn(),

328+

await this.phase("fresh.first-local-agent-turn", this.agentTimeoutSeconds, () =>

329+

this.verifyLocalTurn(),

332330

);

333331

this.status.freshAgent = "pass";

334332

}

@@ -357,10 +355,8 @@ class LinuxSmoke extends SmokeRunController<LinuxOptions> {

357355

);

358356

await this.phase("upgrade.gateway-status", 240, () => this.verifyGatewayStatus());

359357

this.status.upgradeGateway = "pass";

360-

await this.phase(

361-

"upgrade.first-local-agent-turn",

362-

this.agentTimeoutSeconds,

363-

() => this.verifyLocalTurn(),

358+

await this.phase("upgrade.first-local-agent-turn", this.agentTimeoutSeconds, () =>

359+

this.verifyLocalTurn(),

364360

);

365361

this.status.upgradeAgent = "pass";

366362

}

Original file line numberDiff line numberDiff line change

@@ -357,11 +357,7 @@ class WindowsSmoke extends SmokeRunController<WindowsOptions> {

357357

await this.phase("fresh.gateway-restart", 420, () => this.gatewayAction("restart"));

358358

await this.phase("fresh.gateway-status", 420, () => this.verifyGatewayReachable());

359359

this.status.freshGateway = "pass";

360-

await this.phase(

361-

"fresh.first-agent-turn",

362-

this.agentTimeoutSeconds,

363-

() => this.verifyTurn(),

364-

);

360+

await this.phase("fresh.first-agent-turn", this.agentTimeoutSeconds, () => this.verifyTurn());

365361

this.status.freshAgent = "pass";

366362

}

367363

@@ -403,10 +399,8 @@ class WindowsSmoke extends SmokeRunController<WindowsOptions> {

403399

this.status.upgradePrecheck = "latest-ref-fail";

404400

}

405401

await this.phase("upgrade.gateway-stop-before-update", 420, () => this.gatewayAction("stop"));

406-

await this.phase(

407-

"upgrade.update-dev",

408-

this.updateTimeoutSeconds,

409-

() => this.runDevChannelUpdate(),

402+

await this.phase("upgrade.update-dev", this.updateTimeoutSeconds, () =>

403+

this.runDevChannelUpdate(),

410404

);

411405

this.status.upgradeVersion = await this.extractLastVersion("upgrade.update-dev");

412406

await this.phase("upgrade.verify-dev-channel", 120, () => this.verifyDevChannelUpdate());

@@ -415,11 +409,7 @@ class WindowsSmoke extends SmokeRunController<WindowsOptions> {

415409

await this.phase("upgrade.gateway-restart", 420, () => this.gatewayAction("restart"));

416410

await this.phase("upgrade.gateway-status", 420, () => this.verifyGatewayReachable());

417411

this.status.upgradeGateway = "pass";

418-

await this.phase(

419-

"upgrade.first-agent-turn",

420-

this.agentTimeoutSeconds,

421-

() => this.verifyTurn(),

422-

);

412+

await this.phase("upgrade.first-agent-turn", this.agentTimeoutSeconds, () => this.verifyTurn());

423413

this.status.upgradeAgent = "pass";

424414

}

425415
Original file line numberDiff line numberDiff line change

@@ -161,9 +161,7 @@ async function stopGateway(child) {

161161

}

162162
163163

async function closeFileHandles(handles) {

164-

const results = await Promise.allSettled(

165-

handles.filter(Boolean).map((handle) => handle.close()),

166-

);

164+

const results = await Promise.allSettled(handles.filter(Boolean).map((handle) => handle.close()));

167165

const failedClose = results.find((result) => result.status === "rejected");

168166

if (failedClose) {

169167

throw failedClose.reason;

Original file line numberDiff line numberDiff line change

@@ -185,14 +185,11 @@ function run(command, args, options = {}) {

185185

};

186186

const terminateChild = () => {

187187

killChild("SIGTERM");

188-

killTimer = setTimeout(

189-

() => {

190-

killTimer = undefined;

191-

killChild("SIGKILL");

192-

timeoutReject?.();

193-

},

194-

options.killAfterMs ?? COMMAND_TIMEOUT_KILL_AFTER_MS,

195-

);

188+

killTimer = setTimeout(() => {

189+

killTimer = undefined;

190+

killChild("SIGKILL");

191+

timeoutReject?.();

192+

}, options.killAfterMs ?? COMMAND_TIMEOUT_KILL_AFTER_MS);

196193

};

197194

const timeout =

198195

options.timeoutMs === undefined

Original file line numberDiff line numberDiff line change

@@ -1647,8 +1647,7 @@ function resolveToolingChangedTestTargets(changedPaths, cwd = process.cwd()) {

16471647

return [...new Set(targets)];

16481648

}

16491649
1650-

const TOOLING_SCRIPT_PATH_PATTERN =

1651-

/^scripts\/(.+)\.(?:mjs|cjs|js|mts|cts|ts|sh|py|ps1)$/u;

1650+

const TOOLING_SCRIPT_PATH_PATTERN = /^scripts\/(.+)\.(?:mjs|cjs|js|mts|cts|ts|sh|py|ps1)$/u;

16521651
16531652

function resolveConventionalToolingTestTargets(changedPath, cwd = process.cwd()) {

16541653

const match = TOOLING_SCRIPT_PATH_PATTERN.exec(changedPath);

Original file line numberDiff line numberDiff line change

@@ -595,10 +595,8 @@ export async function runTsdownBuildInvocation(invocation, params = {}) {

595595

"OPENCLAW_TSDOWN_TIMEOUT_MS",

596596

);

597597

const heartbeatMs =

598-

parseNonNegativeIntegerEnv(

599-

env.OPENCLAW_TSDOWN_HEARTBEAT_MS,

600-

"OPENCLAW_TSDOWN_HEARTBEAT_MS",

601-

) ?? DEFAULT_HEARTBEAT_MS;

598+

parseNonNegativeIntegerEnv(env.OPENCLAW_TSDOWN_HEARTBEAT_MS, "OPENCLAW_TSDOWN_HEARTBEAT_MS") ??

599+

DEFAULT_HEARTBEAT_MS;

602600

let timedOut = false;

603601

let settled = false;

604602

let lastOutputAt = Date.now();

Original file line numberDiff line numberDiff line change

@@ -7,6 +7,7 @@ import { fileURLToPath } from "node:url";

77

import { asOptionalRecord } from "@openclaw/normalization-core/record-coerce";

88

import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";

99

import { validateExecApprovalRequestParams } from "../../../packages/gateway-protocol/src/index.js";

10+

import { HEARTBEAT_PROMPT } from "../../auto-reply/heartbeat.js";

1011

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

1112

import { registerLegacyContextEngine } from "../../context-engine/legacy.registration.js";

1213

import {

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

2122

buildSystemRunApprovalBinding,

2223

buildSystemRunApprovalEnvBinding,

2324

} from "../../infra/system-run-approval-binding.js";

24-

import { HEARTBEAT_PROMPT } from "../../auto-reply/heartbeat.js";

2525

import { resetLogger, setLoggerOverride } from "../../logging.js";

2626

import { projectRecentChatDisplayMessages } from "../chat-display-projection.js";

2727

import { ExecApprovalManager } from "../exec-approval-manager.js";

Original file line numberDiff line numberDiff line change

@@ -458,18 +458,18 @@ describe("runNpmReleaseCheckCommand", () => {

458458

describe("resolveNpmReleaseCheckCommandTimeoutMs", () => {

459459

it("parses only positive integer environment timeouts", () => {

460460

expect(resolveNpmReleaseCheckCommandTimeoutMs({})).toBe(10 * 60 * 1000);

461-

expect(resolveNpmReleaseCheckCommandTimeoutMs({ OPENCLAW_NPM_RELEASE_CHECK_COMMAND_TIMEOUT_MS: "" })).toBe(

462-

10 * 60 * 1000,

463-

);

461+

expect(

462+

resolveNpmReleaseCheckCommandTimeoutMs({ OPENCLAW_NPM_RELEASE_CHECK_COMMAND_TIMEOUT_MS: "" }),

463+

).toBe(10 * 60 * 1000);

464464

expect(

465465

resolveNpmReleaseCheckCommandTimeoutMs({

466466

OPENCLAW_NPM_RELEASE_CHECK_COMMAND_TIMEOUT_MS: "1234",

467467

}),

468468

).toBe(1234);

469469
470470

for (const raw of ["nope", "10m", "1e3", "0", "-1", "9007199254740992"]) {

471-

expect(

472-

() => resolveNpmReleaseCheckCommandTimeoutMs({

471+

expect(() =>

472+

resolveNpmReleaseCheckCommandTimeoutMs({

473473

OPENCLAW_NPM_RELEASE_CHECK_COMMAND_TIMEOUT_MS: raw,

474474

}),

475475

).toThrow(`invalid OPENCLAW_NPM_RELEASE_CHECK_COMMAND_TIMEOUT_MS: ${raw}`);