From aa3c6498deed689b186d56fe335e2e66a381f6c8 Mon Sep 17 00:00:00 2001 From: Kaede Akino Date: Mon, 14 Sep 2026 11:10:38 +0800 Subject: [PATCH] Remove inline command risk reasons --- TFM/Features/AI/TranscriptNativeRows.swift | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/TFM/Features/AI/TranscriptNativeRows.swift b/TFM/Features/AI/TranscriptNativeRows.swift index a9c75da2..8524de43 100644 --- a/TFM/Features/AI/TranscriptNativeRows.swift +++ b/TFM/Features/AI/TranscriptNativeRows.swift @@ -1282,19 +1282,6 @@ private enum NativeTranscriptFactory { ) stack.addArrangedSubview(explanation) } - if !assessment.reasons.isEmpty { - let reasons = NativeStack.vertical(spacing: Metrics.Space.xxs) - reasons.identifier = NSUserInterfaceItemIdentifier("Transcript.CommandCardReasons") - for reason in assessment.reasons { - reasons.addArrangedSubview( - NativeLabel( - "• \(reason)", - font: .systemFont(ofSize: NSFont.smallSystemFontSize - 1), - color: nativeRiskColor(assessment.risk) - )) - } - stack.addArrangedSubview(reasons) - } let actions = NativeStack.horizontal(spacing: Metrics.Space.s) actions.identifier = NSUserInterfaceItemIdentifier("Transcript.CommandCardActions") if context.configuration.showsTerminalActions { @@ -1701,14 +1688,6 @@ private final class NativeMarkdownView: NSView { ), selectable: true )) - for reason in assessment.reasons { - stack.addArrangedSubview( - NativeLabel( - "• \(reason)", - font: .systemFont(ofSize: NSFont.smallSystemFontSize), - color: nativeRiskColor(assessment.risk) - )) - } let row = NativeStack.horizontal() if !command.contains("\n") { let insert = NativeButton(title: String(localized: "Insert"))