From cbefe2feca754293ece78e3958315f8b8b6b92fe Mon Sep 17 00:00:00 2001 From: Brennan Benson <79079362+brennanb2025@users.noreply.github.com> Date: Wed, 26 Aug 2026 13:59:17 -0700 Subject: [PATCH] fix(native-chat): retire hosted rows on structured tab activation --- .../src/components/tab-bar/tab-bar-item-surface.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/renderer/src/components/tab-bar/tab-bar-item-surface.tsx b/src/renderer/src/components/tab-bar/tab-bar-item-surface.tsx index 57ba8df4a7c..c0af60cf6fc 100644 --- a/src/renderer/src/components/tab-bar/tab-bar-item-surface.tsx +++ b/src/renderer/src/components/tab-bar/tab-bar-item-surface.tsx @@ -215,10 +215,14 @@ export function renderTabBarItems({ tabCount={items.length} hasTabsToRight={index < items.length - 1} hasTabsToLeft={index > 0} - isActive={activeTabType === 'agent-session' && item.id === activeTabId} + isActive={ + !clientHostedRowOwnsActiveState && + activeTabType === 'agent-session' && + item.id === activeTabId + } isPinned={item.isPinned} isExpanded={false} - onActivate={() => onActivateAgentSession?.(item.id)} + onActivate={() => activateRealTab(onActivateAgentSession)(item.id)} onClose={() => onClose(item.id)} onCloseOthers={() => onCloseOthers(item.id)} onCloseToRight={() => onCloseToRight(item.id)}