Release YO (v0.51.685): extract session-list cache to its own module (#5004, #1907) - #5011
Merged
Merged
Conversation
Contributor
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.
Release YO (v0.51.685) — session-list cache module extraction
Ships #5004 (@rodboev) — incremental router-slimming (#1907), the proven #3575 extract-and-re-export pattern.
What it does
Moves the session-list cache cluster (state, locks, single-flight/inflight events, rebuild-thread ownership, invalidation/stamp) out of
api/routes.pyintoapi/route_session_list_cache.py, re-exported fromapi.routes. HTTP entrypoints stay in routes.py. No behavior change.Gate
from ... importof a reassigned cache global anywhere inapi/or tests (shared mutable objects accessed live viaroutes.__getattr__/module attribute); cross-module invalidation (clear_cli_sessions_cache+ stamp-bump) intact; fix(models): make session-index rebuild thread ownership explicit (#3894) #4993 rebuild-ownership + Bound state.db reads for paginated session loads #4920 since_timestamp + fix(#4842): stop lock-held CLI cache rebuild stalls during streaming #4952 single-flight logic moved unchanged; no import cycle (back-import is inside helpers).From a fork — release branch carries rodboev's commits; #5004 closed as shipped with credit.