VS Code Gemini Code Assist: Agentic mode blocks shell commands with no approval prompt or configurable settings
What happened?
When using the Gemini Code Assist extension in VS Code with agentic mode enabled, any shell command execution (such as mkdir, npm, git, etc.) is automatically blocked. There is no prompt asking for approval, and there are no available settings in VS Code (including settings.json) to change approval modes or allowed tools. All I did was turn on agent mode; I did not modify any Gemini or VS Code settings/files manually. This issue does not occur with GitHub Copilot, which behaves as expected in similar scenarios.
What did you expect to happen?
I expected Gemini to either:
- Prompt for approval before executing shell commands (as with CLI),
- Or provide configuration options to allow/approve specific commands or set approval modes in VS Code settings. Currently, neither occurs: commands are blocked without user control or feedback.
Client information
Gemini Code Assist VS Code Extension (latest) Windows 11 Gemini Code Assist agent mode: enabled No Gemini CLI installed or used Extension settings checked: no 'approval mode' or 'allowed tools' settings found Login: Google Account
(About output is not available since this is for VS Code extension only, CLI not installed)
Login information
Google Account
Anything else we need to know?
This problem has been compared with GitHub Copilot, which prompts and allows shell command execution with proper controls in similar situations. There is no feature parity or workaround for Gemini at present. All troubleshooting steps have been followed (workspace trust, settings search, extension reload) with no change. This bug may impact developer productivity and security workflows.
https://www.reddit.com/r/GeminiAI/comments/1omghg2/gemini_code_assist_256_shell_commands_blocked_in/
Is there any update on when this will get fixed?
same issue with 2.64.0
I've got the same issue. It's quite urgent as I don't use gemini because of this. Half of the time gemini suggests to do a bash command that it can't do.
@lmarquar @angelangelov88 Everyone has also used the Feedback option within the extension to also make sure they are alerted to this from that channel as well?
@angelangelov88 Not ideal in the least but you can use version 2.55.0 of the extension (last version before the bug was introduced). That is what I've had to do (as mentioned in the reddit thread)
Users can address this issue by downgrading to 2.55.0, but this is a bug that needs to be fixed.
@jacob314 @gsquared94 Is google working yet on this issue? Please help that it gets some priority and assignment.
Same issue. Annoying. Without this feature, the extension is useless now. Feels like google is pushing us to use antigraviry instead.
@teddymaef Make sure to use the Feedback option within the extension to also make sure they are alerted to this from that channel as well. Not ideal in the least but you can use version 2.55.0 of the extension (last version before the bug was introduced). That is what I've had to do (as mentioned in the reddit thread)
Okay
@teddymaef Make sure to use the Feedback option within the extension to also make sure they are alerted to this from that channel as well. Not ideal in the least but you can use version 2.55.0 of the extension (last version before the bug was introduced). That is what I've had to do (as mentioned in the reddit thread)
Sure, I have submitted the feedkback there.
@abhipatel12 @SandyTao520 @NTaylorMullen @gundermanc @scidomino @jackwotherspoon
Can someone at google please tell us the status of this and get this to get some attention. I am sure someone is working on something with less priorty!
Sorry we have not responded sooner. We were very short staffed over the holidays.
Unfortunately, this is not an issue with Gemini CLI as far as I can tell. VS Code Gemini Code Assist plugin is a completely separate product with a completely separate codebase and a separate development team.
Please use the feedback mechanism in the plugin to report issues to the appropriate team.
Alternately, if you think I'm mistaken and GCLI is involved, let me know and I'll reopen the issue.
Just as a follow-up, I have forwarded it on to the Code Assist team
Please use the feedback mechanism in the plugin to report issues to the appropriate team. @scidomino @bdmorgan Thank you both, sorry we had this in the wrong place. Would at least one of you please suggest to the Code Assist team that they open up a issue tracker; perhaps just a placeholder github repo so that these issues can be tracked better it would help it to be a better product. (I did request by the feedback that they start an issue tracker, but a few pings on this would be helpful)
@scidomino Based on the "fix" [add default] in the "cli" by @DavidAPierce was this actually an issue in the "cli"?
@melutovich Apparently!
At least, in part.
As of today, the Shell usage still ain't working.
To add on that, the actual code review on gemini-cli repo even confirms that
Found possible duplicate issues:
- #7513
- #4870
- #5247
- #5349
If you believe this is not a duplicate, please remove the status/possible-duplicate label.