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

推荐订阅源

爱范儿
爱范儿
博客园_首页
U
Unit 42
Apple Machine Learning Research
Apple Machine Learning Research
云风的 BLOG
云风的 BLOG
MongoDB | Blog
MongoDB | Blog
美团技术团队
H
Help Net Security
G
Google Developers Blog
B
Blog RSS Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
aimingoo的专栏
aimingoo的专栏
Google DeepMind News
Google DeepMind News
J
Java Code Geeks
M
MIT News - Artificial intelligence
腾讯CDC
IT之家
IT之家
Vercel News
Vercel News
C
Check Point Blog
博客园 - 三生石上(FineUI控件)
Last Week in AI
Last Week in AI
I
InfoQ
博客园 - 司徒正美
A
About on SuperTechFans

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
perf: reduce agent turn CPU overhead · openclaw/openclaw@...
steipete · 2026-05-28 · via Recent Commits to openclaw:main

@@ -1277,13 +1277,44 @@ const shouldSkipWatchRuntimeSync = (deps, requirement) =>

12771277

!hasMissingRequiredRuntimePostBuildOutput(deps);

1278127812791279

const isGatewayClientCommand = (args) =>

1280-

args[0] === "gateway" && (args[1] === "call" || args[1] === "status");

1280+

(args[0] === "gateway" && (args[1] === "call" || args[1] === "status")) ||

1281+

(args[0] === "agent" && !args.includes("--local"));

128112821282-

const shouldUseExistingDistForGatewayClient = (deps, buildRequirement) =>

1283-

buildRequirement.reason === "dirty_watched_tree" &&

1283+

const shouldFastPathExistingDistForGatewayClient = (deps) =>

12841284

isGatewayClientCommand(deps.args) &&

12851285

deps.env.OPENCLAW_FORCE_BUILD !== "1" &&

1286-

statMtime(deps.distEntry, deps.fs) != null;

1286+

statMtime(deps.distEntry, deps.fs) != null &&

1287+

canUseStampedGatewayClientDist(deps);

1288+1289+

const canUseStampedGatewayClientDist = (deps) => {

1290+

const currentHead = resolveGitHead(deps);

1291+

if (!currentHead) {

1292+

return false;

1293+

}

1294+

const buildStamp = readBuildStamp(deps);

1295+

if (buildStamp.mtime == null || buildStamp.head !== currentHead) {

1296+

return false;

1297+

}

1298+

for (const filePath of deps.configFiles) {

1299+

const mtime = statMtime(filePath, deps.fs);

1300+

if (mtime != null && mtime > buildStamp.mtime) {

1301+

return false;

1302+

}

1303+

}

1304+

if (hasMissingBuiltBundledPluginRuntimeEntryOutput(deps)) {

1305+

return false;

1306+

}

1307+

const runtimeStamp = readRuntimePostBuildStamp(deps);

1308+

if (

1309+

runtimeStamp.mtime == null ||

1310+

runtimeStamp.mtime < buildStamp.mtime ||

1311+

runtimeStamp.head !== currentHead ||

1312+

deps.env.OPENCLAW_FORCE_RUNTIME_POSTBUILD === "1"

1313+

) {

1314+

return false;

1315+

}

1316+

return !resolveRuntimePostBuildRequirement(deps).shouldSync;

1317+

};

1287131812881319

const isQaParityReportCommand = (args) => args[0] === "qa" && args[1] === "parity-report";

12891320

const isQaCoverageReportCommand = (args) => args[0] === "qa" && args[1] === "coverage";

@@ -1374,16 +1405,13 @@ export async function runNodeMain(params = {}) {

1374140513751406

try {

13761407

let exitCode = 1;

1377-

let buildRequirement = resolveBuildRequirement(deps);

1378-

const useExistingGatewayClientDist = shouldUseExistingDistForGatewayClient(

1379-

deps,

1380-

buildRequirement,

1381-

);

1408+

if (shouldFastPathExistingDistForGatewayClient(deps)) {

1409+

exitCode = await runOpenClaw(deps);

1410+

return await closeRunNodeOutputTee(deps, exitCode);

1411+

}

1412+

const buildRequirement = resolveBuildRequirement(deps);

13821413

const useQaParityReportSource = shouldRunQaParityReportFromSource(deps, buildRequirement);

13831414

const useQaCoverageReportSource = shouldRunQaCoverageReportFromSource(deps, buildRequirement);

1384-

if (useExistingGatewayClientDist) {

1385-

buildRequirement = { shouldBuild: false, reason: "gateway_client_existing_dist" };

1386-

}

13871415

if (useQaParityReportSource) {

13881416

logRunner("Running QA parity report from source without rebuilding private QA dist.", deps);

13891417

exitCode = await runQaParityReportFromSource(deps);

@@ -1395,26 +1423,24 @@ export async function runNodeMain(params = {}) {

13951423

return await closeRunNodeOutputTee(deps, exitCode);

13961424

}

13971425

if (!buildRequirement.shouldBuild) {

1398-

if (!useExistingGatewayClientDist) {

1399-

const runtimePostBuildRequirement = resolveRuntimePostBuildRequirement(deps);

1400-

if (

1401-

runtimePostBuildRequirement.shouldSync &&

1402-

!shouldSkipWatchRuntimeSync(deps, runtimePostBuildRequirement)

1403-

) {

1404-

const synced = await withRunNodeBuildLock(deps, async () => {

1405-

const lockedRuntimePostBuildRequirement = resolveRuntimePostBuildRequirement(deps);

1406-

if (!lockedRuntimePostBuildRequirement.shouldSync) {

1407-

return true;

1408-

}

1409-

logRunner(

1410-

`Syncing runtime artifacts (${lockedRuntimePostBuildRequirement.reason} - ${formatRuntimePostBuildReason(lockedRuntimePostBuildRequirement.reason)}).`,

1411-

deps,

1412-

);

1413-

return await syncRuntimeArtifactsAndStamp(deps);

1414-

});

1415-

if (!synced) {

1416-

return await closeRunNodeOutputTee(deps, 1);

1426+

const runtimePostBuildRequirement = resolveRuntimePostBuildRequirement(deps);

1427+

if (

1428+

runtimePostBuildRequirement.shouldSync &&

1429+

!shouldSkipWatchRuntimeSync(deps, runtimePostBuildRequirement)

1430+

) {

1431+

const synced = await withRunNodeBuildLock(deps, async () => {

1432+

const lockedRuntimePostBuildRequirement = resolveRuntimePostBuildRequirement(deps);

1433+

if (!lockedRuntimePostBuildRequirement.shouldSync) {

1434+

return true;

14171435

}

1436+

logRunner(

1437+

`Syncing runtime artifacts (${lockedRuntimePostBuildRequirement.reason} - ${formatRuntimePostBuildReason(lockedRuntimePostBuildRequirement.reason)}).`,

1438+

deps,

1439+

);

1440+

return await syncRuntimeArtifactsAndStamp(deps);

1441+

});

1442+

if (!synced) {

1443+

return await closeRunNodeOutputTee(deps, 1);

14181444

}

14191445

}

14201446

exitCode = await runOpenClaw(deps);