


























@@ -38,7 +38,7 @@ TIMEOUT_BOOTSTRAP_S=600
3838TIMEOUT_INSTALL_S=420
3939TIMEOUT_VERIFY_S=90
4040TIMEOUT_ONBOARD_S=180
41-TIMEOUT_AGENT_S=180
41+TIMEOUT_AGENT_S="${OPENCLAW_PARALLELS_LINUX_AGENT_TIMEOUT_S:-300}"
4242TIMEOUT_GATEWAY_S=240
4343PHASE_STALE_WARN_S=60
4444@@ -750,6 +750,20 @@ show_gateway_status_compat() {
750750 guest_exec openclaw gateway status --deep
751751}
752752753+verify_gateway_status() {
754+local attempt
755+for attempt in 1 2 3 4 5 6 7 8; do
756+if guest_exec openclaw gateway status --deep --require-rpc --timeout 15000; then
757+return 0
758+fi
759+if (( attempt < 8 )); then
760+printf 'gateway-status retry %s\n' "$attempt" >&2
761+ sleep 5
762+fi
763+done
764+return 1
765+}
766+753767verify_local_turn() {
754768 guest_exec openclaw models set "$MODEL_ID"
755769 guest_exec /usr/bin/env "$API_KEY_ENV=$API_KEY_VALUE" openclaw agent \
@@ -889,7 +903,7 @@ run_fresh_main_lane() {
889903 phase_run "fresh.inject-bad-plugin" "$TIMEOUT_VERIFY_S" inject_bad_plugin_fixture
890904 phase_run "fresh.gateway-start" "$TIMEOUT_GATEWAY_S" start_gateway_background
891905 phase_run "fresh.bad-plugin-diagnostic" "$TIMEOUT_VERIFY_S" verify_bad_plugin_diagnostic
892- phase_run "fresh.gateway-status" "$TIMEOUT_VERIFY_S" show_gateway_status_compat
906+ phase_run "fresh.gateway-status" "$TIMEOUT_GATEWAY_S" verify_gateway_status
893907 FRESH_GATEWAY_STATUS="pass"
894908 phase_run "fresh.first-local-agent-turn" "$TIMEOUT_AGENT_S" verify_local_turn
895909 FRESH_AGENT_STATUS="pass"
@@ -910,7 +924,7 @@ run_upgrade_lane() {
910924 phase_run "upgrade.onboard-ref" "$TIMEOUT_ONBOARD_S" run_ref_onboard
911925 phase_run "upgrade.gateway-start" "$TIMEOUT_GATEWAY_S" start_gateway_background
912926 phase_run "upgrade.bad-plugin-diagnostic" "$TIMEOUT_VERIFY_S" verify_bad_plugin_diagnostic
913- phase_run "upgrade.gateway-status" "$TIMEOUT_VERIFY_S" show_gateway_status_compat
927+ phase_run "upgrade.gateway-status" "$TIMEOUT_GATEWAY_S" verify_gateway_status
914928 UPGRADE_GATEWAY_STATUS="pass"
915929 phase_run "upgrade.first-local-agent-turn" "$TIMEOUT_AGENT_S" verify_local_turn
916930 UPGRADE_AGENT_STATUS="pass"
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。