11import { memo , useId , useRef , useMemo , useState , useCallback } from 'react' ;
22import { useAtomValue } from 'jotai' ;
3- import { useRecoilValue } from 'recoil' ;
43import { createPortal } from 'react-dom' ;
54import * as Ariakit from '@ariakit/react' ;
65import { useDrag , useDrop } from 'react-dnd' ;
76import { AnimatePresence , motion , useReducedMotion } from 'framer-motion' ;
87import { claimQueuedIntent , releaseQueuedIntent , hasQueuedIntent } from '@librechat/chat' ;
8+ import {
9+ escalatingSteerFamily ,
10+ revealedQueuedTurnFamily ,
11+ pendingSteersByConvoId ,
12+ } from '@librechat/chat/react' ;
913import {
1014 Button ,
1115 IconButton ,
@@ -31,12 +35,10 @@ import type { RestoreToComposer } from '~/Providers/ComposerRestoreContext';
3135import type { SteeringControls } from '~/hooks/Chat/useSteering' ;
3236import type { QueuedMessage } from '~/hooks/Chat/queue' ;
3337import { useQueuedTurnPortal } from '~/components/Chat/Steering/QueuedTurnPortal' ;
34- import { escalatingSteerFamily , revealedQueuedTurnFamily } from '~/store/steer' ;
3538import EscalateNowButton from '~/components/Chat/Input/EscalateNowButton' ;
3639import { queuedMessagesByConvoId } from '~/hooks/Chat/queue' ;
3740import { useLocalize } from '~/hooks' ;
3841import { cn } from '~/utils' ;
39- import store from '~/store' ;
4042
4143const DRAG_TYPE = 'queued-message' ;
4244
@@ -733,7 +735,7 @@ function Queue({
733735 `aria-describedby` at whichever copy the document happened to keep. */
734736 const reorderHintId = useId ( ) ;
735737 const queued = useAtomValue ( queuedMessagesByConvoId ( steering . queueKey ) ) ;
736- const pendingSteers = useRecoilValue ( store . pendingSteersByConvoId ( conversationId ) ) ;
738+ const pendingSteers = useAtomValue ( pendingSteersByConvoId ( conversationId ) ) ;
737739 const escalating = useAtomValue ( escalatingSteerFamily ( conversationId ) ) ;
738740 /* Only one interrupt can be unresolved at a time: a second arm would seal the
739741 same run twice. The escalating flag covers an arm's round trip, before its
0 commit comments