openConversationSafe
openConversationSafe(
config,meta):number|null
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/history/recordSession.ts:58
GS2-19 — open one conversation for an interactive session unless history.enabled is false,
returning its id (or null when turned off / anything failed). The session passes that id on
every recordSessionSafe so all its turns group under one conversation. Same guarantees as
the recorder: fully fail-soft, never throws. When it returns null under an enabled store (a
rare open failure), turns simply fall back to per-turn 1-turn conversations — grouping is lost
but nothing is dropped or crashed.
GS2-20 — meta.threadId is what makes the conversation resumable: it names the LangGraph thread
whose durable checkpoint holds the session’s graph state.
Parameters
Section titled “Parameters”config
Section titled “config”Returns
Section titled “Returns”number | null