v0.40.0 — context compaction for long chat/code sessions (#48)
Adds context-window compaction so long venice chat/venice code sessions stay in-context instead of dying on an over-long prompt.
/compact [N]— manual REPL command: summarize the older prefix into one synthetic system message, keeping the last N turns verbatim.--auto-compact(+--compact-threshold,--compact-keep-turns) on bothchatandcode, config-backable viadefaults.<cmd>.*. Fires once the prompt crosses the token budget (serverusage.prompt_tokenswhen available, char estimate otherwise).- Best-effort and non-destructive: a failed/empty summary leaves history untouched; never orphans a tool result from its assistant turn.
Closes #48.