Skip to content

lookupConversationSafe

lookupConversationSafe(config, conversationId): StoredConversation | null

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/history/recordSession.ts:154

GS2-20 — the conversation row and its recorded turns, or null when history is off, the store cannot be opened, or no conversation has that id.

This is the display and policy half of a resume — the workspace the conversation belongs to, the command it was recorded under, the turns to show — and deliberately not the thread decision: whether the conversation can be re-entered is answered by lookupConversationThreadSafe, whose exact-match-never-fallback contract is the one a resume rests on. Fail-soft, never throws.

HistoryConfigView

number

StoredConversation | null