The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): an unhinted project-tree lookup reads the live gateway's profile
yoniebanscc6b1f299bd3
diff --git a/apps/desktop/src/store/session-unread.ts b/apps/desktop/src/store/session-unread.tsindex 72bade6f5bc..80085918b29 100644--- a/apps/desktop/src/store/session-unread.ts+++ b/apps/desktop/src/store/session-unread.ts@@ -327,19 +327,18 @@ function resolveOwnedRow(storedSessionId: string, profile?: string): SessionInfo: resolveLoadedRow(storedSessionId)}-/** A project-tree row for *storedSessionId* (in *profile*'s bucket when one is named). */+/** A project-tree row for *storedSessionId* in *profile*'s bucket, else the live gateway's (as the+ * live-source lookup): the tree mixes profiles, and an unhinted completion comes from the live gateway. */function projectTreeRow(storedSessionId: string, profile?: string): SessionInfo | undefined {+ const owner = normalizeProfileKey(profile ?? $activeGatewayProfile.get())+return $projectTree.get().flatMap(project => [...(project.previewSessions ?? []),...project.repos.flatMap(repo => repo.groups.flatMap(group => group.sessions))])- .find(- row =>- sessionMatchesStoredId(row, storedSessionId) &&- (!profile || profileKeyForRow(row) === normalizeProfileKey(profile))- )+ .find(row => sessionMatchesStoredId(row, storedSessionId) && profileKeyForRow(row) === owner)}/** Sources the live poll reported, by profile and stored id: a messaging turn can settle before its row