The problem `OSC 7501` addresses would slot almost perfectly into [UAPI.15 OSC 3008](https://uapi-group.org/specifications/specs/osc_context/#met...).
It's already implemented by `systemd` and is available in Ubuntu 26.04.
I'd rather see `OSC 3008` being extended.