Fix AskUserQuestion Rendering
Nucleic-Session: A563CF12-F6B3-498A-8640-97DFC24F59EF Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -221,7 +221,17 @@ struct SessionDetailView: View {
|
|||||||
private var actionArea: some View {
|
private var actionArea: some View {
|
||||||
Group {
|
Group {
|
||||||
if let approval = store.openApprovals.first {
|
if let approval = store.openApprovals.first {
|
||||||
|
// 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)
|
ApprovalCardView(approval: approval)
|
||||||
|
}
|
||||||
} else if let status = summary?.status {
|
} else if let status = summary?.status {
|
||||||
let running = status == .running
|
let running = status == .running
|
||||||
let canCompose = running || status == .awaitingInput || status.isTerminal
|
let canCompose = running || status == .awaitingInput || status.isTerminal
|
||||||
|
|||||||
Reference in New Issue
Block a user