Invalid apiVersion for agent-task commands
Describe the bug
When I run gh agent-task list I get failed to list sessions: 400 Bad Request
Affected version
gh version 2.87.0 (2026-02-18)
Steps to reproduce the behavior
- Run
gh agent-task list - See error
failed to list sessions: 400 Bad Request
Expected vs actual behavior
I want a successful response.
Notes
It seems the cli includes the header X-Github-Api-Version: 2022-11-28. If I make the call manually without setting this header I get a succesful response.