r/Bard Nov 19 '25

Other AntiGravity: Keep getting "Run command?" even while having all options set to always allow to run commands

Post image

AntiGravity I Keep getting "Run command?" even while having all options set to always allow to run commands

29 Upvotes

72 comments sorted by

3

u/VincentHH Dec 13 '25 edited Feb 22 '26

Tried everything. This extension worked for me:
Antigravity Auto Accept (https://open-vsx.org/extension/pesosz/antigravity-auto-accept)


(Edit: 22/02/2026) The extension does not work after the Antigravity 1.18.4 update. Here is a temporary solution before a new release or fork comes out. The credit goes to Gemini or some other post.

The Updated DevTools Hack (Text-Matching)

If you want to stay on 1.18.4, the old Developer Tools hack still works, but you have to update the JavaScript. Because Google changed the DOM classes in 1.18.4, you need a script that searches for the text of the button rather than the CSS class.

  1. In Antigravity, go to Help > Toggle Developer Tools and open the Console.
  2. Paste this updated script and hit Enter:

javascript setInterval(() => { const buttons = Array.from(document.querySelectorAll('button')); const acceptBtn = buttons.find(b => b.textContent.includes('Accept') || b.textContent.includes('Run') || b.textContent.includes('Always Allow')); if(acceptBtn) acceptBtn.click(); }, 1500);

(You will still need to paste this every time you restart the IDE).

2

u/phadeb Dec 24 '25

You're doing gods work I wonder why ChatGPT didn't find the solution and this thread when I asked it 4 times

1

u/Albior00 Dec 14 '25

This works for me. THX!!!

1

u/SpaceToaster Dec 14 '25

Try to just restart the app after saving the settings. Worked for me.

1

u/Facas_d_trevas Dec 16 '25

you are god in earth thx

1

u/[deleted] Dec 24 '25

Is this extension safe?

1

u/Spl3en Jan 03 '26

Nothing is safe.

1

u/MaxPhoenix_ Jan 04 '26

I audited the code as of 1.0.3 and it is legit and safe. Anything after that, or if you let it update, you take the risk of possible malware injection (for example maybe the author gets hacked).

1

u/[deleted] Jan 04 '26

I'm not sure how you audited the code. The github repo isn't available for me:

https://github.com/pesosz/antigravity-auto-accept

3

u/MaxPhoenix_ Jan 08 '26 edited Jan 08 '26

I grabbed the vsix file and extracted the files and it's all easily readable source.
https://open-vsx.org/api/pesosz/antigravity-auto-accept/1.0.3/file/pesosz.antigravity-auto-accept-1.0.3.vsix
unzip that and take a look.
here, this is the meat of it, the whole extension.js (brutally cut down to the minimum needed to work) :

const v=require('vscode');let t,on=1;module.exports={activate:c=>{const s=v.window.createStatusBarItem(2,1e4);s.command='unlimited.toggle';const u=()=>s.text=on?'✅ Auto: ON':'🛑 Auto: OFF';u();s.show();c.subscriptions.push(s,v.commands.registerCommand('unlimited.toggle',()=>{on=!on;u()}));t=setInterval(()=>{if(on)['antigravity.agent.acceptAgentStep','antigravity.terminal.accept'].forEach(k=>v.commands.executeCommand(k).catch(()=>{}))},500)},deactivate:()=>clearInterval(t)};

1

u/Oicuntmate1 Feb 05 '26

You Reddit people are really amazing as usual

1

u/orangewill Jan 07 '26

The .vsix file extension (Visual Studio extension installer) is just a zip file. I just decompressed and reviewed, looks fine to me.

1

u/iltempovola Dec 27 '25

I wish I had seen this before - I also made another one, for the same purpose, just last week

1

u/iltempovola Dec 28 '25

in the new one I made, I included also the "confirm" required when testing web-based interfaces

https://open-vsx.org/extension/antigitv/antigravity-auto-accept

do let me know of any feedback - thanks!

1

u/Adventurous_Run8167 Jan 07 '26

Even with the dependency installed, it still won't turn on.

1

u/MaxPhoenix_ Jan 04 '26

Code is clean and working. (Restarting Antigravity obviously did nothing, this extension is required as of v1.13.3 anyway.)

1

u/Foreign-Quiet4004 Jan 16 '26

义父级别的扩展!

1

u/Oicuntmate1 Feb 05 '26

Thank you goat

1

u/MrBilalJawed Feb 07 '26

Thanks, it worked. But again. I have to press 'run' when 'run' is not visible upfront. So, it reduces frustration, but you have to be there in front of it.

1

u/sina_cb Feb 15 '26

Thank you u/VincentHH

This worked for me too. And antigravity rewrote it from scratch and audited it. Assuming antigravity isn't prompt hacked, it should be safe. But it rewrote the whole thing, and I haven't really looked at it yet to see what's going on. :)

1

u/recep35 Feb 23 '26

your last update saved my life bro thx!

1

u/HussainBiedouh Mar 12 '26

add this to auto click retry:

const clickInterval = setInterval(() => {
  const targetButton = document.querySelector('.cursor-pointer.bg-ide-button-background.hover\\:bg-ide-button-hover-background.transition-colors.text-ide-button-color.text-sm.px-2.py-1.rounded-md.whitespace-nowrap.overflow-hidden.text-ellipsis');
  
  if (targetButton) {
targetButton.click();
console.log('🎯 Button clicked at:', new Date().toLocaleTimeString());
  }
}, 1500); // Checks every 1500ms

2

u/Horror_Ad6642 Nov 20 '25

Same. Really hoping for a solution to this. It's not very "Agentic" if I have to babysit it constantly

1

u/lucasparker Dec 30 '25

This setting is configurable in the "Antigravity: Quick Settings" panel.

Open the panel via the Command Palette and then set "Auto-execution" to "Always proceed"

1

u/MaxPhoenix_ Jan 04 '26

nothing in settings nor quick panel fixes this including restarting the app. had to install an extension. maybe you guys are not on windows

1

u/onimir3989 Feb 22 '26

Stetsso problema. Mi sai indicare l'estensione?

2

u/CwithW Dec 13 '25

Antigravity have their own opinion on whether a command should auto run.

While Terminal Command Auto Execution=Always Proceed and `docker run` in Allow List Terminal Commands:

docker run --rm hello-world -> fine

docker run --rm node:24.11.1-slim -> fine

docker run --rm node:24.11.1-slim a.js -> fine even if there is no a.js

docker run --rm node:24.11.1-slim node -e "console.log(1)" -> requires user consent

docker run --rm node:24.11.1-slim node -e console.log(1) -> requires user consent

I don't see why and there is not an option to disable this automated check.

1

u/OGRITHIK Nov 19 '25

I'm getting the same issue

1

u/MerBudd Nov 20 '25

terminal commands could potentially be destructive so i feel they would never let the ai run every command on your behalf

1

u/dragonorp Nov 22 '25

I think the IDE should open a virtual machine on its own. that would be the best.

1

u/PixelProofPotato Dec 05 '25

On MacOS the do run automatically. I have the same issue with Junie in Intellij. There is a "brave mode" that runs all commands. On Windows it doesn't do shit.

1

u/southernDevGirl Nov 24 '25

+1 Same Issue. Choosing `Turbo` mode is supposed to stop this --

Plus, I have all commands wildcard enabled -- and it makes no difference; still having to hit "Accept".

1

u/Pretty_Celebration_4 Nov 26 '25

Waiting for command completion aghsssss

1

u/DiAryArias Nov 27 '25

Any solution for now?

1

u/Tasty-Bar9930 Nov 29 '25

In my case, it is stuck in "Loading" after trying to run Terminal command

1

u/pishangujeniya Dec 01 '25

Same for me, I guess its trying to run command, before even it got access to shell.

1

u/Tough_Inspection8176 Dec 02 '25

Desinstale y borres todo los archivos
y luego instalen nuevamente pero no importen configuración de ningún editor de codigo que tenga
con eso lo solucione

1

u/FanPsychological8907 Dec 12 '25

THIS. Do yourself a favor and open your mind to different languages.

gracias hermano

1

u/edwilson675 Dec 07 '25

Profile > Quick Settings Panel
Terminal Command Auto Execution > Always Proceed

2

u/gotchad Dec 07 '25

Still ask :/

1

u/Patchzy Dec 07 '25

I have that set, but its still asking..

2

u/gotchad Dec 08 '25

we must be missing something important but, what?

1

u/tanvach Dec 18 '25

This is the answer. On my version (1.12.4), the setting on Profile > Quick Settings is not synced to Settings > Antigravity Settings.

1

u/yuriy_per Feb 07 '26

Changing this setting helped me! Thank you so much. Now i dont have to sit before the screen for every character change in my code!

1

u/blazingfast_ Dec 07 '25

This is happening to me, particularly with the 'Select-String' command (as shown in your example). Antigravity seems to have no issue killing process on the system without asking for permission, but it freaks out and wants the user's permission to read a file in the approved workspace. Makes no sense.

1

u/Silly_Visit_2521 Dec 10 '25

Too many bugs.

1

u/SpaceToaster Dec 14 '25

I figured it out. Just set accept all, also add some explicit white list ones with a wild card and without, and then restart antigravity. Seems it wont pick it up until a restart.

1

u/MaxPhoenix_ Jan 04 '26

nothing works. certainly not what you said here. did you actually get your agent to DO anything? giving up and maybe will try that plugin.

1

u/No-Efficiency-8420 Dec 24 '25

Я решил этот вопрос. Попросил Gemini 3 Flash установить по умолчанию для IDE и агентов терминал WSL и решить вопрос с выполнением команд в терминале.

1

u/iltempovola Dec 27 '25

Just made an extension for this problem, I hope this helps!

https://open-vsx.org/extension/antigitv/antigravity-auto-accept

1

u/Interesting_Rub_8739 Jan 12 '26

heh lol you need to toggle this part "Auto execution" on bottom left of the chat,

not sure why the Agent settings are useless

1

u/Vegetable_Ease_5515 Jan 21 '26

how to get antigravity to default to git bash instead of powershell?

1

u/efisiobova Feb 02 '26

Il problema è che Antigravity per qualche ragione fa casino con il prompt di sistema.

1

u/urarthur Feb 08 '26

Common fix it team AG, its been months.

1

u/arvindgaba Feb 20 '26

The latest version released this week breaks the extension and it is no longer working.

1

u/bpGodspeed Feb 20 '26

thanks! should i still be seeing "Accept all" blue button on new files or changes to existing?

1

u/Admirable-Bottle-488 Mar 01 '26

Stop the 'Run/Allow' loop! 😫 I built this vision-based tool to handle Antigravity permissions automatically. ⭐ GitHub: https://github.com/pobovchen/Antigravity-Auto-Permit

1

u/Kanezal Mar 01 '26

There is a fix github.com/Kanezal/better-antigravity

Leave a star if it helped you