ui: keep the amendment author line readable without its body

A shared trace strips threat-model amendment text, so the author has to render
on its own rather than as a label on an empty string.
This commit is contained in:
Ahmed Allam
2026-08-09 12:26:46 +00:00
parent e833278499
commit 9da1133885
3 changed files with 8 additions and 4 deletions
@@ -82,10 +82,14 @@ export default function ThreatModelRenderer({ toolName, args, result }: ToolRend
</span>
<span className="text-[#555] text-xs"> later statements win</span>
<div className="mt-1 space-y-1">
{/* On a public share link the amendment body is stripped, so the
author line has to stand on its own. */}
{amendments.map((amendment, i) => (
<div key={i} className="text-xs leading-snug">
<span className="text-[#666]">{amendment.agent_name ?? "unknown agent"}: </span>
<span className="text-[#999]">{amendment.content ?? ""}</span>
<span className="text-[#666]">{amendment.agent_name ?? "unknown agent"}</span>
{amendment.content && (
<span className="text-[#999]">: {amendment.content}</span>
)}
</div>
))}
</div>
+1 -1
View File
@@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="color-scheme" content="dark" />
<title>Strix Results</title>
<script type="module" crossorigin src="./assets/index-CMo1eUt4.js"></script>
<script type="module" crossorigin src="./assets/index-Bi_X6kI3.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-g-_6CcwH.css">
</head>
<body>