Skip to content

Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.

docs: define safe server log rendering

jinzhenjf5d547b9ef64
diff --git a/docs/plans/2026-07-22-server-status-log-markup-design.md b/docs/plans/2026-07-22-server-status-log-markup-design.md
new file mode 100644
index 00000000..ccda8a0f
--- /dev/null
+++ b/docs/plans/2026-07-22-server-status-log-markup-design.md
@@ -0,0 +1,17 @@
+# Server Status Log Markup Safety Design
+
+## Problem
+
+`mineru server status` passes recent log strings directly to Rich `Panel`. Rich treats string renderables as markup. Log content such as `MinerU home [/Users/jinzhenj/.mineru]` is therefore parsed as a closing markup tag and raises `MarkupError`.
+
+Logs are untrusted plain text and can contain arbitrary brackets, paths, traceback text, or text that resembles Rich tags.
+
+## Decision
+
+Wrap each recent-log panel body in `rich.text.Text` before constructing the panel. `Text` preserves the log literally and prevents Rich markup parsing while retaining the existing panel title and border styling.
+
+The global Rich output helper remains unchanged because other CLI renderers may intentionally use Rich markup or structured renderables.
+
+## Tests
+
+Extend the server status log panel test with paths and markup-like text. Assert that each panel receives a `Text` object whose plain content exactly matches the source log, and render a panel through Rich to verify no `MarkupError` is raised.