Skip to main content

QUEUE_CAPACITY

Constant QUEUE_CAPACITY 

Source
pub const QUEUE_CAPACITY: usize = 50;
Expand description

Bounded mpsc queue capacity (#2345 scope: “~50”).

Why: bounds memory use when trusty-memory is slow or unreachable for a long stretch; a session realistically produces at most one turn per LLM round trip, so 50 in-flight turns is generous slack before the overflow policy below kicks in. Test: memory_sink::tests::enqueue_drops_newest_when_queue_full.