native macOS codings agent orchestrator
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #108 from supabitapp/bold-raccoon

Add 3-digit random suffix to worktree names

authored by

khoi and committed by
GitHub
f997d50a a402e1c7

+2 -1
+2 -1
supacode/Domain/WorktreeNameGenerator.swift
··· 90 90 91 91 static func nextName(excluding existing: Set<String>) -> String? { 92 92 let normalized = Set(existing.map { $0.lowercased() }) 93 + let randomSuffix = String(format: "%03d", Int.random(in: 0...999)) 93 94 let available = adjectives.flatMap { adjective in 94 - animals.map { "\(adjective)-\($0)" } 95 + animals.map { "\(adjective)-\($0)-\(randomSuffix)" } 95 96 }.filter { !normalized.contains($0) } 96 97 return available.randomElement() 97 98 }