My Starship Prompt Revisited: Making Blocks Vanish Cleanly

A follow-up to my Starship setup: how I got the status and AI blocks to appear only when they matter, without leaving a powerline stub behind.