Foreground Connection Delay Adjustment

Nucleic-Session: CB658C4F-A19F-447C-B313-7CB21783BD94
Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
2026-07-09 14:37:30 -07:00
co-authored by Nucleic
parent f0c6488a06
commit 39fd8081f7
@@ -1493,7 +1493,10 @@ final class RemoteStore: ObservableObject {
if demoMode {
demoHandle(.approvalRespond(approval.id, decision))
} else {
connection(owningSession: approval.sessionID)?.send(.approvalRespond(approval.id, decision))
// Through `send` so an Allow/Deny tapped during the optimistic window is queued and
// replayed on connect (a live host resolves it; others no-op on the unknown id), rather
// than dropped because the owning Mac's socket is mid-reconnect.
send(.approvalRespond(approval.id, decision))
}
openApprovals.removeAll { $0.id == approval.id } // optimistic dismiss; host confirms
}