gemini-cli-extensions / gemini-cli-extensions/conductor

API 400 death loop with function response

Open
#62 2 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
3.7k
Forks
295
Avg merge
9m
Merged PRs (30d)
1

Description

I've now hit this 3 times in the last couple of days. Once its in this loop, gemini cli will not respond to any prompts. I must delete tmp folders.

[API Error: [{
    "error": {
      "code": 400,
      "message": "Please ensure that the number of function response parts is equal to the number of function call parts of
  the function call turn.",
      "errors": [
        {
          "message": "Please ensure that the number of function response parts is equal to the number of function call
  parts of the function call turn.",
          "domain": "global",
          "reason": "badRequest"
        }
      ],
      "status": "INVALID_ARGUMENT"
    }
  }
  ]]

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Gemini CLI 400 error involving mismatched function response and function call parts. Inspect the temporary folders involved in recovery and determine what state persists after the loop; done means the CLI accepts subsequent prompts without requiring those folders to be deleted.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.