Fix AskUserQuestion Rendering
Nucleic-Session: A563CF12-F6B3-498A-8640-97DFC24F59EF Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -62,7 +62,11 @@ final class NotificationRouter: NSObject {
|
||||
content.title = sessionTitle
|
||||
content.body = "\(approval.toolName) wants: \(approval.title)"
|
||||
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
|
||||
content.userInfo = [
|
||||
"sessionID": approval.sessionID.rawValue,
|
||||
|
||||
Reference in New Issue
Block a user