32f098a6fc
* fix: show question icon only for pending input * fix: address pending input review feedback * fix: reduce pending input sidebar complexity * fix: address clarification review comments * test: cover pending clarification hook
9 lines
369 B
TypeScript
9 lines
369 B
TypeScript
import { useAppStore } from "@/components/state-provider";
|
|
import { hasPendingClarificationForSession } from "@/lib/utils/pending-clarification";
|
|
|
|
export function useTaskPendingClarification(primarySessionId: string | null | undefined): boolean {
|
|
return useAppStore((state) =>
|
|
hasPendingClarificationForSession(state.messages.bySession, primarySessionId),
|
|
);
|
|
}
|