On my system I can cut and paste text reliably, it works 100% of the time.
However copying text does not always copy, and when I paste I can get the previously copied item. This has been going on for several years, and I've experienced it across multiple power cycles, and multiple Macs, including both Intel and Apple silicon devices. I've also experienced it at a minimum across MacOS 13/12, and possibly earlier.
I've had situations when I've tried to copy URLs or text from chrome into slack or VSCode and found older clipboard contents were pasted, and I've had to cut rather than copy despite multiple attempts to copy to rule out not holding the keys properly or mis-clicking.
I've disabled continuity in hopes that this was lag in the universal clipboard, but it has not helped. I also see this behaviour with both CMD+C and right click->copy. The pbcopy
CLI command works reliably from what I've noticed but I'm not sure.
How do I test and debug this to get technical information on failed copies? Is there a command or UI in MacOS to identify apps that might be interfering with this?