We did land the first bit of the fix here to snapd: https://github.com/snapcore/snapd/pull/9805. That however needs to be used by the affected snaps to fix them, since we don’t want to break snaps that might be relying on the existing behavior for whatever reason, so the next PR to look for is one to snapcraft which updates the extension, then snaps that are affected by this will need to be rebuilt with the new version of snapcraft, then this bug should hopefully be fixed for good.
@jamesh were you going to submit the PR to snapcraft updating the extension?