Skip to content

Commit 671501f

Browse files
committed
fix(web): composer banners stay visible while an approval waits in the timeline
1 parent 330d3e8 commit 671501f

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎apps/web/src/components/chat/ChatComposer.tsx‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2316,8 +2316,7 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)
23162316
importContextRecords,
23172317
expandMobileComposer: expandMobileComposerStable,
23182318
});
2319-
const hasBlockingComposerTopDrawer =
2320-
activePendingApproval !== null || pendingUserInputs.length > 0;
2319+
const hasBlockingComposerTopDrawer = pendingUserInputs.length > 0;
23212320
const hasImageAttachmentAttention = standaloneComposerImages.some((image) => {
23222321
const upload = uploadsByImageId[image.id];
23232322
const failedInCurrentEnvironment =
@@ -2576,7 +2575,7 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)
25762575
getModelDisabledReason={getModelDisabledReason}
25772576
/>
25782577
);
2579-
// An open approval or question owns the space above the composer. Only a machine problem,
2578+
// An open question owns the space above the composer. Only a machine problem,
25802579
// which is why an answer could not go through, stays beside it.
25812580
const shelfItems = hasBlockingComposerTopDrawer
25822581
? props.bannerItems.filter(

0 commit comments

Comments
 (0)