Skip to content

fix(sessions): apply numRecentEvents and afterTimestamp together in InMemorySessionService#1373

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_952662247
Jul 23, 2026
Merged

fix(sessions): apply numRecentEvents and afterTimestamp together in InMemorySessionService#1373
copybara-service[bot] merged 1 commit into
mainfrom
test_952662247

Conversation

@copybara-service

Copy link
Copy Markdown

fix(sessions): apply numRecentEvents and afterTimestamp together in InMemorySessionService

getSession applied afterTimestamp only when numRecentEvents was unset, so the two GetSessionConfig filters could not be combined. Apply numRecentEvents first, then afterTimestamp, so both compose. Mirrors Python and Go, which already apply both.

…nMemorySessionService

`getSession` applied `afterTimestamp` only when `numRecentEvents` was unset, so the two `GetSessionConfig` filters could not be combined. Apply `numRecentEvents` first, then `afterTimestamp`, so both compose. Mirrors Python and Go, which already apply both.

PiperOrigin-RevId: 952725154
@copybara-service
copybara-service Bot merged commit 4d19f7d into main Jul 23, 2026
@copybara-service
copybara-service Bot deleted the test_952662247 branch July 23, 2026 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant