Backport #29304 to branch v25.1.x. This issue was created as a placeholder because the original PR's commit(s) could not be automatically cherry-picked.
Here are the commands to execute:
git checkout v25.1.x
git checkout -b manual-backport-29304-v25.1.x-456
git cherry-pick -x b7c6970e63
git push origin manual-backport-29304-v25.1.x-456
gh pr create \
--title "[v25.1.x] CORE-14617 kafka: fix fetch session retry losing partition inclusion" \
--base "v25.1.x" \
--label "kind/backport" \
--head "manual-backport-29304-v25.1.x-456" \
--draft \
--repo "redpanda-data/redpanda" \
--milestone "v25.1.x-next" \
--body "Backport of PR https://github.com/redpanda-data/redpanda/pull/29304 "