Skip to main content

Module history_usage

Module history_usage 

Source
Expand description

How much conversation history is on this machine, and what it is made of. The running total in the status bar and its details panel read this. The total is the shared conversation-history store’s pages in use; it is broken into kinds (messages, jekts, thinking, tool calls, tool results, other) by transcript::kinds, each kind’s share of the history applied to that stored total.

History is kept forever, so this only measures. It reads the store’s page counts and the per-zone counts the owner srv keeps, never the conversations themselves, and callers get a cached result.

Structs§

Roots
Where the store lives. Built from the machine’s data roots, or from a temp folder in tests.

Functions§

compute
Measure the history. transcripts is the shared conversation store; name_of turns a definition id into its name.
reclaim_of
The reclaim’s request and last result, from the files beside the store.
waiting_now
[waiting_problem] for the shared store on this machine, for a cached answer: it can change any minute and costs little to read.