perf: bound async transcript history reads#75977
Conversation
|
@clawsweeper automerge |
|
🦞🦞 Source: What merged:
Fixups included:
The automerge loop is complete. Automerge progress:
|
|
Codex review: passed. Summary Reproducibility: not applicable. this is a performance PR rather than a user bug report. The verification path is source review plus the added unit coverage for bounded reads, usage snapshots, and concurrent index sharing. Next step before merge Security Review detailsBest possible solution: Let the automerge path proceed only after exact-head CI and mergeability finish cleanly, keeping the explicit full-vs-recent transcript read contract and focused tests. Do we have a high-confidence way to reproduce the issue? Not applicable; this is a performance PR rather than a user bug report. The verification path is source review plus the added unit coverage for bounded reads, usage snapshots, and concurrent index sharing. Is this the best way to solve the issue? Yes; the patch keeps full transcript scans explicit for surfaces that need them while moving first-page and recovery-style paths to bounded reads, which is the narrow maintainable fix for the observed hot path. What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 8adbee3a686a. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ccfe33658c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if (messages.length === 0) { | ||
| return undefined; |
There was a problem hiding this comment.
Preserve byte fallback when tail read returns no messages
If the bounded recent read hits a huge trailing JSONL record (or otherwise yields zero parseable messages), this early return undefined drops the already-computed transcriptBytesTokens fallback from readSessionLogSnapshot. In stale sessions without usage metadata, runPreflightCompactionIfNeeded then sees no token estimate and can skip compaction even when the transcript is large, which is a regression from the previous full-read behavior. Return a byte-based estimate here instead of undefined when snapshot.byteSize is available.
Useful? React with 👍 / 👎.
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 head ccfe336. - Required merge gates passed before the squash merge. Prepared head SHA: ccfe336 Review: openclaw#75977 (comment) Co-authored-by: Peter Steinberger <[email protected]>
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 head ccfe336. - Required merge gates passed before the squash merge. Prepared head SHA: ccfe336 Review: openclaw#75977 (comment) Co-authored-by: Peter Steinberger <[email protected]>
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 head ccfe33658c08c21d2a7014ff1cec9fc70f77e05f. - Required merge gates passed before the squash merge. Prepared head SHA: ccfe33658c08c21d2a7014ff1cec9fc70f77e05f Review: openclaw/openclaw#75977 (comment) Co-authored-by: Peter Steinberger <[email protected]>
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 head ccfe33658c08c21d2a7014ff1cec9fc70f77e05f. - Required merge gates passed before the squash merge. Prepared head SHA: ccfe33658c08c21d2a7014ff1cec9fc70f77e05f Review: openclaw/openclaw#75977 (comment) Co-authored-by: Peter Steinberger <[email protected]>
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 head ccfe33658c08c21d2a7014ff1cec9fc70f77e05f. - Required merge gates passed before the squash merge. Prepared head SHA: ccfe33658c08c21d2a7014ff1cec9fc70f77e05f Review: openclaw/openclaw#75977 (comment) Co-authored-by: Peter Steinberger <[email protected]>
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 head ccfe336. - Required merge gates passed before the squash merge. Prepared head SHA: ccfe336 Review: openclaw#75977 (comment) Co-authored-by: Peter Steinberger <[email protected]>
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 head ccfe336. - Required merge gates passed before the squash merge. Prepared head SHA: ccfe336 Review: openclaw#75977 (comment) Co-authored-by: Peter Steinberger <[email protected]>
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 head ccfe336. - Required merge gates passed before the squash merge. Prepared head SHA: ccfe336 Review: openclaw#75977 (comment) Co-authored-by: Peter Steinberger <[email protected]>
No description provided.