diff --git a/client/src/components/Chat/Input/PendingSteerChips.tsx b/client/src/components/Chat/Input/PendingSteerChips.tsx index dc820c6d0e..04078e80ee 100644 --- a/client/src/components/Chat/Input/PendingSteerChips.tsx +++ b/client/src/components/Chat/Input/PendingSteerChips.tsx @@ -1,7 +1,7 @@ import { memo, useMemo, useRef, useState, useCallback } from 'react'; import { useAtomValue } from 'jotai'; import { useRecoilValue } from 'recoil'; -import { useToastContext } from '@librechat/client'; +import { TooltipAnchor, useToastContext } from '@librechat/client'; import { X, Zap, @@ -77,6 +77,33 @@ function QuoteCount({ count, label }: { count: number; label: string }) { ); } +/** + * The one fact a queued row needs to convey ("did my message vanish?" it did + * not) rides the clock as a hover hint and its accessible name while a run is + * pending, instead of a caption row that costs composer height at rest. The + * anchor is a tab stop with a visible ring so keyboard users reach the same + * hint: the tooltip opens on focus-visible as well as on hover. + */ +function QueuedIcon({ warning, hint }: { warning: boolean; hint?: string }) { + if (warning) { + return