@@ -48,6 +48,7 @@ import { feedbackBannerItem } from "./chat/ComposerFeedback";
4848import { useUsageLimitsPanel } from "./chat/useUsageLimitsPanel" ;
4949import { useWorktreeSetup } from "./chat/useWorktreeSetup" ;
5050import { useChatShortcuts } from "./chat/useChatShortcuts" ;
51+ import { ChatBannerLane } from "./chat/ChatBannerLane" ;
5152import * as Schema from "effect/Schema" ;
5253import {
5354 AuthOrchestrationOperateScope ,
@@ -282,15 +283,12 @@ import {
282283} from "./BranchToolbar.logic" ;
283284import {
284285 getProviderStatusBannerKey ,
285- ProviderStatusBanner ,
286286 shouldShowProviderStatusBanner ,
287287} from "./chat/ProviderStatusBanner" ;
288288import {
289- dismissThreadErrorBannerForSession ,
290289 getThreadErrorBannerKey ,
291290 isThreadErrorBannerDismissedForSession ,
292291 shouldShowThreadErrorBanner ,
293- ThreadErrorBanner ,
294292} from "./chat/ThreadErrorBanner" ;
295293import { QueuedRunsControl , type QueuedRunsControlHandle } from "./chat/QueuedRunsControl" ;
296294import { useThreadLinkedPullRequest } from "./pullRequest/useThreadLinkedPullRequest" ;
@@ -3229,26 +3227,22 @@ export default function ChatView(props: ChatViewProps) {
32293227 >
32303228 < ThreadFind onClose = { focusComposerStable } />
32313229 { isWorkspaceFileDragActive ? < WorkspaceFileDropOverlay /> : null }
3232- < div className = "chat-banner-lane pointer-events-none absolute top-0 z-30 flex flex-col" >
3233- < ProviderStatusBanner
3234- status = { visibleProviderStatus }
3235- onDismiss = { ( ) => setDismissedProviderStatusBannerKey ( providerStatusBannerKey ) }
3236- onOpenProviderSetup = { openProviderSetupStable }
3237- />
3238- < ThreadErrorBanner
3239- error = { timelineThreadError }
3240- errorClass = {
3241- localServerError === null && visibleThreadError === serverRuntime ?. lastError
3242- ? ( serverRuntime ?. lastErrorClass ?? null )
3243- : null
3244- }
3245- onDismiss = { ( ) => {
3246- setThreadError ( activeThread . id , null ) ;
3247- dismissThreadErrorBannerForSession ( threadErrorBannerKey ) ;
3248- setThreadErrorBannerDismissTick ( ( tick ) => tick + 1 ) ;
3249- } }
3250- />
3251- </ div >
3230+ < ChatBannerLane
3231+ providerStatus = { visibleProviderStatus }
3232+ providerStatusBannerKey = { providerStatusBannerKey }
3233+ setDismissedProviderStatusBannerKey = { setDismissedProviderStatusBannerKey }
3234+ onOpenProviderSetup = { openProviderSetupStable }
3235+ threadId = { activeThread . id }
3236+ threadError = { timelineThreadError }
3237+ threadErrorClass = {
3238+ localServerError === null && visibleThreadError === serverRuntime ?. lastError
3239+ ? ( serverRuntime ?. lastErrorClass ?? null )
3240+ : null
3241+ }
3242+ threadErrorBannerKey = { threadErrorBannerKey }
3243+ setThreadError = { setThreadError }
3244+ setThreadErrorBannerDismissTick = { setThreadErrorBannerDismissTick }
3245+ />
32523246 < div className = "relative flex min-h-0 flex-1 flex-col bg-background" >
32533247 < MessagesTimeline
32543248 citationRequest = { paintOnlyDisplayedTimeline ? null : citationRequest }
0 commit comments