When replaying session history from disk, the history parser now filters out any control_request events whose matching control_response or control_cancel_request never arrived in the recorded log. This prevents stale pending permission dialogs from re-appearing when a session is resumed.
Evidence
History event filter (search for "queryWithObserverTap: missing terminal after completion") — DXm() at ~line 875907
Strings lifted out of the shipped bundle, so the claim above can be checked against them.