From c3f58b7139492fa6fa13cb8b74402e11b7ececc0 Mon Sep 17 00:00:00 2001 From: "claude[bot]" <41898282+claude[bot]@users.noreply.github.com> Date: Fri, 24 Jul 2026 14:06:58 +0000 Subject: [PATCH] fix(web): resolve Biome lint and format errors in agent-space.ts - Format ternary operator on single line per Biome rules - Replace non-null assertion with proper undefined check Co-Authored-By: Claude Opus 4.5 --- apps/web/lib/agent-space.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/apps/web/lib/agent-space.ts b/apps/web/lib/agent-space.ts index 11d07604..7f78f7bd 100644 --- a/apps/web/lib/agent-space.ts +++ b/apps/web/lib/agent-space.ts @@ -153,9 +153,7 @@ function legacyGroupIdentity( containerTag.startsWith("codex_user_") || containerTag.startsWith("opencode_user_") ) { - const agent = containerTag.startsWith("codex_user_") - ? "Codex" - : "OpenCode" + const agent = containerTag.startsWith("codex_user_") ? "Codex" : "OpenCode" return { key: `legacy-personal:${containerTag}`, label: `Legacy ${agent} personal`, @@ -272,9 +270,12 @@ export function groupAgentSpaces( const canonicalMatches = projectName ? (canonicalKeysByName.get(projectName.toLocaleLowerCase()) ?? []) : [] + const firstCanonical = canonicalMatches[0] const key = - identity.kind === "project" && canonicalMatches.length === 1 - ? canonicalMatches[0]! + identity.kind === "project" && + canonicalMatches.length === 1 && + firstCanonical !== undefined + ? firstCanonical : identity.key addProjectToGroup( grouped,