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.
3ac14e15bbBen Brandt committed on 9/23/2025, 12:14:03 PM· committed by GitHubparent9e73025