Skip to main content

APPROVAL_CACHE_MAX_ENTRIES

Constant APPROVAL_CACHE_MAX_ENTRIES 

Source
pub const APPROVAL_CACHE_MAX_ENTRIES: usize = 256;
Expand description

Maximum remembered approval entries per cache collection. Unbounded growth turned tool-policy.json into a multi-hundred-kilobyte file after a few long sessions (see session-vtcode-20260925T234343Z: 294 KB). Oldest insertions are dropped first so recent approvals survive.