(self)
| 78 | logger.warning("[CliSessionStore] failed to load %s: %s", self._path, e) |
| 79 | |
| 80 | def save(self) -> None: |
| 81 | self._path.parent.mkdir(parents=True, exist_ok=True) |
| 82 | data = { |
| 83 | "bindings": { |
| 84 | sid: asdict(binding) for sid, binding in self._bindings.items() |
| 85 | } |
| 86 | } |
| 87 | self._path.write_text(json.dumps(data, indent=2), encoding="utf-8") |
| 88 | |
| 89 | # ── session resolution (mirrors OpenClaw's resolveCliSessionReuse) ─── |
| 90 |
no outgoing calls
no test coverage detected