MCPcopy Create free account
hub / github.com/Louisym/MiniCC / list_sessions

Method list_sessions

mini_claude_code/storage.py:116–122  ·  view source on GitHub ↗

列出所有会话 ID。

(self)

Source from the content-addressed store, hash-verified

114 return [Message.model_validate(e.message) for e in chain]
115
116 def list_sessions(self) -> list[str]:
117 """列出所有会话 ID。"""
118 if not self._storage_dir.exists():
119 return []
120 return sorted(
121 p.stem for p in self._storage_dir.glob("*.jsonl")
122 )
123
124 def detect_interruption(self, session_id: str) -> Optional[str]:
125 """检测中断类型。

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected