openclawsetup 2.8.8 → 2.8.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/bin/cli.mjs +4 -9
  2. package/package.json +1 -1
package/bin/cli.mjs CHANGED
@@ -83,7 +83,7 @@ const log = {
83
83
 
84
84
  const DEFAULT_GATEWAY_PORT = 18789;
85
85
  const STRONG_FIX_MAX_PASSES = 3;
86
- const STATUS_CMD_TIMEOUT_MS = platform() === 'win32' ? 8000 : 5000;
86
+ const STATUS_CMD_TIMEOUT_MS = platform() === 'win32' ? 15000 : 10000;
87
87
  const PORT_CHECK_TIMEOUT_MS = platform() === 'win32' ? 6000 : 4000;
88
88
  const MODEL_CHAT_TIMEOUT_MS = platform() === 'win32' ? 25000 : 18000;
89
89
  const STRONG_PORT_CANDIDATES = [
@@ -2233,11 +2233,6 @@ async function runHealthCheck(cliName, autoFix = false, strongMode = false) {
2233
2233
  const canUsePortFallback = statusState === 'unknown' || statusProbe.timedOut;
2234
2234
  if (statusState === 'running' || (canUsePortFallback && statusPortListening)) {
2235
2235
  log.success('Gateway 进程正在运行');
2236
- if (statusProbe.timedOut) {
2237
- log.hint('状态命令超时,已按端口监听判定为运行中');
2238
- } else if (canUsePortFallback && statusPortListening) {
2239
- log.hint('状态命令返回非运行,但端口可访问(兼容判定)');
2240
- }
2241
2236
  } else {
2242
2237
  const issue = summarizeIssue(
2243
2238
  'error',
@@ -2611,7 +2606,7 @@ async function showStatusInfo(cliName) {
2611
2606
  const portResult = getPortCheckOutput(port, PORT_CHECK_TIMEOUT_MS);
2612
2607
  const portListening = Boolean(portResult.ok && portResult.output);
2613
2608
 
2614
- if (statusTimedOut) {
2609
+ if (statusTimedOut && !portListening) {
2615
2610
  console.log(colors.yellow(' ⚠ 状态命令超时,已自动切换端口探测模式'));
2616
2611
  }
2617
2612
  if (portResolved.source === 'runtime' && Number(config?.port) !== Number(port)) {
@@ -2621,8 +2616,8 @@ async function showStatusInfo(cliName) {
2621
2616
  if (statusState === 'running') {
2622
2617
  console.log(colors.green(' ✓ Gateway 服务正在运行'));
2623
2618
  } else if (portListening) {
2624
- console.log(colors.yellow(' ⚠ 状态命令显示未运行,但端口可访问'));
2625
- console.log(colors.gray(' 兼容模式判定:Gateway 可能正在运行(常见于旧版/Windows)'));
2619
+ // 端口在监听 = Gateway 在运行,状态命令超时/不准确不影响判断
2620
+ console.log(colors.green('Gateway 服务正在运行'));
2626
2621
  } else {
2627
2622
  console.log(colors.red(' ✗ Gateway 服务未运行'));
2628
2623
  if (statusOutput) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openclawsetup",
3
- "version": "2.8.8",
3
+ "version": "2.8.9",
4
4
  "description": "OpenClaw 安装向导 - 智能安装、诊断、自动修复",
5
5
  "type": "module",
6
6
  "bin": {