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

推荐订阅源

H
Help Net Security
月光博客
月光博客
IT之家
IT之家
B
Blog RSS Feed
T
Tailwind CSS Blog
The GitHub Blog
The GitHub Blog
博客园 - 三生石上(FineUI控件)
MyScale Blog
MyScale Blog
J
Java Code Geeks
Stack Overflow Blog
Stack Overflow Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - Franky
博客园 - 叶小钗
阮一峰的网络日志
阮一峰的网络日志
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
U
Unit 42
博客园_首页
B
Blog
V
V2EX
腾讯CDC
Vercel News
Vercel News
量子位
Microsoft Security Blog
Microsoft Security 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: propagate update timeout to plugin installs · opencl...
steipete · 2026-04-26 · via Recent Commits to openclaw:main

@@ -89,6 +89,7 @@ import { suppressDeprecations } from "./suppress-deprecations.js";

89899090

const CLI_NAME = resolveCliName();

9191

const SERVICE_REFRESH_TIMEOUT_MS = 60_000;

92+

const DEFAULT_UPDATE_STEP_TIMEOUT_MS = 20 * 60_000;

9293

const POST_CORE_UPDATE_ENV = "OPENCLAW_UPDATE_POST_CORE";

9394

const POST_CORE_UPDATE_CHANNEL_ENV = "OPENCLAW_UPDATE_POST_CORE_CHANNEL";

9495

const POST_CORE_UPDATE_RESULT_PATH_ENV = "OPENCLAW_UPDATE_POST_CORE_RESULT_PATH";

@@ -455,7 +456,7 @@ async function runGitUpdate(params: {

455456

devTargetRef?: string;

456457

}): Promise<UpdateRunResult> {

457458

const updateRoot = params.switchToGit ? resolveGitInstallDir() : params.root;

458-

const effectiveTimeout = params.timeoutMs ?? 20 * 60_000;

459+

const effectiveTimeout = params.timeoutMs ?? DEFAULT_UPDATE_STEP_TIMEOUT_MS;

459460

const installEnv = await createGlobalInstallEnv();

460461461462

const cloneStep = params.switchToGit

@@ -537,6 +538,7 @@ async function updatePluginsAfterCoreUpdate(params: {

537538

channel: "stable" | "beta" | "dev";

538539

configSnapshot: Awaited<ReturnType<typeof readConfigFileSnapshot>>;

539540

opts: UpdateCommandOptions;

541+

timeoutMs: number;

540542

}): Promise<PostCorePluginUpdateResult> {

541543

if (!params.configSnapshot.valid) {

542544

if (!params.opts.json) {

@@ -589,6 +591,7 @@ async function updatePluginsAfterCoreUpdate(params: {

589591590592

const npmResult = await updateNpmInstalledPlugins({

591593

config: pluginConfig,

594+

timeoutMs: params.timeoutMs,

592595

skipIds: new Set(syncResult.summary.switchedToNpm),

593596

logger: pluginLogger,

594597

onIntegrityDrift: async (drift) => {

@@ -896,12 +899,14 @@ async function runPostCorePluginUpdate(params: {

896899

channel: "stable" | "beta" | "dev";

897900

configSnapshot: Awaited<ReturnType<typeof readConfigFileSnapshot>>;

898901

opts: UpdateCommandOptions;

902+

timeoutMs: number;

899903

}): Promise<PostCorePluginUpdateResult> {

900904

return await updatePluginsAfterCoreUpdate({

901905

root: params.root,

902906

channel: params.channel,

903907

configSnapshot: params.configSnapshot,

904908

opts: params.opts,

909+

timeoutMs: params.timeoutMs,

905910

});

906911

}

907912

@@ -954,6 +959,9 @@ async function continuePostCoreUpdateInFreshProcess(params: {

954959

if (params.opts.yes) {

955960

argv.push("--yes");

956961

}

962+

if (params.opts.timeout) {

963+

argv.push("--timeout", params.opts.timeout);

964+

}

957965

const resultDir =

958966

params.opts.json === true

959967

? await fs.mkdtemp(path.join(os.tmpdir(), "openclaw-update-post-core-"))

@@ -1018,6 +1026,7 @@ export async function updateCommand(opts: UpdateCommandOptions): Promise<void> {

10181026

if (timeoutMs === null) {

10191027

return;

10201028

}

1029+

const updateStepTimeoutMs = timeoutMs ?? DEFAULT_UPDATE_STEP_TIMEOUT_MS;

1021103010221031

const root = await resolveUpdateRoot();

10231032

if (postCoreUpdateResume) {

@@ -1036,6 +1045,7 @@ export async function updateCommand(opts: UpdateCommandOptions): Promise<void> {

10361045

channel: postCoreUpdateChannel,

10371046

configSnapshot: await readConfigFileSnapshot(),

10381047

opts,

1048+

timeoutMs: updateStepTimeoutMs,

10391049

});

10401050

if (opts.json) {

10411051

await writePostCorePluginUpdateResultFile(

@@ -1146,7 +1156,7 @@ export async function updateCommand(opts: UpdateCommandOptions): Promise<void> {

11461156

mode = await resolveGlobalManager({

11471157

root,

11481158

installKind,

1149-

timeoutMs: timeoutMs ?? 20 * 60_000,

1159+

timeoutMs: updateStepTimeoutMs,

11501160

});

11511161

}

11521162

@@ -1271,7 +1281,7 @@ export async function updateCommand(opts: UpdateCommandOptions): Promise<void> {

12711281

root,

12721282

installKind,

12731283

tag,

1274-

timeoutMs: timeoutMs ?? 20 * 60_000,

1284+

timeoutMs: updateStepTimeoutMs,

12751285

startedAt,

12761286

progress,

12771287

jsonMode: Boolean(opts.json),

@@ -1414,6 +1424,7 @@ export async function updateCommand(opts: UpdateCommandOptions): Promise<void> {

14141424

channel,

14151425

configSnapshot: postUpdateConfigSnapshot,

14161426

opts,

1427+

timeoutMs: updateStepTimeoutMs,

14171428

});

14181429

}

14191430