Repository navigation
Session History: desktop lists large transcripts from their ends; those rows hide their message count - #28927
brennanb2025 wants to merge 3 commits into
Conversation
…s and hides those rows' counts The desktop and browser clients advertise aiVault.list.partial-rows.v1, the local list path accepts partial rows, the Session History row shows no message count for a partial row, title lookups read partially, and the persisted parse cache version is bumped so an older build never reads partial rows as exact.
|
Closing after reviewing the complete final-head diff, changed tests, description and current-main implementation against the performance tradeoff standard in #27143. The description's 735→265 ms / 294.6→80.1 MB benchmark describes the former head/tail design. Final head I compared exact production
Each pair read exactly the same approximately 16.4 MB and returned deeply equivalent rows apart from The final mechanism therefore gives up neither file I/O nor required row construction, introduces substantial parser/protocol/cache complexity, and increases measured work on the tested paths. Cooperative cancellation during one large tokenized record is a real incidental benefit, but does not justify this list-only decoding design and count-hiding policy. The obsolete head/tail numbers cannot justify the final implementation. No independent still-missing correctness or user feature remains against main's complete parser. The branch is preserved; the Session History performance objective remains worthwhile with a different design. |
ELI5
Session History used to read every long agent transcript from start to finish to draw one row. It now reads only the start and the end of a big transcript, which is all a row needs. The one thing it can't know that way is how many messages the session has, so those rows simply don't show a message count.
Stacked on #28925, which adds the mechanism and changes nothing visible on its own.
What Changed
Problem. The list reads whole transcripts whenever it has to rebuild a row: on a first scan, after a restart for any file that changed while Orca was closed, and when a file's append position is lost. On a heavy user's machine the newest 500 transcripts are about 1.6 GB, and that read is most of a cold scan.
Before / after for the user. For a transcript larger than 320 KB being read fresh:
Mechanism.
aiVault.list.partial-rows.v1, both to their own host (the local list path) and to remote runtime hosts.contentCoverageis set.Why
The common pattern for a list of agent sessions is to read only the start and end of each file. A count that read can't know is left out rather than guessed. The alternatives considered in #28925 (paging, worker threads, reading Codex's own database) complement this rather than replace it.
The phone app keeps exact rows until it opts in (follow-up PR). Until then, a paired phone's scans still read whole files.
Linked Issue
N/A (internal performance lane).
Visual Proof
Before: both rows show a message count, including the 640 KB transcript.

After: the 640 KB transcript's row has no message count; the small session still shows "6 msgs". Title, time and agent are unchanged.

Testing