I hit this from the headless side. I run everything on a Mac mini over SSH, and TCC prompts are invisible there too. Agents spin up new binaries that trip fresh permission prompts with no way to pre-approve them, so you either babysit screen sharing to click OK or leave screen sharing on, which is exactly the exposure that got the author here. The permission model assumes a person sitting at the keyboard, and it falls apart the moment the Mac is a server.