Correctly initialize search_field_shown to avoid phantom search field
after the prompt