Is there an existing issue for this?
What happened?
Where: SupabaseService.createTeam
Issue: The do-while loop tries 10 times to generate a unique ID. If the RPC check_team_code_exists throws an exception (e.g. network error), it counts as a failed attempt. 10 network errors = "Failed to create team".
Fix: Distinguish between "Code exists" (retry) and "Network Error" (throw immediately or retry with backoff).
Record