Name the project once in main, and give the archive its own module

This commit is contained in:
2026-09-28 21:32:27 +02:00
parent 998cc3ac85
commit cca0b67b8b
7 changed files with 45 additions and 44 deletions
+2 -3
View File
@@ -5,7 +5,6 @@ import shutil
import sys
import uuid
from loop_claude.project.checkout import project_name
from loop_claude.claude_code.formats import session_files, transcript_path
NAMESPACE = uuid.UUID("64fb586b-d926-4bb3-a44c-c903e86d3eec")
@@ -18,10 +17,10 @@ class Session:
projects: pathlib.Path
def session_for(root, paths):
def session_for(project, paths):
"""Exists while its transcript does."""
# "A " is the human's cue in the session picker that the session is the loop's.
name = f"A {project_name(root, paths.code)} loop-claude"
name = f"A {project} loop-claude"
return Session(uuid.uuid5(NAMESPACE, name), name, paths.projects)