Gh405 propagate flags from codesync algorithm

Let's add a comment here: why is this needed?