From 1be39ac84717a776b4fe88a64a7b6b8743bf9857 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sun, 26 Apr 2026 10:46:55 +0100 Subject: [PATCH] fix: increase update step timeout --- docs/cli/update.md | 4 ++-- src/cli/update-cli.ts | 4 ++-- src/cli/update-cli/update-command.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/cli/update.md b/docs/cli/update.md index e05e4315642..462ca89e243 100644 --- a/docs/cli/update.md +++ b/docs/cli/update.md @@ -39,7 +39,7 @@ openclaw --update - `--json`: print machine-readable `UpdateRunResult` JSON, including `postUpdate.plugins.integrityDrifts` when npm plugin artifact drift is detected during post-update plugin sync. -- `--timeout `: per-step timeout (default is 1200s). +- `--timeout `: per-step timeout (default is 1800s). - `--yes`: skip confirmation prompts (for example downgrade confirmation) Note: downgrades require confirmation because older versions can break configuration. @@ -67,7 +67,7 @@ offers to create one. Options: -- `--timeout `: timeout for each update step (default `1200`) +- `--timeout `: timeout for each update step (default `1800`) ## What it does diff --git a/src/cli/update-cli.ts b/src/cli/update-cli.ts index 2413de7fdb6..554e7963c11 100644 --- a/src/cli/update-cli.ts +++ b/src/cli/update-cli.ts @@ -44,7 +44,7 @@ export function registerUpdateCli(program: Command) { "--tag ", "Override the package target for this update (dist-tag, version, or package spec)", ) - .option("--timeout ", "Timeout for each update step in seconds (default: 1200)") + .option("--timeout ", "Timeout for each update step in seconds (default: 1800)") .option("--yes", "Skip confirmation prompts (non-interactive)", false) .addHelpText("after", () => { const examples = [ @@ -109,7 +109,7 @@ ${theme.muted("Docs:")} ${formatDocsLink("/cli/update", "docs.openclaw.ai/cli/up update .command("wizard") .description("Interactive update wizard") - .option("--timeout ", "Timeout for each update step in seconds (default: 1200)") + .option("--timeout ", "Timeout for each update step in seconds (default: 1800)") .addHelpText( "after", `\n${theme.muted("Docs:")} ${formatDocsLink("/cli/update", "docs.openclaw.ai/cli/update")}\n`, diff --git a/src/cli/update-cli/update-command.ts b/src/cli/update-cli/update-command.ts index 9c911ab05c7..d2250ddc2b8 100644 --- a/src/cli/update-cli/update-command.ts +++ b/src/cli/update-cli/update-command.ts @@ -89,7 +89,7 @@ import { suppressDeprecations } from "./suppress-deprecations.js"; const CLI_NAME = resolveCliName(); const SERVICE_REFRESH_TIMEOUT_MS = 60_000; -const DEFAULT_UPDATE_STEP_TIMEOUT_MS = 20 * 60_000; +const DEFAULT_UPDATE_STEP_TIMEOUT_MS = 30 * 60_000; const POST_CORE_UPDATE_ENV = "OPENCLAW_UPDATE_POST_CORE"; const POST_CORE_UPDATE_CHANNEL_ENV = "OPENCLAW_UPDATE_POST_CORE_CHANNEL"; const POST_CORE_UPDATE_RESULT_PATH_ENV = "OPENCLAW_UPDATE_POST_CORE_RESULT_PATH";