Skip to content

writeConversationGrantsSafe

writeConversationGrantsSafe(config, conversationId, grantsJson): boolean

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

GS2-20 — replace one conversation’s stored approval-grants document. Called whenever the session’s grants change, so the row always holds the current set and a resume restores exactly what the conversation had. Returns whether the row was written. Fail-soft, never throws — a grant that could not be recorded costs one re-prompt after a resume, and must never cost the turn.

HistoryConfigView

number

string | null

boolean