Disable AI Review Prompt button?

100 views
Skip to first unread message

Alex

unread,
Apr 13, 2026, 12:57:25 PM (2 days ago) Apr 13
to Repo and Gerrit Discussion
We upgraded to v3.13 to find the AI Review Prompt button.  Is there any way to disable this?
We were looking through the documentation and couldn't figure it out.

We have a no-AI policy, so it was a pretty surprising addition.

Thanks!

 -- Alex

Clark Boylan

unread,
Apr 13, 2026, 2:15:13 PM (2 days ago) Apr 13
to Alex, Repo and Gerrit Discussion
On Mon, Apr 13, 2026 at 9:57 AM Alex <kalli...@gmail.com> wrote:
>
> We upgraded to v3.13 to find the AI Review Prompt button. Is there any way to disable this?
> We were looking through the documentation and couldn't figure it out.

We just upgraded to 3.12 and have started the very early process of
3.13 upgrade preparation so I was curious about this myself. Digging
through the change history it looks like this was added in
https://gerrit-review.googlesource.com/c/gerrit/+/479041 back in June
as an experiment requiring the GET_AI_PROMPT flag to be set. There
wasn't any documentation. Then in September this update enabled it by
default, and I don't see any way to disable it:
https://gerrit-review.googlesource.com/c/gerrit/+/510984/5/polygerrit-ui/app/elements/change/gr-change-summary/gr-change-summary.ts

Additionally, it looks like the prompt templates are hardcoded:
https://gerrit-review.googlesource.com/c/gerrit/+/479041/5/polygerrit-ui/app/elements/change/gr-ai-prompt-dialog/prompts.ts
and not configurable like the email templates. I think it would
probably be a good idea to make this opt in (rather than opt out) at a
project/repo level. Different projects may have different approaches
to the use of AI tooling. And making that configurable to meet the
needs of individual projects would also be important (which probably
includes the ability to set different templates in each project).

Finally, should experiments include documentation when they are added
so that when they are enabled by default we don't have to worry about
missing that additional step? Also, I don't know if there is a formal
process for experiments, but I think that only people deploying from
Gerrit master would've been exposed to this experiment due to the
short period of time it was running.

Alex

unread,
Apr 13, 2026, 2:44:53 PM (2 days ago) Apr 13
to Repo and Gerrit Discussion
It feels like back-porting a way to disable this feature (even if rudimentary and global) might be a possible candidate as a "bug fix" for v3.13?
Something "experimental" and seemingly unfinished like this getting put into a production Gerrit release feels like a "bug"

Based on the documentation i've seen, we're a month minimum minimum away from v3.14.  I really don't want to downgrade our large deployment
of Gerrit and risk corruption of our repos over this. (but our position is that hiding this experimental button is that important)

 -- Alex

Luca Milanesio

unread,
Apr 13, 2026, 5:06:27 PM (2 days ago) Apr 13
to Repo and Gerrit Discussion, Luca Milanesio, Alex


> On 13 Apr 2026, at 19:44, Alex <kalli...@gmail.com> wrote:
>
> It feels like back-porting a way to disable this feature (even if rudimentary and global) might be a possible candidate as a "bug fix" for v3.13?
> Something "experimental" and seemingly unfinished like this getting put into a production Gerrit release feels like a "bug"
>
> Based on the documentation i've seen, we're a month minimum minimum away from v3.14. I really don't want to downgrade our large deployment
> of Gerrit and risk corruption of our repos over this. (but our position is that hiding this experimental button is that important)


Please read the Gerrit v3.14 release notes [1] and watch my presentation at the GerritMeets in February 2026 [2]: you can enable and disable AI using Gerrit ACL’s model.
With regards to v3.13, the GerritMeets of November 2025 was clear explaining that AI support was still in “experiment” mode: I believe that the experiment feature flag was removed too soon.

HTH

Luca.

[1] https://www.gerritcodereview.com/3.14.html
[2] https://youtu.be/sZ9SmMjnH6k
[3] https://youtu.be/44CLeOeSJks
> --
> --
> To unsubscribe, email repo-discuss...@googlegroups.com
> More info at http://groups.google.com/group/repo-discuss?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/repo-discuss/19582a1b-c0e3-453d-a9d2-ac362cf364afn%40googlegroups.com.

Alex

unread,
Apr 14, 2026, 12:12:08 PM (23 hours ago) Apr 14
to Repo and Gerrit Discussion
To anyone else looking to disable this until v3.14 comes out, one of our developers made a javascript plugin hack to remove the obnoxious AI Review Prompt button:
(you might need to tweak it, i extracted it from our larger custom plugin)

Gerrit.install(plugin => {
  function removeAI(root = document.body)
    for (const element of root.querySelectorAll('*')) {
      /*HACK: no AI*/ if (element.nodeName == 'GR-COMMENTS-SUMMARY' && !!element.nextElementSibling) element.nextElementSibling.remove();
  }
  addEventListener('load', (event) => removeAI());
});

Thanks!
   -- Alex
Reply all
Reply to author
Forward
0 new messages