@@ -20,7 +20,6 @@ import type {
2020 ModelSelection ,
2121 ProjectId ,
2222 PreviewAnnotationPayload ,
23- ProviderApprovalDecision ,
2423 ThreadContextRecord ,
2524 EnvironmentContextRecord ,
2625 ProviderInteractionMode ,
@@ -184,7 +183,6 @@ import {
184183 ComposerCommandMenu ,
185184 composerSuggestionOptionId ,
186185} from "./ComposerCommandMenu" ;
187- import { ComposerPendingApprovalActions } from "./ComposerPendingApprovalActions" ;
188186import {
189187 ComposerAttachButton ,
190188 ComposerAttachmentFileList ,
@@ -195,7 +193,6 @@ import {
195193} from "./ComposerAttachmentStrip" ;
196194import { ComposerPrimaryActions } from "./ComposerPrimaryActions" ;
197195import { ComposerFooterPrimaryActions } from "./ComposerFooterControls" ;
198- import { ComposerPendingApprovalPanel } from "./ComposerPendingApprovalPanel" ;
199196import { ComposerPendingUserInputPanel } from "./ComposerPendingUserInputPanel" ;
200197import { ComposerPlanFollowUpBanner } from "./ComposerPlanFollowUpBanner" ;
201198import { resolveComposerMenuActiveItemId } from "./composerMenuHighlight" ;
@@ -236,7 +233,7 @@ const isEnvironmentRequestInvalidError = Schema.is(EnvironmentRequestInvalidErro
236233const COMPOSER_SCROLL_COLLAPSE_THRESHOLD_PX = 24 ;
237234const COMPOSER_SCROLL_GESTURE_RESET_MS = 120 ;
238235import { toastManager } from "../ui/toast" ;
239- import { PlayIcon , ShieldIcon } from "lucide-react" ;
236+ import { PlayIcon } from "lucide-react" ;
240237import { proposedPlanTitle } from "@t3tools/shared/proposedPlanText" ;
241238import { hasProviderSetup } from "./ProviderStatusBanner" ;
242239import { type AppModelOption , getAppModelOptionsForInstance } from "../../modelSelection" ;
@@ -484,10 +481,6 @@ export interface ChatComposerProps {
484481 onResume : ( ) => void ;
485482 onInterrupt : ( ) => void ;
486483 onImplementPlanInNewThread : ( ) => void ;
487- onRespondToApproval : (
488- requestId : RuntimeRequestId ,
489- decision : ProviderApprovalDecision ,
490- ) => Promise < unknown > ;
491484 onSelectActivePendingUserInputOption : ( questionId : string , optionValue : string ) => void ;
492485 onAdvanceActivePendingUserInput : ( ) => void ;
493486 onDismissActivePendingUserInput : ( requestId : RuntimeRequestId ) => void ;
@@ -607,7 +600,6 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)
607600 onResume,
608601 onInterrupt,
609602 onImplementPlanInNewThread,
610- onRespondToApproval,
611603 onSelectActivePendingUserInputOption,
612604 onAdvanceActivePendingUserInput,
613605 onDismissActivePendingUserInput,
@@ -1204,7 +1196,6 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)
12041196 const isChoiceOnlyPendingQuestion =
12051197 activePendingProgress ?. activeQuestion ?. allowCustomAnswer === false ;
12061198 const showComposerTopDrawer =
1207- isComposerApprovalState ||
12081199 pendingUserInputs . length > 0 ||
12091200 ( ! isComposerCollapsedMobile && showPlanFollowUpPrompt && activeProposedPlan !== null ) ;
12101201 const showCollapsedMobilePromptRow = isComposerCollapsedMobile ;
@@ -3454,39 +3445,8 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)
34543445 < ComposerBannerStack items = { shelfItems } />
34553446 { showComposerTopDrawer ? (
34563447 < ComposerBanner . Attachment >
3457- < ComposerBanner . Root
3458- data-chat-composer-top-drawer = "true"
3459- variant = { activePendingApproval ? "warning" : "info" }
3460- density = { activePendingApproval ? "spacious" : "default" }
3461- >
3462- { activePendingApproval ? (
3463- < ComposerBanner . Row
3464- layout = "approval"
3465- data-chat-composer-collapsed-controls = "true"
3466- >
3467- < ComposerBanner . Icon >
3468- < ShieldIcon />
3469- </ ComposerBanner . Icon >
3470- < ComposerBanner . Content >
3471- < ComposerPendingApprovalPanel
3472- approval = { activePendingApproval }
3473- pendingCount = { pendingApprovals . length }
3474- />
3475- </ ComposerBanner . Content >
3476- < ComposerBanner . Actions >
3477- < ComposerPendingApprovalActions
3478- requestId = { activePendingApproval . requestId }
3479- disabled = { ! canOperateThread }
3480- isResponding = { respondingRequestIds . includes (
3481- activePendingApproval . requestId ,
3482- ) }
3483- options = { activePendingApproval . options }
3484- canRespond = { activePendingApproval . responseCapability === "live" }
3485- onRespondToApproval = { onRespondToApproval }
3486- />
3487- </ ComposerBanner . Actions >
3488- </ ComposerBanner . Row >
3489- ) : pendingUserInputs . length > 0 ? (
3448+ < ComposerBanner . Root data-chat-composer-top-drawer = "true" variant = "info" >
3449+ { pendingUserInputs . length > 0 ? (
34903450 < ComposerPendingUserInputPanel
34913451 pendingUserInputs = { pendingUserInputs }
34923452 cwd = { gitCwd ?? undefined }
0 commit comments