On Wayland, the app you copied from owns the clipboard, so closing it emptied the clipboard even though the entry was still at the top of Omarchy's clipboard history. omacom/omarchy#20762, opened by dhh and merged by
dhh into quattro as omacom/omarchy@bc3d44bd70f1, fixes this. Once every watcher sees the clipboard go empty, Omarchy offers the last non-sensitive text or image again. Copies marked sensitive, such as from password managers, are not stored.
In omacom/omarchy#20762:discussion_r4731835210, dhh addressed a race between restoring the old content and making a new copy. Any new copy, sensitive copy or clear now cancels a restore that is in progress, and text is decoded before the final emptiness check. He noted that Wayland's data-control protocols offer no atomic way to close that window entirely.
