mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 13:50:49 +00:00
perf: bound async transcript history reads (#75977)
Summary: - The PR bounds async transcript history reads and shares async transcript-index builds across gateway history, embedded/TUI history, restart recovery, fork token checks, and preflight compaction paths. - Reproducibility: not applicable. this is a performance PR rather than a user bug report. The verification pa ... ource review plus the added unit coverage for bounded reads, usage snapshots, and concurrent index sharing. ClawSweeper fixups: - No separate fixup commits were needed after automerge opt-in. Validation: - ClawSweeper review passed for headccfe33658c. - Required merge gates passed before the squash merge. Prepared head SHA:ccfe33658cReview: https://github.com/openclaw/openclaw/pull/75977#issuecomment-4363170293 Co-authored-by: Peter Steinberger <steipete@gmail.com>
This commit is contained in:
committed by
GitHub
parent
3ec5afb09c
commit
4d9c658f40
@@ -54,6 +54,12 @@ OpenClaw persists sessions in two layers:
|
||||
transcript exceeds the checkpoint size cap, avoiding a second giant
|
||||
`.checkpoint.*.jsonl` copy.
|
||||
|
||||
Gateway history readers should avoid materializing the whole transcript unless
|
||||
the surface explicitly needs arbitrary historical access. First-page history,
|
||||
embedded chat history, restart recovery, and token/usage checks use bounded tail
|
||||
reads. Full transcript scans go through the async transcript index, which is
|
||||
cached by file path plus `mtimeMs`/`size` and shared across concurrent readers.
|
||||
|
||||
---
|
||||
|
||||
## On-disk locations
|
||||
|
||||
Reference in New Issue
Block a user