Symptom

After completing a local-first flow (e.g. bullet-journal), the what-next chooser redisplayed flows in the same default order — putting “Connect to a Krill server” at the top even though the user just finished a local-first task.

Root cause

FlowEngine discarded the lastCreatedKind when branching to a new flow via ChainTo. On ReturnToChooser, the engine went to Idle without preserving any context from the completed flow chain, so FlowChooser had no signal to use for reordering.

Fix

Prevention