diff --git a/NucleicRemote/NucleicRemote/Views/SessionDetailView.swift b/NucleicRemote/NucleicRemote/Views/SessionDetailView.swift index f4f7752..80f3c37 100644 --- a/NucleicRemote/NucleicRemote/Views/SessionDetailView.swift +++ b/NucleicRemote/NucleicRemote/Views/SessionDetailView.swift @@ -221,7 +221,17 @@ struct SessionDetailView: View { private var actionArea: some View { Group { if let approval = store.openApprovals.first { - ApprovalCardView(approval: approval) + // AskUserQuestion isn't a permission gate — it collects the user's answers and + // needs them folded back into `updatedInput`. Render the picker (matching the + // Mac's `AskUserQuestionBar`) instead of a plain allow/deny card, which would + // reply with no selection and make the CLI report the question went unanswered. + if approval.toolName == AskUserQuestion.toolName, + let questions = AskUserQuestion.questions(from: approval.input) + { + AskUserQuestionCardView(approval: approval, questions: questions) + } else { + ApprovalCardView(approval: approval) + } } else if let status = summary?.status { let running = status == .running let canCompose = running || status == .awaitingInput || status.isTerminal