I'm not a web developer nor do I understand how browser secrets are managed on MacOS. If this is indeed correct, could someone please explain how this might be possible? Is it that bearer tokens or session state might be stored on disk in plaintext?
BTW Unlike Safari, Chrome protects against this by encrypting the cookies using macOS's keychain API.
Also, "we encrypt secrets on disk" is usually just pure nonsense, only slightly better than using rot-13. If an app can decrypt the secrets without asking for your password, then a malicious app can also do that.
"In both scenarios, it can happen, but it’s not the intention of the permission and it’s confusing when presented to the user this way."
Intention? What does anyone's intention have to do with price of eggs? A app that has been granted these permissions (keyboard, mouse, modify UI, etc.) can ultimately do whatever it wants regardless of any one particular so-and-so's "intention." Perhaps today, the app and everyone involved with it have perfectly noble intentions. Perhaps tomorrow, this changes. Who knows. The permission will still be granted and the app can go ham on you.
"This permission is mandatory if you want the app to enhance the system. It is used by apps like Alfred, Raycast, Rectangle, Magnet, Bartender, and many others"
Good lord. Kudos to Apple here. This CYA is exactly what people need to be confronted with, and has near exactly the level of scary that it should.