Commit 4bce61c16365c3759d2b053caad2e0f655dd617f introduced a wrapper for apt-get. But apt-shell is subject to similar problems. Please, consider wrapping apt-shell, too.
apt-0.5.15lorg2-alt77 -> sisyphus: Tue Mar 22 2022 Vitaly Chikunov <vt@altlinux> 0.5.15lorg2-alt77 - Add wrapper to apt-shell too (closes: #42201).