From 13d4b302b91970349c1e7a44c0dce41e53bd12c9 Mon Sep 17 00:00:00 2001 From: Andrew Blakeslee Moore Date: Sat, 27 Jun 2026 20:23:30 -0700 Subject: [PATCH] Add Markdown Formatting Nucleic-Session: 23936B4B-52E9-43F5-908B-C7919A5BD6DD Co-authored-by: Nucleic --- .../Views/Transcript/HostExecCard.swift | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/NucleicRemote/NucleicRemote/Views/Transcript/HostExecCard.swift b/NucleicRemote/NucleicRemote/Views/Transcript/HostExecCard.swift index a7ae46a..b97e996 100644 --- a/NucleicRemote/NucleicRemote/Views/Transcript/HostExecCard.swift +++ b/NucleicRemote/NucleicRemote/Views/Transcript/HostExecCard.swift @@ -177,18 +177,22 @@ struct HostCommandBreakdown: View { /// The deterministic, command-derived purpose — labeled so the user knows it's *Nucleic's* /// reading of the command, not the agent's claim about it. private var purposeRow: some View { - HStack(alignment: .top, spacing: 9) { - Image(systemName: "sparkles").font(.callout).foregroundStyle(accent).frame(width: 16) - VStack(alignment: .leading, spacing: 2) { - Text("Likely purpose · inferred from the command") - .font(.caption2.weight(.semibold)).foregroundStyle(.secondary) + HStack(alignment: .top, spacing: 10) { + Image(systemName: "sparkles").font(.title3).foregroundStyle(accent).frame(width: 22) + VStack(alignment: .leading, spacing: 3) { Text(MessageBubble.markdown(summary.purpose)) - .font(.callout.weight(.semibold)) + .font(.title3.weight(.semibold)) .fixedSize(horizontal: false, vertical: true) .textSelection(.enabled) + Text("Likely purpose · inferred from the command") + .font(.caption2.weight(.medium)).foregroundStyle(.secondary) } Spacer(minLength: 0) } + .padding(.horizontal, 11).padding(.vertical, 9) + .frame(maxWidth: .infinity, alignment: .leading) + .background(accent.opacity(0.12), in: RoundedRectangle(cornerRadius: 8)) + .overlay(RoundedRectangle(cornerRadius: 8).strokeBorder(accent.opacity(0.22), lineWidth: 1)) } /// A red banner for the two things a host command most needs flagged before "Allow": running