Skip to content

Commit f2e6f19

Browse files
sallyomclaude
andcommitted
Shorten generated branch name format to ambient/{session_id}
Changed auto-generated branch name from 'ambient-session-{uuid}' format to simpler 'ambient/{session_id}' format. This makes branch names shorter and more directly tied to the session ID. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent e638bb7 commit f2e6f19

File tree

1 file changed

+2
-1
lines changed
  • components/runners/claude-code-runner

1 file changed

+2
-1
lines changed

components/runners/claude-code-runner/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,8 @@ async def clone_repo_at_runtime(git_url: str, branch: str, name: str) -> tuple[b
636636

637637
# Generate unique branch name if not specified
638638
if not branch or branch.strip() == "":
639-
branch = f"ambient-session-{uuid.uuid4().hex[:8]}"
639+
session_id = os.getenv("SESSION_ID", "unknown")
640+
branch = f"ambient/{session_id}"
640641
logger.info(f"No branch specified, generated: {branch}")
641642

642643
# Repos are stored in /workspace/repos/{name} (matching hydrate.sh)

0 commit comments

Comments
 (0)