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

VS Code Gemini Code Assist: Agentic mode blocks shell commands with no approval prompt or configurable settings

Open VenkatKwest opened this issue 1 year ago • 2 comments

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:

  1. Prompt for approval before executing shell commands (as with CLI),
  2. 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.

VenkatKwest avatar Nov 18 '25 13:11 VenkatKwest

https://www.reddit.com/r/GeminiAI/comments/1omghg2/gemini_code_assist_256_shell_commands_blocked_in/

VenkatKwest avatar Nov 19 '25 05:11 VenkatKwest

Is there any update on when this will get fixed?

melutovich avatar Dec 14 '25 18:12 melutovich

same issue with 2.64.0

leonmarq avatar Dec 23 '25 12:12 leonmarq

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.

angelangelov88 avatar Dec 25 '25 01:12 angelangelov88

@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)

melutovich avatar Dec 25 '25 11:12 melutovich

Users can address this issue by downgrading to 2.55.0, but this is a bug that needs to be fixed.

K22360679 avatar Dec 26 '25 03:12 K22360679

@jacob314 @gsquared94 Is google working yet on this issue? Please help that it gets some priority and assignment.

melutovich avatar Dec 26 '25 08:12 melutovich

Same issue. Annoying. Without this feature, the extension is useless now. Feels like google is pushing us to use antigraviry instead.

teddymaef avatar Dec 29 '25 09:12 teddymaef

@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)

melutovich avatar Dec 29 '25 10:12 melutovich

Okay

anowardear062-svg avatar Dec 29 '25 10:12 anowardear062-svg

@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.

teddymaef avatar Dec 29 '25 11:12 teddymaef

@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!

melutovich avatar Jan 06 '26 21:01 melutovich

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.

scidomino avatar Jan 07 '26 00:01 scidomino

Just as a follow-up, I have forwarded it on to the Code Assist team

bdmorgan avatar Jan 07 '26 00:01 bdmorgan

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)

melutovich avatar Jan 07 '26 06:01 melutovich

@scidomino Based on the "fix" [add default] in the "cli" by @DavidAPierce was this actually an issue in the "cli"?

melutovich avatar Jan 15 '26 18:01 melutovich

@melutovich Apparently!

scidomino avatar Jan 15 '26 20:01 scidomino

At least, in part.

scidomino avatar Jan 15 '26 20:01 scidomino

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

AndreaBozzo avatar Jan 17 '26 11:01 AndreaBozzo

Found possible duplicate issues:

  • #7513
  • #4870
  • #5247
  • #5349

If you believe this is not a duplicate, please remove the status/possible-duplicate label.

gemini-cli[bot] avatar Jan 26 '26 15:01 gemini-cli[bot]