Repository navigation
fix(core): paginate durable session history - #437
Merged
Merged
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Collaborator
Author
|
@codex review |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
History searches can now reach evidence beyond their first bounded page, including applied steering and earlier work in the active run. Previously, every query rescanned only the newest 8 MiB, while the result incorrectly suggested narrowing the query to look further back. Stacked on #436.
search_historyreturns a cursor at the next unvisited source when its byte budget, step budget or match limit ends a page. Indexed keyset seeks replace the archive-sized prompt collection. Large units are examined once before advancing; retrieval calls/results are excluded from search echoes. Unicode matching uses a linear scan with original byte boundaries. History and saved-output reads share one session-scoped reader. Results now show newest prompts first and newest turns within each prompt; older matches require following the cursor. No protocol/schema change or dependency added.Verified commit
e5fa5981:cargo xtask check --base origin/fix/compaction-recoverypassed (2,422 tests, 15 skipped), plus 13 focused history/spill tests and all 11 smoke scenarios. The original current-run exclusion failed a regression before the fix. A 48 MiB archive test now actually retrieves its oldest prompt across pages; the old query's nonexistent trailing space was corrected. Additional cases cover oversized units, applied/queued steering, search echoes, foreign-session cursors and Unicode boundary matching. An isolated real server automatically compacted, retrieved active-run evidence, paged through all three earlier instructions, and wrote the verified artifact once without manual compaction. Reviewed the diff, query bounds and reader isolation locally.This supplies bounded history recall; exact instruction retention beyond the compaction record cap remains the next task #5 slice. These deterministic checks do not establish comparative model quality or multi-day production qualification.