DNF ran a sudo command during search?

I ran “dnf search openjdk” and in the stream noticed that it randomly just sort of wrote out this before outputting the search results

sudo dnf install google-chrome
google-chrome

I have no idea what caused this, could it be some sort of a dependency for search? And if so, why was I not called? I did start writing a sudo command during the process but it definitely didn’t include anything about chrome and/or google, was that some weird “autocomplete”?

Dnf search does not do that.

Did you happen to have sudo dnf… in your clipboard?
And did you paste it?

yeah please send the complete output you got.

you would need to enter a sudo password if it ran a sudo command