From 7737e08464219def69c026a630196a74caa45377 Mon Sep 17 00:00:00 2001 From: stswangzhiping <59632378+stswangzhiping@users.noreply.github.com> Date: Fri, 3 Apr 2026 18:20:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20inactive=20=E8=B7=AF=E5=BE=84=E4=B8=8D?= =?UTF-8?q?=E9=87=8D=E5=90=AF=20gateway=EF=BC=8C=E4=BF=AE=E5=A4=8D=20PIN?= =?UTF-8?q?=20=E4=B8=8D=E9=97=AA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit removeProviderByName 中移除 restartGateway() 调用。 原因:inactive 时 kill openclaw-gateway 会破坏 vfdservice (gateway 的子进程或共享 VFD 管道的进程),导致后续 showPin 写管道失败或被 gateway 重启后的时钟命令覆盖,数码管无法显示 PIN 闪烁。 inactive 期间设备 frp 隧道已断开,无人访问 gateway,无需立即 重启。下次 active 时 applyFullProviderFromVps 会写完整 provider config 并重启 gateway。 Made-with: Cursor --- lib/openclaw-provider.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/openclaw-provider.js b/lib/openclaw-provider.js index a507560..5824ba1 100644 --- a/lib/openclaw-provider.js +++ b/lib/openclaw-provider.js @@ -161,7 +161,9 @@ function removeProviderByName(providerId) { } log.info('openclaw-provider', `provider 已移除: ${providerId}`); - restartGateway(); + // 注意:此处不重启 gateway。inactive 期间 frp 隧道已断开,无人访问 gateway; + // 下次 active 时 applyFullProviderFromVps 会写完整 config 并重启。 + // 若在此处 kill gateway,会破坏 vfdservice 管道,导致 PIN 码无法在数码管上闪烁。 } function removeProviderFromConfig(config, providerId) {