lingshu-skill 5.54.0 → 5.56.0

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.
@@ -348,6 +348,12 @@ def load_persona() -> dict:
348
348
  _good["state"] = _merged
349
349
  p = _good
350
350
  log_event("persona", "检测到人格空态,已自动从 persona.lastgood.json 回滚", level="warn")
351
+ # AUTOH EAL-COMMIT(v5.56):立即写回盘,否则下次 load 又读到空态 →
352
+ # 反复回滚 + 反复告警(实测 5 分钟刷 78 条 warn)。写回失败不影响返回值。
353
+ try:
354
+ atomic_json(HOME / "persona.json", _good)
355
+ except Exception:
356
+ pass
351
357
  except Exception:
352
358
  pass
353
359