@@ -55,6 +55,7 @@ export function AgentSessionThreadPanel({
5555 const avatarUrl = profiles ?. [ agent . pubkey . toLowerCase ( ) ] ?. avatarUrl ?? null ;
5656 const isOverlay = useIsThreadPanelOverlay ( ) ;
5757 const isFloatingOverlay = isOverlay && ! isSinglePanelView ;
58+ const usesChannelSplitChrome = ! isOverlay && ! isSinglePanelView ;
5859 useEscapeKey ( onClose , isOverlay || isSinglePanelView ) ;
5960
6061 const { ref : scrollRef , onScroll } = useStickToBottom < HTMLDivElement > ( ) ;
@@ -111,7 +112,10 @@ export function AgentSessionThreadPanel({
111112 { ! isOverlay ? (
112113 < div
113114 aria-hidden = "true"
114- className = "pointer-events-none absolute inset-x-0 top-0 z-40 h-[76px] bg-background/75 backdrop-blur-md before:absolute before:left-0 before:right-0 before:top-10 before:h-px before:bg-border/35 after:absolute after:bottom-0 after:-left-px after:top-10 after:w-px after:bg-border/80 supports-[backdrop-filter]:bg-background/65 dark:bg-background/45 dark:backdrop-blur-xl dark:supports-[backdrop-filter]:bg-background/35"
115+ className = { cn (
116+ "pointer-events-none absolute inset-x-0 top-0 z-40 bg-background/75 backdrop-blur-md before:absolute before:left-0 before:right-0 before:top-10 before:h-px before:bg-border/35 after:absolute after:bottom-0 after:-left-px after:top-10 after:w-px after:bg-border/80 supports-[backdrop-filter]:bg-background/65 dark:bg-background/45 dark:backdrop-blur-xl dark:supports-[backdrop-filter]:bg-background/35" ,
117+ usesChannelSplitChrome ? "h-[92px]" : "h-[76px]" ,
118+ ) }
115119 />
116120 ) : null }
117121
@@ -122,7 +126,7 @@ export function AgentSessionThreadPanel({
122126 ? `relative ${ PANEL_SINGLE_COLUMN_HEADER_LAYER_CLASS } -mb-[76px] min-h-[76px] shrink-0 gap-[10px] bg-background/80 pb-[4px] pl-[16px] pr-[8px] pt-[42px] backdrop-blur-md supports-[backdrop-filter]:bg-background/70 sm:pl-[24px] sm:pr-[12px] dark:bg-background/70 dark:backdrop-blur-xl dark:supports-[backdrop-filter]:bg-background/55`
123127 : isOverlay
124128 ? "relative z-50 min-h-[44px] shrink-0 gap-3 bg-background/80 px-3 py-[6px] backdrop-blur-md supports-[backdrop-filter]:bg-background/70 dark:bg-background/70 dark:backdrop-blur-xl dark:supports-[backdrop-filter]:bg-background/55"
125- : "absolute inset-x-0 top-[42px ] z-50 min- h-[32px] gap-3 px-3 py-[4px ]" ,
129+ : "absolute inset-x-0 top-[48px ] z-50 h-[32px] gap-[10px] py-0 pl-[16px] pr-[8px] sm:pr-[12px ]" ,
126130 ) }
127131 data-tauri-drag-region
128132 >
@@ -139,7 +143,14 @@ export function AgentSessionThreadPanel({
139143 displayName = { agent . name }
140144 size = "xs"
141145 />
142- < h2 className = "min-w-0 flex-1 translate-y-px truncate text-sm font-semibold leading-5 tracking-tight" >
146+ < h2
147+ className = { cn (
148+ "min-w-0 flex-1 translate-y-px truncate font-semibold tracking-tight" ,
149+ usesChannelSplitChrome
150+ ? "text-base leading-6"
151+ : "text-sm leading-5" ,
152+ ) }
153+ >
143154 { agent . name }
144155 </ h2 >
145156 </ div >
@@ -186,14 +197,22 @@ export function AgentSessionThreadPanel({
186197 ) : null }
187198 < Button
188199 aria-label = "Close activity panel"
189- className = "h-6 w-6 text-foreground hover:bg-muted/60 hover:text-foreground"
200+ className = { cn (
201+ usesChannelSplitChrome
202+ ? "h-8 w-8 rounded-lg border border-border/40 text-muted-foreground hover:bg-muted/70 hover:text-foreground [&_svg]:size-5"
203+ : "h-6 w-6 text-foreground hover:bg-muted/60 hover:text-foreground" ,
204+ ) }
190205 data-testid = "agent-session-close"
191206 onClick = { onClose }
192207 size = "icon"
193208 type = "button"
194209 variant = "ghost"
195210 >
196- < X className = "h-3.5 w-3.5" />
211+ < X
212+ className = { cn (
213+ usesChannelSplitChrome ? "size-5" : "h-3.5 w-3.5" ,
214+ ) }
215+ />
197216 </ Button >
198217 </ div >
199218 </ div >
@@ -204,10 +223,13 @@ export function AgentSessionThreadPanel({
204223 onScroll = { onScroll }
205224 className = { cn (
206225 "min-h-0 flex-1 overflow-y-auto px-3 pb-4" ,
207- // Match MessageThreadPanel: single-panel mode has a 76px header
208- // (min-h-[76px] with -mb-[76px]), so the body must clear it. Only
209- // the floating overlay (44px header) uses the smaller pt-4.
210- isSinglePanelView ? "pt-[76px]" : isOverlay ? "pt-4" : "pt-[76px]" ,
226+ // Single-panel mode keeps the 76px local header; split panes sit
227+ // under the channel screen's 92px top chrome.
228+ usesChannelSplitChrome
229+ ? "pt-[92px]"
230+ : isOverlay
231+ ? "pt-4"
232+ : "pt-[76px]" ,
211233 ) }
212234 >
213235 < ManagedAgentSessionPanel
0 commit comments