Looks like it was a coincidence that it worked for a couple of times after installing libvte-2.91-0. Because it stopped working and instead got this message.
$ kgx (kgx:8877): Gtk-WARNING **: 11:16:41.855: Unable to acquire the address of the accessibility bus: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files. If you are attempting to run GTK without a11y support, GTK_A11Y should be set to 'none'. double free or corruption (out) Aborted Perhaps this is an upstream bug and this bug can be moved to https://packages.debian.org/source/trixie/vte2.91