In my LXD single-node server I cannot edit objects:
root@core01-rdc-cor:/tmp# snap list lxd
Name Version Rev Tracking Publisher Notes
lxd 5.21.4-7b6bd68 36153 5.21/stable canonical✓ held
root@core01-rdc-cor:/tmp# lxc config edit proxy01
Error: open /tmp/lxd_editor_2214415763.yaml: no such file or directory
Newer LXD version use core24 and we have plans to migrate 5.21 to this newer core too. Until then, you can probably create that tmpfiles.d snippet yourself do avoid running into the problem.
The default one you mentioned if for the host’s /tmp. Here due to the snap confinement, each snap gets its own /tmp and they show up in the host’s in /tmp/snap-private-tmp/*/tmp.
As such, my suggestion is to create in your host a file named /etc/tmpfiles.d/snap-tmp.conf with this content:
# Workaround for https://github.com/canonical/lxd/issues/16171
X /tmp/snap-private-tmp/*/tmp