The addition of a pty is a bit recent, so it may be related to the issue. Unfortunately, I do not know as much about ptys and pipes as I should... You seem to know a lot about it, though, so if you could take a look at the code it would be much appreciated.
The relevant code in question is located here: https:/ /projects. kde.org/ projects/ extragear/ sysadmin/ libqapt/ repository/ revisions/ master/ entry/src/ worker/ workerinstallpr ogress. cpp
The addition of a pty is a bit recent, so it may be related to the issue. Unfortunately, I do not know as much about ptys and pipes as I should... You seem to know a lot about it, though, so if you could take a look at the code it would be much appreciated.