@@ -2320,6 +2320,11 @@ function ChatViewContent(props: ChatViewProps) {
23202320 const defaultInstanceId = defaultInstanceIdForDriver ( selectedProvider ) ;
23212321 return providerStatuses . find ( ( status ) => status . instanceId === defaultInstanceId ) ?? null ;
23222322 } , [ activeProviderInstanceId , providerStatuses , selectedProvider ] ) ;
2323+ const hasTimelineTopBanner =
2324+ Boolean ( threadError ) ||
2325+ ( activeProviderStatus !== null &&
2326+ activeProviderStatus . status !== "ready" &&
2327+ activeProviderStatus . status !== "disabled" ) ;
23232328 const activeProjectCwd = activeProject ?. workspaceRoot ?? null ;
23242329 const activeThreadWorktreePath = activeThread ?. worktreePath ?? null ;
23252330 const activeWorkspaceRoot = activeThreadWorktreePath ?? activeProjectCwd ?? undefined ;
@@ -5412,7 +5417,7 @@ function ChatViewContent(props: ChatViewProps) {
54125417 < header
54135418 data-chat-header
54145419 className = { cn (
5415- "border-b border-border transition-[padding-left] duration-200 ease-linear motion-reduce:transition-none" ,
5420+ "bg-background transition-[padding-left] duration-200 ease-linear motion-reduce:transition-none" ,
54165421 isElectron
54175422 ? cn (
54185423 "workspace-topbar drag-region relative px-3 sm:px-5" ,
@@ -5448,8 +5453,6 @@ function ChatViewContent(props: ChatViewProps) {
54485453 />
54495454 </ header >
54505455
5451- { /* Error banner */ }
5452- < ProviderStatusBanner status = { activeProviderStatus } />
54535456 < ThreadErrorBanner
54545457 error = { threadError }
54555458 onDismiss = { ( ) => setThreadError ( activeThread . id , null ) }
@@ -5458,6 +5461,10 @@ function ChatViewContent(props: ChatViewProps) {
54585461 < div className = "flex min-h-0 min-w-0 flex-1" >
54595462 { /* Chat column */ }
54605463 < div className = "relative flex min-h-0 min-w-0 flex-1 flex-col" >
5464+ { /* Provider status overlays the timeline without changing its content height. */ }
5465+ < div className = "pointer-events-none absolute inset-x-0 top-0 z-20" >
5466+ < ProviderStatusBanner status = { activeProviderStatus } />
5467+ </ div >
54615468 { /* Messages Wrapper */ }
54625469 < div className = "relative flex min-h-0 flex-1 flex-col" >
54635470 { /* Messages — LegendList handles virtualization and scrolling internally */ }
@@ -5494,6 +5501,7 @@ function ChatViewContent(props: ChatViewProps) {
54945501 onIsAtEndChange = { onIsAtEndChange }
54955502 onManualNavigation = { cancelTimelineLiveFollowForUserNavigation }
54965503 hideEmptyPlaceholder = { isDraftHeroState }
5504+ topFadeEnabled = { ! hasTimelineTopBanner }
54975505 />
54985506
54995507 { /* scroll to end pill — shown when user has scrolled away from the live edge */ }
@@ -5526,17 +5534,6 @@ function ChatViewContent(props: ChatViewProps) {
55265534 : "pointer-events-none absolute inset-x-0 bottom-0 z-20 pt-1.5 sm:pt-2"
55275535 }
55285536 >
5529- { ! isDraftHeroState ? (
5530- < div
5531- key = "docked-composer-blur"
5532- aria-hidden = "true"
5533- className = "chat-composer-horizontal-inset pointer-events-none absolute inset-x-0 top-1.5 bottom-0 z-0 sm:top-2"
5534- >
5535- < div className = "relative mx-auto h-full w-full max-w-3xl overflow-clip rounded-t-[20px]" >
5536- < div className = "chat-composer-shared-blur absolute -inset-8" />
5537- </ div >
5538- </ div >
5539- ) : null }
55405537 < div
55415538 ref = { attachDraftHeroTransitionGroupRef }
55425539 className = "chat-composer-horizontal-inset w-full"
@@ -5574,7 +5571,7 @@ function ChatViewContent(props: ChatViewProps) {
55745571 >
55755572 < div
55765573 ref = { attachDraftHeroComposerAnchorRef }
5577- className = "relative z-10 mx-auto w-full max-w-3xl"
5574+ className = "relative z-10 isolate mx-auto w-full max-w-3xl before:pointer-events-none before:absolute before:inset-x-0 before:bottom-0 before:-z-10 before:h-2 before:rounded-b-[22px] before:bg-background "
55785575 >
55795576 < ChatComposer
55805577 composerRef = { composerRef }
@@ -5658,12 +5655,7 @@ function ChatViewContent(props: ChatViewProps) {
56585655 >
56595656 < div
56605657 data-terminal-open = { terminalUiState . terminalOpen ? "true" : undefined }
5661- className = { cn (
5662- "chat-composer-lower-chrome relative z-10" ,
5663- isGitRepo
5664- ? "pb-[calc(env(safe-area-inset-bottom)+0.25rem)]"
5665- : "pb-[calc(env(safe-area-inset-bottom)+0.75rem)] sm:pb-[calc(env(safe-area-inset-bottom)+1rem)]" ,
5666- ) }
5658+ className = "chat-composer-lower-chrome relative z-0 pb-[calc(env(safe-area-inset-bottom)+1rem)] sm:pb-[calc(env(safe-area-inset-bottom)+1.25rem)]"
56675659 >
56685660 { isGitRepo && (
56695661 < div className = "pointer-events-auto" >
0 commit comments