@spzhongwin/skill-logger-plugin 1.0.7 → 1.0.8
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.
- package/package.json +1 -1
- package/src/ws-client.ts +4 -3
package/package.json
CHANGED
package/src/ws-client.ts
CHANGED
|
@@ -202,9 +202,10 @@ export class GatewayWsClient {
|
|
|
202
202
|
try {
|
|
203
203
|
entries = await fs.readdir(rootPath);
|
|
204
204
|
} catch (e) {
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
205
|
+
// 读目录失败通常是瞬时性的(磁盘抖动/权限/句柄耗尽等),不代表这台机器真的没有用户了。
|
|
206
|
+
// 跳过本轮上报、保留上次已知状态,等下一次扫描自然重试,避免把瞬时故障放大成
|
|
207
|
+
// "全部用户离线"(服务端收到空列表会把这台网关下所有用户标记 OFFLINE)。
|
|
208
|
+
this.appendLogToFile("WARN", "AgentScan", "OpenClaw home is not readable; skipping this scan cycle", e);
|
|
208
209
|
return;
|
|
209
210
|
}
|
|
210
211
|
|