// Stub — Hermes Workspace uses hermes-api.ts for chat streaming, not gateway SSE.
// This hook is kept as a no-op to satisfy use-realtime-chat-history imports.

export function useGatewayChatStream(_opts: {
  sessionKey?: string
  enabled?: boolean
  onReconnect?: () => void
  onSilentTimeout?: (ms: number) => void
  onUserMessage?: (message: any, source?: string) => void
  onApprovalRequest?: (approval: Record<string, unknown>) => void
  onCompactionStart?: () => void
  onCompactionEnd?: () => void
  onCompaction?: (...args: any[]) => void
  onDone?: (...args: any[]) => void
}) {
  return {
    connectionState: 'connected' as const,
    lastError: null as string | null,
    reconnect: () => {},
  }
}
