{# ---- Context picker: attach an entry to a task ---------------------- #}
{# Draft mode (no target yet): picks land in the new-task form. #}
{# Local files: the OS dialog does the browsing -- server and browser #}
{# share a desktop, so the server can open it and report the path. #}
{# Fallback for everything else: paste one. #}
{# One note applies to the next attachment -- "why is this here" is what #}
{# the agent reads, and once per file is the realistic amount of effort. #}
{# A row toggles: attached -> detach, not attached -> attach. #}