diff --git a/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/ActionMenu/index.jsx b/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/ActionMenu/index.jsx
index df575bb0c8aadc524de4d17002c9853bae92d534..de7df30f8be54b3a45a28360671e850bc75e5f48 100644
--- a/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/ActionMenu/index.jsx
+++ b/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/ActionMenu/index.jsx
@@ -33,7 +33,7 @@ function ActionMenu({ chatId, forkThread, isEditing, role }) {
     };
   }, []);
 
-  if (isEditing || role === "user") return null;
+  if (!chatId || isEditing || role === "user") return null;
 
   return (
     <div className="mt-2 -ml-0.5 relative" ref={menuRef}>
diff --git a/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/TTSButton/index.jsx b/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/TTSButton/index.jsx
index 644a57afc384a5389770a7055dcd392790cf51ef..56d32e847b1f67a37fb92ad3b992a3055f0f5121 100644
--- a/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/TTSButton/index.jsx
+++ b/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/TTSButton/index.jsx
@@ -16,7 +16,7 @@ export default function TTSMessage({ slug, chatId, message }) {
     getSettings();
   }, []);
 
-  if (loading) return null;
+  if (!chatId || loading) return null;
   if (provider !== "native")
     return <AsyncTTSMessage slug={slug} chatId={chatId} />;
   return <NativeTTSMessage message={message} />;