MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / sessions_dir_for

Function sessions_dir_for

atomic-agent/src/record/mod.rs:266–270  ·  view source on GitHub ↗

Resolve the sessions directory the same way the pre-commit producer and the orchestrator do: the canonical common `.atomic` (review R9). Reading the worktree-local `.atomic/sessions` instead would strand the producer's captures away from linked-worktree consumers.

(repo_root: &Path)

Source from the content-addressed store, hash-verified

264/// the worktree-local `.atomic/sessions` instead would strand the producer's
265/// captures away from linked-worktree consumers.
266fn sessions_dir_for(repo_root: &Path) -> std::path::PathBuf {
267 atomic_repository::Repository::canonical_dot_dir(repo_root)
268 .map(|dot| dot.join("sessions"))
269 .unwrap_or_else(|_| repo_root.join(".atomic").join("sessions"))
270}
271
272/// Semantic checkpoint equality (review R5).
273///

Callers 1

classify_git_transitionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected