{# The plan above the composer -- where the LLeMbas CLI shows it, above its prompt, rather than as a block in the transcript after every change. Shown while anything on it is still to do; gone when it is all done or dropped. The element is always there, empty or not, so the stream's out-of-band frame (`oob`) always has somewhere to land. What is shown: the task in progress, what is left, then the last two done -- six lines at most, as in the terminal (`plans.summary_lines`). The whole card is one click away, behind the disclosure, with its Execute button for the plan as it stands. The status classes keep the names the stylesheet has: in progress, completed, cancelled, pending. #} {% set open_tasks = plan and plan.steps and (plan.phases | map(attribute="tasks") | sum(start=[]) | selectattr("status", "in", ["todo", "doing"]) | list) %}