Skip to content

The open-source agent harness - the runtime layer that turns an LLM into a working agent.

449 B
Raw Blame
'use client';

import { createContext, useContext } from 'react';

/**
 * Session detail replay has no composer AskUserContainer. When true,
 * ToolCallContainer renders pending ask_user prompts as read-only Unanswered
 * cards instead of returning null (live chat keeps those in the composer).
 */
export const SessionReplayContext = createContext(false);

export function useSessionReplay(): boolean {
  return useContext(SessionReplayContext);
}