I would expect a re-installed snap to always connect interfaces as it originally did, even if the interface was disconnected when the snap was removed. I encountered a problem with the following scenario:
I just noticed the same thing, with some other plug paratext-10-studio:gnome-3-28-1804 on some other snap. Before, the connections looked like below. After disconnect/remove/install the connection was absent, and I needed to manually connect, and now I’m stuck with a manual connection (as shown in the Notes column of snap connections). How do I get back to a clean slate, where the plug is auto-connected on install?
So it looks like snap remove ... --purge solves this. So apparently indented behavior is that remove by default saves a snapshot of the state, and a re-install then picks that up.
However, I had done snap disconnect + snap connect, and after remove/install the plug was disconnected. So there is some bug, I guess, around saving a snapshot of connections and then re-connecting on re-install…
It’s an intended behavior, snapd has a memory that tends to be sticky. You can see this hidden in the snap disconnect help:
When an automatic connection is manually disconnected, its disconnected state
is retained after a snap refresh. The --forget flag can be added to the
disconnect command to reset this behaviour, and consequently re-enable
an automatic reconnection after a snap refresh.
[disconnect command options]
--no-wait Do not wait for the operation to finish but just print the change id.
--forget Forget remembered state about the given connection.
I’d say it would be useful if remove also had this flag, so perhaps it’s a papercut.