Agent Panel: Python Gemini code include \```python \```
Summary
Gemini 2.5 pro preview generate code with backticks ```python <all the code> ```
Description
Steps to trigger the problem:
- Connect gemini through google api key
- Request
gemini 2.5 pro previewto generate python code for existing file - Backticks should appear around
Actual Behaviour: Backticks appear around code e.g.
```python
<all the code>
```
Expected Behaviour:
<all the code>
Zed Version and System Specs
Zed: v0.186.11 (Zed) OS: macOS 15.3.1 Memory: 16 GiB Architecture: aarch64
Also happens with JSON
This happens for me when in agent mode and Gemini tries to write a whole file, looks fine when it applies diffs.
I have this problem too. Everything is surrounded by back ticks and it took many prompts for me to realize Gemini is not aware of them, it does not know they are there. Also is happens whether I ask it to add to a file that I created, or a file it creates, regardless. It seems Gemini just doesn't work, everything gets surrounded by backticks that it's unaware of.
Fixed in #31439. Should be in Nightly already, and soon in Preview and Stable.
Please re-open this issue if you see the issue again (after the update)