Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
remote-controlled-man
deleted the
codex/deeptutor-bounded-last-message
branch
November 2, 2026 03:49
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.
Description
Keep PocketBase latest-message reads bounded when regenerating a response.
The regenerate path calls
get_last_messagetwice: once for the latest user message and once for the conversation tail. The store usedget_full_listwithperPage: 1, but the Python SDK replaces that parameter with its batch size and follows every page. Long conversations therefore downloaded their matching history twice just to select two records.Use
get_list(1, 1)and keep the existing session/role filters, descending timestamp order, serialization, and empty/error results. Add regression coverage for filtered and unfiltered reads, no matching role, and an inaccessible session.Related Issues
Follow-up to the regenerate feature in #349. This does not implement #2030's separate lazy-loading proposal.
Module(s) Affected
servicestestsValidation
pre-commit run --all-files: all hooks passed, including Ruff, Prettier, secret detection, Bandit, and MyPy.ruff check .andruff format --check .: passed with CI-pinned Ruff 0.16.0.Verified on macOS arm64 / Python 3.12.14. The full application/frontend suites, alternate platforms, and a live PocketBase/UI session were not run locally.
Checklist
dev.