openConversationSafe
openConversationSafe(
config,meta):number|null
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/history/recordSession.ts:52
GS2-19 — open one conversation for an interactive session IFF history.enabled, returning its id
(or null when disabled / anything failed). The session passes that id on every
recordSessionSafe so all its turns group under one conversation. Same guarantees as the
recorder: a no-op by default, 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.
Parameters
Section titled “Parameters”config
Section titled “config”Returns
Section titled “Returns”number | null