MCPcopy Create free account
hub / github.com/Ishabdullah/Codey-v2 / clear_session

Function clear_session

core/sessions.py:98–105  ·  view source on GitHub ↗

Delete saved session for current project.

(project_dir: str = None)

Source from the content-addressed store, hash-verified

96 return []
97
98def clear_session(project_dir: str = None):
99 """Delete saved session for current project."""
100 path = _session_path(project_dir)
101 if path.exists():
102 path.unlink()
103 success("Session cleared.")
104 else:
105 info("No saved session found.")
106
107def list_sessions() -> list[dict]:
108 """List all saved sessions."""

Callers 2

handle_commandFunction · 0.90
mainFunction · 0.90

Calls 4

successFunction · 0.90
infoFunction · 0.90
_session_pathFunction · 0.85
existsMethod · 0.80

Tested by

no test coverage detected