From what I read I had thought that the package noindentafter would reliably get rid of any indent after an environment no matter if followed or not by an empty line, as suggested here. But consider this:
\documentclass{report}
\usepackage{lipsum}
\newenvironment{newenv}{}{%
%\ignorespacesafterend\noindent% << OPTION 2
}
\usepackage{noindentafter}\NoIndentAfterEnv{newenv} % OPTION 1
\begin{document}
\begin{newenv} % First Sequence
\lipsum[6]
\end{newenv}
\lipsum[7-8]
\begin{newenv} % Second Sequence
\lipsum[6]
\end{newenv}
\lipsum[7-8]
\end{document}
Using noindentafter works for the first sequence, but not for the second where I have left no line after \end{newenv}. Now I've tried to not use the package and do it manually with what I've labeled option 2 above (outcommenting option 1). This works for the second scenario but not for the first. I have further tried to use both together (leaving both options uncommented), which gives the weird result that while in the second scenario it's fine, in the first scenario I now get the first and second paragraphs after the environment with no indent.
From the package documentation and this question and the ones referred to in there I couldn't figure out what could be wrong here. (Other than me leaving or not an empty line, but I am trying to find a stable solution since the particular environment I'm working on gets \input from other files where I can never be sure if they end or do not end with an empty line.)

noindentafterchecks whether it is followed by a paragraph, which means it doesn't do anything if there is no empty line after the environment. You will have to patch\NoIndentAfterEnvto insert some \par if you want to change this. – Ulrike Fischer Oct 23 '16 at 13:29\parafter the environment but to no avail. – jan Oct 23 '16 at 14:12noindentafterpackage is broken with the latest latex version (may 2021), seems it has been broken since nov 2019. See this github issue and this SE TeX question for details and potential solutions. – Carl May 11 '21 at 18:19