Fix exclude types in session query

What does this MR do and why?

Fixes the query from !223582 (merged), which only passes the exclude types variable in the first page, but not subsequent pages.

References

#578969 (comment 3105038949)

Screenshots or screen recordings

Before After

How to set up and validate locally

Go to the session page for a project, e.g. https://gitlab.com/gitlab-org/modelops/applied-ml/code-suggestions/ai-assist/-/automate/agent-sessions

Check the network tab in dev tools, notice the excludeTypes is passed. Go to the next page, the excludeTypes is not passed on the next graphql query.

Check out this branch locally and it should pass the excludeTypes on each page.

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Roman Eisner

Merge request reports

Loading