Skip to content

The open-source agent harness - the runtime layer that turns an LLM into a working agent.

Fix: Reduce font size of agent code snippets (#696)

harshil-2096fa0730b2ef13
diff --git a/.changeset/reduce-code-snippet-font.md b/.changeset/reduce-code-snippet-font.md
new file mode 100644
index 000000000..638be1d76
--- /dev/null
+++ b/.changeset/reduce-code-snippet-font.md
@@ -0,0 +1,5 @@
+---
+'@truefoundry/trueforge-ui': patch
+---
+
+Reduce the agent code snippet font size to match its surrounding controls.
diff --git a/packages/trueforge-ui/src/atoms/agent-details/AgentCodeBlock.tsx b/packages/trueforge-ui/src/atoms/agent-details/AgentCodeBlock.tsx
index ea2c61f8e..9e17db585 100644
--- a/packages/trueforge-ui/src/atoms/agent-details/AgentCodeBlock.tsx
+++ b/packages/trueforge-ui/src/atoms/agent-details/AgentCodeBlock.tsx
@@ -13,7 +13,7 @@ export function AgentCodeBlock({ code, language }: AgentCodeBlockProps) {
showLineNumbers
darkTheme={mode === 'dark'}
// Stretch the highlighted `pre` past the code so its theme background fills the panel.
- className="m-0 flex min-h-full flex-col rounded-none [&>pre]:flex-1"
+ className="m-0 flex min-h-full flex-col rounded-none text-xs [&>pre]:flex-1"
/>
);
}