Skip to content

Beautiful, AI-native markdown IDE and LLM wiki

fix(ok): even numbered-list spacing in ACP transcripts (PRD-8082) (#3722)

Abrahamf5961737d4f3
diff --git a/.changeset/prd-8082-acp-list-spacing.md b/.changeset/prd-8082-acp-list-spacing.md
new file mode 100644
index 000000000..2177e52ca
--- /dev/null
+++ b/.changeset/prd-8082-acp-list-spacing.md
@@ -0,0 +1,5 @@
+---
+"@inkeep/open-knowledge": patch
+---
+
+Numbered and bulleted lists in ACP agent messages render with consistent spacing between items and between blocks inside an item, and multi-paragraph items no longer collapse onto a single line — Streamdown's `[&>p]:inline` on `<li>` was folding sibling paragraphs and letting code-block margins push items apart unevenly.
diff --git a/packages/app/src/components/acp/AgentMarkdown.tsx b/packages/app/src/components/acp/AgentMarkdown.tsx
index 5763941ef..76e81d692 100644
--- a/packages/app/src/components/acp/AgentMarkdown.tsx
+++ b/packages/app/src/components/acp/AgentMarkdown.tsx
@@ -121,7 +121,7 @@ export function AgentMarkdown({ text }: { text: string }): ReactNode {
// The code-block-body overrides tighten Streamdown's p-4 a notch and
// cap tall blocks at max-h-80 with internal scroll, targeting the
// stable `data-streamdown` hooks rather than its Tailwind classes.
- className="[&>*:first-child]:mt-0 [&>*:last-child]:mb-0 [&_pre_code>span]:block [&_ol]:list-outside [&_ul]:list-outside [&_ol]:ps-6 [&_ul]:ps-6 [&_code]:text-1sm [&_pre]:text-1sm [&_[data-streamdown=code-block-body]]:p-3 [&_[data-streamdown=code-block-body]]:max-h-80 [&_[data-streamdown=code-block-body]]:overflow-auto"
+ className="[&>*:first-child]:mt-0 [&>*:last-child]:mb-0 [&_pre_code>span]:block [&_ol]:list-outside [&_ul]:list-outside [&_ol]:ps-6 [&_ul]:ps-6 [&_li+li]:mt-2 [&_li>p]:block! [&_li>*+*]:mt-2 [&_li_[data-streamdown=code-block]]:my-2! [&_code]:text-1sm [&_pre]:text-1sm [&_[data-streamdown=code-block-body]]:p-3 [&_[data-streamdown=code-block-body]]:max-h-80 [&_[data-streamdown=code-block-body]]:overflow-auto"
// A lone newline ends the line, as it does in every chat client. The
// transcript renders sent messages too now, and those are typed by a
// person pressing Enter — not prose where only a blank line means a new