Skip to content

initChatHistoryBackend

initChatHistoryBackend(): Promise<ChatHistoryBackend>

Defined in: lib/repositories/chat-history.ts:177

Read the persisted backend choice. Idempotent and cached: subsequent calls return the same resolved promise so we only hit storage once per JS context.

Every facade call awaits this implicitly via awaitBackend(), so callers don’t need to call it manually. It is also exposed as a public name (initChatHistoryBackend) for callers (e.g. the SQLite-migration hook) that want to log or branch on the resolved backend at startup.

Promise<ChatHistoryBackend>