\documentclass[../main.tex]{subfiles}
\begin{document}
\chapter{Chapter with subsections}
Here we introduce the bug as it currently is experienced by a user.
\subfile{sections/first.tex}
\subfile{sections/second.tex}
\end{document}
