stswangzhiping
|
f4efb13612
|
fix: restartGateway 改异步,修复 inactive 时 PIN 不闪问题
原来 removeProviderByName 内用 execSync 调 pkill,在 showPin 前
阻塞事件循环约 100ms+;若 vfdservice 是 gateway 子进程则管道无
读端,导致 showPin 写入失败或 blink setTimeout 无法触发。
改为 exec(异步):pkill 在后台执行,不阻塞事件循环,LED/VFD
操作(showPin blink)可正常调度。
Made-with: Cursor
|
2026-04-03 11:41:59 +08:00 |
|
stswangzhiping
|
7c9a6e913e
|
fix: 确保 origin 更新后再重启 gateway
active+full provider 路径:
addProviderSync → onDone(写 origin) → restartGateway 一次
之前顺序错误导致 gateway 用旧 origin 重启后再重启一次。
_updateOpenClawOrigin 只负责写盘,不再调 pkill。
移除 client.js 中已无用的 execSync 引入。
Made-with: Cursor
|
2026-04-03 10:53:05 +08:00 |
|
stswangzhiping
|
701251f19b
|
fix: 写盘 openclaw.json 后自动重启 gateway
- openclaw-provider.js: 新增 restartGateway(),在 removeProviderByName
和 applyFullProviderFromVps 写盘成功后均调用,确保 inactive/active
两路都能触发重启
- client.js: _updateOpenClawOrigin 去掉 CLAWD_OPENCLAW_GATEWAY_PKILL
env var 门控,origin 变更后默认重启
Made-with: Cursor
|
2026-04-03 10:50:29 +08:00 |
|
stswangzhiping
|
4cfdaa46e5
|
feat: apply VPS provider to OpenClaw on status_update (fetch models, merge config)
- Add openclaw-provider: fetch /v1/models, merge provider/auth, remove by name
- Wire client _applyStatus: inactive removes provider; active applies full provider then origin
- Single-flight _busy to ignore concurrent apply/remove; isFullProvider uses base-url key
Made-with: Cursor
|
2026-03-31 14:32:50 +08:00 |
|