When hasAssistant guard returns early, set flushed=false so the next persist (after assistant arrives) writes all entries including the user message.
When hasAssistant guard returns early, set flushed=false so the next persist (after assistant arrives) writes all entries including the user message.