From 04d625ac0369b0c4dd866e3d9cbe05d8e7d72564 Mon Sep 17 00:00:00 2001 From: danielhanchen Date: Tue, 19 May 2026 15:19:28 +0000 Subject: [PATCH] studio/frontend: rename per-message export to unsloth-message-.md The assistant message action bar's "Export as Markdown" path used the assistant-ui default filename of `message-.md`, which is neither human-readable nor consistent with Studio's other export path (Settings -> Chat -> Export writes `unsloth-chats-YYYY-MM-DD.json`). A user who exports several messages during a session ends up with a Downloads folder of opaque epoch-stamp files. Pass a `filename` prop to `ActionBarPrimitive.ExportMarkdown` matching the JSON export's naming, so the file lands as `unsloth-message-2026-05-19.md` instead. --- studio/frontend/src/components/assistant-ui/thread.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/studio/frontend/src/components/assistant-ui/thread.tsx b/studio/frontend/src/components/assistant-ui/thread.tsx index 0326b90a97..64f41d8b39 100644 --- a/studio/frontend/src/components/assistant-ui/thread.tsx +++ b/studio/frontend/src/components/assistant-ui/thread.tsx @@ -1152,7 +1152,15 @@ const AssistantActionBar: FC = () => { onCloseAutoFocus={(e) => e.preventDefault()} className="aui-action-bar-more-content z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md" > - + Chat -> Export's human-readable naming + // (``unsloth-chats-YYYY-MM-DD.json``) rather than + // assistant-ui's default ``message-.md``. The + // component re-renders often enough that the date stays + // fresh in practice. + filename={`unsloth-message-${new Date().toISOString().slice(0, 10)}.md`} + > Export as Markdown