# agent: Fix Gemini refusing all requests with file-based tool calls \(\#38705\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/3ac14e15bb5f9cabdb57f9c7ccc1ac7255cec85f)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 3ac14e15bb5f9cabdb57f9c7ccc1ac7255cec85f

Requested commit: 3ac14e15bb5f9cabdb57f9c7ccc1ac7255cec85f

Commit: 3ac14e15bb5f9cabdb57f9c7ccc1ac7255cec85f

Tree: 37a2821931efafe69ea4d3f313dc05c7b6e14509

Author: Ben Brandt

Committer: GitHub

## Message

```
agent: Fix Gemini refusing all requests with file-based tool calls (#38705)

Solves an issue where Google APIs refuse all requests with file-based
tool calls attached.
This seems to get triggered in the case where:

- copy_path + another file-based tool call is enabled
- default terminal is `/bin/bash` or something similar

It is unclear why this is happening, but removing the terminal commands
in those tool calls seems to have solved the issue.

Closes #37180 and #37414

Release Notes:

- agent: Fix Gemini refusing requests with certain profiles/systems.
```

## Parents

- [9e7302520ec93a96a9b275a817f083b96620148e](https://git.cafe/gitcafe/zed/commit/9e7302520ec93a96a9b275a817f083b96620148e?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/3ac14e15bb5f9cabdb57f9c7ccc1ac7255cec85f?format=markdown)
