From 9112170d04413fe5754d3191bb98f159fd53900f Mon Sep 17 00:00:00 2001 From: Adi Date: Thu, 19 Feb 2026 22:32:53 +0000 Subject: [PATCH] fix: remove duplicate comment in orderProfilesByMode Two consecutive identical comments "Sort available profiles by lastUsed (oldest first)" were present on lines 147-148. Removed the redundant second line. Co-Authored-By: Claude Opus 4.6 --- src/agents/auth-profiles/order.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/agents/auth-profiles/order.ts b/src/agents/auth-profiles/order.ts index 1f7e1439907..947e955860a 100644 --- a/src/agents/auth-profiles/order.ts +++ b/src/agents/auth-profiles/order.ts @@ -145,7 +145,6 @@ function orderProfilesByMode(order: string[], store: AuthProfileStore): string[] } // Sort available profiles by lastUsed (oldest first = round-robin) - // Then by lastUsed (oldest first = round-robin within type) const scored = available.map((profileId) => { const type = store.profiles[profileId]?.type; const typeScore = type === "oauth" ? 0 : type === "token" ? 1 : type === "api_key" ? 2 : 3;