Skip to content

Invalid apiVersion for agent-task commands #12729

@caspecoludvig

Description

@caspecoludvig

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

  1. Run gh agent-task list
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority-2Affects more than a few users but doesn't prevent core functions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions