From 27a69cfd4fd9c83044c7e3a3d10079dd1b218de9 Mon Sep 17 00:00:00 2001 From: Andrew Blakeslee Moore Date: Sun, 5 Jul 2026 02:35:57 -0700 Subject: [PATCH] Fix AskUserQuestion Rendering Nucleic-Session: A563CF12-F6B3-498A-8640-97DFC24F59EF Co-authored-by: Nucleic --- .../NucleicRemote/Views/SessionDetailView.swift | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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