From 51ffe547886de83b8eb9dea4d845825880d06c57 Mon Sep 17 00:00:00 2001 From: bot-hermes Date: Thu, 13 Aug 2026 19:46:25 +0000 Subject: [PATCH] fix(ui): provider-aware context tab icon --- packages/ui/src/components/layout/ContextPanel.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/ui/src/components/layout/ContextPanel.tsx b/packages/ui/src/components/layout/ContextPanel.tsx index 40366e9a..67bb1ba7 100644 --- a/packages/ui/src/components/layout/ContextPanel.tsx +++ b/packages/ui/src/components/layout/ContextPanel.tsx @@ -193,6 +193,7 @@ const getTabLabel = ( const getTabIcon = ( tab: { mode: ContextPanelMode; targetPath: string | null }, faviconByOrigin: Record = {}, + gitProvider: GitProvider | null, ): React.ReactNode | undefined => { if (tab.mode === 'file') { return tab.targetPath @@ -213,7 +214,7 @@ const getTabIcon = ( } if (tab.mode === 'pr') { - return ; + return ; } if (tab.mode === 'notes') { @@ -930,7 +931,7 @@ export const ContextPanel: React.FC = () => { return { id: tab.id, label, - icon: getTabIcon(tab, faviconByOrigin), + icon: getTabIcon(tab, faviconByOrigin, gitProvider), title: tabPathLabel ? `${rawLabel}: ${tabPathLabel}` : rawLabel, closeLabel: t('contextPanel.tab.closeTabAria', { label }), }; @@ -1006,7 +1007,7 @@ export const ContextPanel: React.FC = () => { /> ) : (
- {activeTab ? getTabIcon(activeTab, faviconByOrigin) : null} + {activeTab ? getTabIcon(activeTab, faviconByOrigin, gitProvider) : null} {activeTab ? getModeLabel(activeTab.mode, t, gitProvider) : null}