mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
runtime.context() keeps each conversation's last read range and derived view. A later read by any of the conversation's tasks with the same head marker scans and derives only the entries committed since, so a generation no longer rereads and re-derives the whole transcript for each model request. Busy conversations keep the range; idle ones for settings.contextRetentionMs (default ten minutes), checked on task changes and by one unreferenced timer where the runtime supports it. Kept entries are frozen; each read returns its own view arrays. Add openDurableObjectSqliteStorage(ctx.storage) in @earendil-works/pi-durable/storage/sqlite/cloudflare: SQLite storage on a SQLite-backed Cloudflare Durable Object, without per-row copies. |
||
|---|---|---|
| .. | ||
| agent | ||
| ai | ||
| chord | ||
| client | ||
| codemode | ||
| coding-agent | ||
| durable | ||
| env | ||
| evals | ||
| mcp | ||
| protocol | ||
| server | ||
| telemetry | ||
| tui | ||