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.
Parameters
Section titled “Parameters”config
Section titled “config”conversationId
Section titled “conversationId”number
grantsJson
Section titled “grantsJson”string | null
Returns
Section titled “Returns”boolean