Fix AskUserQuestion Rendering

Nucleic-Session: A563CF12-F6B3-498A-8640-97DFC24F59EF
Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
2026-07-05 02:36:28 -07:00
co-authored by Nucleic
parent 27a69cfd4f
commit 35dcce14ae
@@ -62,7 +62,11 @@ final class NotificationRouter: NSObject {
content.title = sessionTitle content.title = sessionTitle
content.body = "\(approval.toolName) wants: \(approval.title)" content.body = "\(approval.toolName) wants: \(approval.title)"
content.sound = .default content.sound = .default
content.categoryIdentifier = approval.risk.isHigh // AskUserQuestion collects answers, it doesn't gate — a banner Allow would reply with no
// selection (updatedInput: nil) and the CLI reports the question went unanswered. So, like
// a high-risk approval, it uses the action-less category: it must open the app and be
// answered on the picker card.
content.categoryIdentifier = approval.risk.isHigh || approval.toolName == AskUserQuestion.toolName
? Self.approvalCategory : Self.approvalActionableCategory ? Self.approvalCategory : Self.approvalActionableCategory
content.userInfo = [ content.userInfo = [
"sessionID": approval.sessionID.rawValue, "sessionID": approval.sessionID.rawValue,