diff --git a/frontend/packages/swarm-ui/src/agent/detail/AgentInstructions.css b/frontend/packages/swarm-ui/src/agent/detail/AgentInstructions.css index 5e6ed150..3bcf2cde 100644 --- a/frontend/packages/swarm-ui/src/agent/detail/AgentInstructions.css +++ b/frontend/packages/swarm-ui/src/agent/detail/AgentInstructions.css @@ -9,22 +9,12 @@ .ui-agent-instructions-body { margin-top: 1em; } -.ui-agent-instructions-text textarea, -.ui-agent-instructions-theirs { +.ui-agent-instructions-text textarea { font-family: var(--mono, ui-monospace, monospace); font-size: 0.9em; width: 100%; box-sizing: border-box; } -.ui-agent-instructions-theirs { - margin: 0; - max-height: 16em; - overflow: auto; - white-space: pre-wrap; - padding: 0.5em; - border: 1px solid var(--border, currentColor); - border-radius: 4px; -} .ui-agent-instructions-status { margin: 0; color: var(--muted); diff --git a/frontend/packages/swarm-ui/src/agent/detail/AgentInstructions.tsx b/frontend/packages/swarm-ui/src/agent/detail/AgentInstructions.tsx index e8577d14..8f45cf8e 100644 --- a/frontend/packages/swarm-ui/src/agent/detail/AgentInstructions.tsx +++ b/frontend/packages/swarm-ui/src/agent/detail/AgentInstructions.tsx @@ -18,6 +18,7 @@ import { readApiError, type ProblemDetails } from "@hive/shared/api-error.js"; import { Badge } from "@hive/shared/badge.js"; import { ActionRow } from "../../ui/action-row/ActionRow.js"; import { Button } from "../../ui/button/Button.js"; +import { Preformatted } from "../../ui/preformatted/Preformatted.js"; import { Dialog } from "../../ui/dialog/Dialog.js"; import { Panel } from "../../ui/panel/Panel.js"; import { TextAreaField } from "../../ui/text-area-field/TextAreaField.js"; @@ -261,9 +262,9 @@ function InstructionsForm({ {agent} changed AGENTS.md since you started. Your text is kept above. Here is the file now:

-
+                
                   {theirs.content === "" ? "(empty)" : theirs.content}
-                
+