Skip to content

Most sessions end up with error: Response stopped due to malformed function call #5760

Description

@matdev83

What happened?

Most sessions end up with error: Response stopped due to malformed function call while gemini-cli is trying to edit some files. This error usually appears after another error: Failed to edit, 0 occurrences found for old_string is being reported for some times.
This leads to the third error: A potential loop was detected. This can happen due to repetitive tool calls or other model behavior. The request has been halted. which finally renders ALL FILE EDIT OPERATIONS IMPOSSIBLE.

What did you expect to happen?

gemini-cli properly using/calling tools, properly editing files, not stuck in a loop, not being halted due to misbehavior

Client information

  • CLI Version: 0.1.18
  • Git Commit: cd7e60e
  • Operating System: win32 v22.15.0
  • Sandbox Environment: no sandbox
  • Model Version: gemini-2.5-pro
  • Memory Usage: 169.5 MB

Login information

No response

Anything else we need to know?

No response

Activity

  1. added
    priority/p1Important and should be addressed in the near term.
    area/coreIssues related to User Interface, OS Support, Core Functionality
    and removed
    status/need-triageIssues that need to be triaged by the triage automation.
    on Aug 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/coreIssues related to User Interface, OS Support, Core Functionalitypriority/p1Important and should be addressed in the near term.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions