Skip to content

fix(sessions): apply afterTimestamp and numRecentEvents together in VertexAiSessionService#1372

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

fix(sessions): apply afterTimestamp and numRecentEvents together in VertexAiSessionService#1372
copybara-service[bot] merged 1 commit into
mainfrom
test_952662321

Conversation

@copybara-service

Copy link
Copy Markdown

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

getSession gated the server-side timestamp>= filter on numRecentEvents being absent, so the two GetSessionConfig filters could not be combined. Send the afterTimestamp filter whenever it is set and still trim to numRecentEvents client-side, so both compose. Mirrors the Go port, which already applies both.

…ertexAiSessionService

`getSession` gated the server-side `timestamp>=` filter on `numRecentEvents` being absent, so the two `GetSessionConfig` filters could not be combined. Send the `afterTimestamp` filter whenever it is set and still trim to `numRecentEvents` client-side, so both compose. Mirrors the Go port, which already applies both.

PiperOrigin-RevId: 952765675
@copybara-service
copybara-service Bot merged commit 24a4588 into main Jul 23, 2026
@copybara-service
copybara-service Bot deleted the test_952662321 branch July 23, 2026 15:08
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