diff --git a/packages/ui/src/components/chat/ChatContainer.tsx b/packages/ui/src/components/chat/ChatContainer.tsx index ba96bc75..5a4651a2 100644 --- a/packages/ui/src/components/chat/ChatContainer.tsx +++ b/packages/ui/src/components/chat/ChatContainer.tsx @@ -538,6 +538,7 @@ export const ChatContainer: React.FC = ({ autoOpenDraft = tr {t('chat.container.returnToParent.label')} ) : null; + const promptReadOnly = readOnly || Boolean(parentSession); React.useEffect(() => { if (autoOpenDraft && !currentSessionId && !draftOpen) { @@ -764,7 +765,7 @@ export const ChatContainer: React.FC = ({ autoOpenDraft = tr : 'bg-background' )} > - {readOnly ? : } + {promptReadOnly ? : } ); @@ -824,7 +825,7 @@ export const ChatContainer: React.FC = ({ autoOpenDraft = tr : 'bg-background' )} > - {readOnly ? : } + {promptReadOnly ? : } ); @@ -857,7 +858,7 @@ export const ChatContainer: React.FC = ({ autoOpenDraft = tr : 'bg-background' )} > - {readOnly ? : } + {promptReadOnly ? : } ); @@ -905,7 +906,7 @@ export const ChatContainer: React.FC = ({ autoOpenDraft = tr onClick={navigation.resumeToLatest} /> )} - {readOnly ? : } + {promptReadOnly ? : }