Skip to content

Gemini CLI becomes extremely slow (1+ HOURS) / stuck during small code-edit tasks (agent loop + model response delays) #22141

@nitin-stockypro

Description

@nitin-stockypro

What happened?

I'm experiencing severe performance issues when using Gemini CLI for very small tasks (editing 1–3 files). The CLI frequently gets stuck for several minutes even after the edit is already completed.
In one case, Gemini CLI took 13–14 minutes just to answer a simple question ("which model are you using?") while processing a very small code change.
This seems related to the agent verification loop and possibly model routing when using Auto.

Environment :

  • Tool: Gemini CLI
  • Model setting: Auto (Gemini 3)
  • Auth: Browser-based login (not API key)
  • Sandbox: disabled (no sandbox)
  • Repo size: medium (~few hundred files)
  • OS: macOS
  • Task scope: 1–3 files

Example Task

I asked Gemini CLI to fix a simple validation issue in a React form.

Scope:
base-form.tsx
create-link-version-form.tsx

The change was very small (changing form validation mode).

Example diff:

const form = useForm({

  • mode: 'all',
  • mode: 'onChange',
    resolver: zodResolver(LinkVersionFormSchema),
    defaultValues,
    })

Asking a simple question like "which model are you using?" took ~13–14 minutes to receive a response.

What did you expect to happen?

Image

Client information

Client Information

Run gemini to enter the interactive CLI, then run the /about command.

> /about
# paste output here

Login information

No response

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/agentIssues related to Core Agent, Tools, Memory, Sub-Agents, Hooks, Agent Quality

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions