Skip to content

Gemini cli floods current dir with test_ and patch_ files #24708

@tom-neara

Description

@tom-neara

What happened?

I had a long session where I was getting gemini to make changes to code, fix broken unit tests, etc, and afterwards I found that there were over 100 .py files in the current directory, untracked by git

% git status . | grep '^\s*\(test_\|patch_\).*.py'| wc -l
126

What did you expect to happen?

No untracked files created except under extreme circumstances, just like claude

Client information

  • CLI Version: 0.36.0
  • Git Commit: 8b1e649
  • Session ID: 960a0117-c4f4-407b-b39d-de0a584cf28b
  • Operating System: darwin v22.14.0
  • Sandbox Environment: no sandbox
  • Model Version: gemini-3.1-pro-preview
  • Auth Type: vertex-ai
  • Memory Usage: 644.0 MB
  • Terminal Name: WezTerm 20260117-154428-05343b38
  • Terminal Background: #1f1d45
  • Kitty Keyboard Protocol: Unsupported

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 Qualitystatus/need-triageIssues that need to be triaged by the triage automation.

    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