Repository navigation
perf(session): skip live content loading for deferred and terminal commits - #6180
Closed
OnePerson2020 wants to merge 1 commit into
Closed
OnePerson2020 wants to merge 1 commit into
OnePerson2020 wants to merge 1 commit into
Conversation
This was referenced Oct 16, 2026
Contributor
Author
|
Superseded by #6332, which removes the live session load from Phase 2 entirely. After rebasing onto main this branch would only add a load back, so closing. |
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
Every SessionCommit redelivery currently loads the live conversation before checking whether the archive is already terminal or is waiting for its predecessor. Long-running predecessors therefore cause repeated message reads and parsing for work that cannot run yet. Load the session inside resume_queued_commit only after the terminal and predecessor checks pass.
Human Involvement
Related Issue
Related to #6083, which addresses lock-contention requeue and retry pacing. This patch independently removes unnecessary live-content loading; it does not change retry timing or exception policy.
Type of Change
Changes Made
Testing
Additional Notes
CI follow-up (2026-10-16): the API/CLI job in run
38899528099fails in fivefilesystem/test_fs_cp.pycases while preparing source files. WithHAS_SECRETS=false, those setup writes wait for embedding and receive HTTP 500 wrapping an HTTP 401 from the dummy model key. The same failures occur on #6179 and #6181. Existing PR #6162 fixes the no-secret prerequisites and its integration run38864737070passed. Plugin, plugin-version, and dependency checks passed here; this integration check remains failed pending that independent CI fix.Based on main 7c34e43, including #6175. No new configuration, queue schema, background scheduler, or timing change. The optimization removes per-redelivery loading; it does not eliminate requeues themselves.