The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
R1: remove unobserved transcript owner profile matching
yoniebans45e81c084379
diff --git a/apps/desktop/src/app/contrib/hooks/use-background-sync.ts b/apps/desktop/src/app/contrib/hooks/use-background-sync.tsindex 8852607acab..b7d4702c41a 100644--- a/apps/desktop/src/app/contrib/hooks/use-background-sync.ts+++ b/apps/desktop/src/app/contrib/hooks/use-background-sync.ts@@ -39,30 +39,6 @@ interface ActiveTranscriptSession {profile?: string | null}-function ownerRouteProfile(owner: SessionProfileRoute): string {- return (owner.targetProfile ?? owner.profile).trim() || 'default'-}--function visibleRowMatchesOwner(- row: { connection_id?: null | string; profile?: null | string },- owner: SessionProfileRoute-): boolean {- const rowProfile = (row.profile ?? '').trim() || 'default'-- if (rowProfile !== ownerRouteProfile(owner)) {- return false- }-- const rowConnection = (row.connection_id ?? '').trim()- const ownerConnection = owner.connectionId.trim()-- if (!rowConnection || !ownerConnection) {- return true- }-- return rowConnection === ownerConnection-}-/** Only a bound tile's explicit route can override visible session ownership. */function preferredActiveTranscriptOwner(storedSessionId: string,@@ -100,20 +76,13 @@ export function resolveActiveTranscriptSession(storedSessionId: string,runtimeSessionId?: null | string): ActiveTranscriptSession | undefined {- const visibleRows = ownerLookupSessionRows().filter(session => sessionMatchesStoredId(session, storedSessionId))const verifiedOwner = preferredActiveTranscriptOwner(storedSessionId, runtimeSessionId)if (verifiedOwner) {- const matchingVisible = visibleRows.find(row => visibleRowMatchesOwner(row, verifiedOwner))-- if (matchingVisible) {- return { ownerRoute: verifiedOwner, profile: matchingVisible.profile }- }-return { ownerRoute: verifiedOwner, profile: verifiedOwner.profile }}- const visible = visibleRows[0]+ const visible = ownerLookupSessionRows().find(session => sessionMatchesStoredId(session, storedSessionId))if (visible) {return { profile: visible.profile }