diff --git a/components/MessageView.tsx b/components/MessageView.tsx
index d73bee37f..8cb78759d 100644
--- a/components/MessageView.tsx
+++ b/components/MessageView.tsx
@@ -100,7 +100,7 @@ function haveSameRelevantToolResults(
export const MessageView = memo(function MessageView({ message, isStreaming, toolResults, modelNames, cwd, onOpenFile, entryId, onFork, forking, onNavigate, prevAssistantEntryId, onEditContent, showTimestamp, prevTimestamp, sessionId }: Props) {
if (message.role === "user") {
- return
;
+ return
;
}
if (message.role === "assistant") {
return
;
@@ -113,7 +113,7 @@ export const MessageView = memo(function MessageView({ message, isStreaming, too
if ((message as CustomMessage).customType === "compaction") {
return
;
}
- return
;
+ return
;
}
if (message.role === "bashExecution") {
return
;
@@ -137,9 +137,10 @@ export const MessageView = memo(function MessageView({ message, isStreaming, too
&& prev.sessionId === next.sessionId;
});
-function UserMessageView({ message, cwd, onOpenFile, entryId, onFork, forking, onNavigate, prevAssistantEntryId, onEditContent }: {
+function UserMessageView({ message, cwd, sessionId, onOpenFile, entryId, onFork, forking, onNavigate, prevAssistantEntryId, onEditContent }: {
message: UserMessage;
cwd?: string;
+ sessionId?: string;
onOpenFile?: (filePath: string) => void;
entryId?: string;
onFork?: (entryId: string) => void;
@@ -222,7 +223,7 @@ function UserMessageView({ message, cwd, onOpenFile, entryId, onFork, forking, o
})}
)}
- {content &&