When I go to use the keyboard shortcut for "Find action" (command+shift+A), macOS opens the terminal and with some output: myPreviousSearchResult\;type\=a,(replace myPreviousSearchResult with the previous search result you did on in the search bar).
It doesn't happen all the time, which adds to the peculiarity, and often does not happen when I first launch the search bar. Only the second search and onwards.

