set_if_blank/mint_key_if_blank used sed -i "s|^KEY=.*|...|", which only replaces an existing KEY= line — a no-op if the line isn't there at all. Any .env created before a var was added to .env.example (SEARXNG_LAN_IP, PGVECTOR_DB_PASSWORD, MEMORY_RETRIEVAL_*, etc.) silently never got that var filled in. Both helpers now check for "line missing" as a third case and append it. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>