gemini-cli icon indicating copy to clipboard operation
gemini-cli copied to clipboard

Gemini often removes if __name__ == "__main__": from python scripts and can't put it back

Open lupinsansei opened this issue 1 year ago • 1 comments

What happened?

Gemini often removes if name == "main": from python scripts and can't put it back despite repeated requests probably some issue with escape the __ or == chars

What did you expect to happen?

to not remove if name == "main": from python scripts or to be able to put it back

Client information

  • CLI Version: 0.1.9
  • Git Commit: N/A
  • Operating System: linux v22.16.0
  • Sandbox Environment: no sandbox
  • Model Version: gemini-2.5-flash
  • Memory Usage: 131.3 MB

Login information

No response

Anything else we need to know?

No response

lupinsansei avatar Jul 06 '25 09:07 lupinsansei

Hello! As part of our effort to keep our backlog manageable and focus on the most active issues, we are tidying up older reports.

It looks like this issue hasn't been active for a while, so we are closing it for now. However, if you are still experiencing this bug on the latest stable build, please feel free to comment on this issue or create a new one with updated details.

Thank you for your contribution!

gemini-cli[bot] avatar Dec 03 '25 21:12 gemini-cli[bot]