lookupConversationThreadSafe
lookupConversationThreadSafe(
config,conversationId):string|null
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/history/recordSession.ts:118
GS2-20 — the reverse trip: from a conversation id (what gth history list prints and a user
types) to the LangGraph thread whose checkpoint holds its state, or null when there isn’t one.
null covers every way this can come up empty — history turned off, no store, an id that names
nothing, or a conversation recorded without a checkpointer — and never a neighbouring
conversation. A caller resuming on this must treat null as a refusal to resume and say so;
quietly starting a fresh session, or picking the most recent conversation instead, would hand
someone another conversation’s state under the id they typed.
Parameters
Section titled “Parameters”config
Section titled “config”conversationId
Section titled “conversationId”number
Returns
Section titled “Returns”string | null