diff --git a/packages/ui/src/components/chat/ChatContainer.tsx b/packages/ui/src/components/chat/ChatContainer.tsx index b598a568..6d70418e 100644 --- a/packages/ui/src/components/chat/ChatContainer.tsx +++ b/packages/ui/src/components/chat/ChatContainer.tsx @@ -768,18 +768,13 @@ export const ChatContainer: React.FC = ({ autoOpenDraft = tr if (!currentSessionId && draftOpen) { return ( -
- {!isDesktopExpandedInput ? ( -
- -
- ) : null} -
+
{promptReadOnly ? : } diff --git a/packages/ui/src/components/chat/ChatInput.tsx b/packages/ui/src/components/chat/ChatInput.tsx index 549cbf07..640c2533 100644 --- a/packages/ui/src/components/chat/ChatInput.tsx +++ b/packages/ui/src/components/chat/ChatInput.tsx @@ -3459,6 +3459,7 @@ const ChatInputComponent: React.FC = ({ onOpenSettings, scrollTo () => normalizePath(selectedDraftProject?.path ?? null), [selectedDraftProject?.path], ); + const draftProjectLabel = selectedDraftProject ? getProjectDisplayLabel(selectedDraftProject) : null; const selectedDraftProjectBranches = useGitBranches(selectedDraftProjectPath); const selectedDraftProjectIsGitRepo = useIsGitRepo(selectedDraftProjectPath); @@ -3780,12 +3781,21 @@ const ChatInputComponent: React.FC = ({ onOpenSettings, scrollTo
{ e.preventDefault(); handlePrimaryAction(); }} className={cn( - "relative pt-0 pb-4", + "relative w-full pt-0 pb-4", isDesktopExpanded && 'flex h-full min-h-0 flex-col pt-4', isMobile && 'bottom-safe-area' )} style={isMobile && inputBarOffset > 0 ? { marginBottom: `${inputBarOffset}px` } : undefined} > + {newSessionDraftOpen && !isDesktopExpanded ? ( +
+

+ {draftProjectLabel + ? t('chat.emptyState.draftTitleWithProject', { project: draftProjectLabel }) + : t('chat.emptyState.draftTitle')} +

+
+ ) : null}
= { "chat.changedFiles.actions.openFileTitle": "Abrir {path}", "chat.emptyState.opencodeUnreachable": "OpenCode no es accesible", "chat.emptyState.startNewChat": "Iniciar una nueva conversación", + "chat.emptyState.draftTitle": "What are we working on?", + "chat.emptyState.draftTitleWithProject": "What are we working on in {project}?", "chat.scrollToBottom.aria": "Ir al final", "chat.timeline.relative.justNow": "ahora mismo", "chat.timeline.relative.minutesAgo": "hace {count}m", diff --git a/packages/ui/src/lib/i18n/messages/ko.ts b/packages/ui/src/lib/i18n/messages/ko.ts index 2c1e24ae..ddb905c5 100644 --- a/packages/ui/src/lib/i18n/messages/ko.ts +++ b/packages/ui/src/lib/i18n/messages/ko.ts @@ -1451,6 +1451,8 @@ export const dict: Record = { 'chat.changedFiles.actions.openFileTitle': '{path} 열기', 'chat.emptyState.opencodeUnreachable': 'OpenCode에 연결할 수 없음', 'chat.emptyState.startNewChat': '새 채팅 시작', + 'chat.emptyState.draftTitle': 'What are we working on?', + 'chat.emptyState.draftTitleWithProject': 'What are we working on in {project}?', 'chat.scrollToBottom.aria': '맨 아래로 스크롤', 'chat.timeline.relative.justNow': '방금 전', 'chat.timeline.relative.minutesAgo': '{count}분 전', diff --git a/packages/ui/src/lib/i18n/messages/pl.ts b/packages/ui/src/lib/i18n/messages/pl.ts index c51e9e5f..227ae804 100644 --- a/packages/ui/src/lib/i18n/messages/pl.ts +++ b/packages/ui/src/lib/i18n/messages/pl.ts @@ -443,6 +443,8 @@ export const dict: Record = { 'chat.changedFiles.actions.openFileTitle': 'Otwórz {path}', 'chat.emptyState.opencodeUnreachable': 'OpenCode jest nieosiągalny', 'chat.emptyState.startNewChat': 'Rozpocznij nowy czat', + 'chat.emptyState.draftTitle': 'What are we working on?', + 'chat.emptyState.draftTitleWithProject': 'What are we working on in {project}?', 'chat.scrollToBottom.aria': 'Przewiń na dół', 'chat.timeline.relative.justNow': 'przed chwilą', 'chat.timeline.relative.minutesAgo': '{count}m temu', diff --git a/packages/ui/src/lib/i18n/messages/pt-BR.ts b/packages/ui/src/lib/i18n/messages/pt-BR.ts index 708cdf65..009c9741 100644 --- a/packages/ui/src/lib/i18n/messages/pt-BR.ts +++ b/packages/ui/src/lib/i18n/messages/pt-BR.ts @@ -1415,6 +1415,8 @@ export const dict: Record = { "chat.changedFiles.actions.openFileTitle": "Abrir {path}", "chat.emptyState.opencodeUnreachable": "OpenCode não está acessível", "chat.emptyState.startNewChat": "Iniciar uma nova conversa", + "chat.emptyState.draftTitle": "What are we working on?", + "chat.emptyState.draftTitleWithProject": "What are we working on in {project}?", "chat.scrollToBottom.aria": "Ir ao final", "chat.timeline.relative.justNow": "agora mesmo", "chat.timeline.relative.minutesAgo": "há {count}m", diff --git a/packages/ui/src/lib/i18n/messages/uk.ts b/packages/ui/src/lib/i18n/messages/uk.ts index f6ee697a..309b8db7 100644 --- a/packages/ui/src/lib/i18n/messages/uk.ts +++ b/packages/ui/src/lib/i18n/messages/uk.ts @@ -1415,6 +1415,8 @@ export const dict: Record = { "chat.changedFiles.actions.openFileTitle": "Відкрити {path}", "chat.emptyState.opencodeUnreachable": "OpenCode недоступний", "chat.emptyState.startNewChat": "Почніть новий чат", + "chat.emptyState.draftTitle": "Над чим працюємо?", + "chat.emptyState.draftTitleWithProject": "Над чим працюємо в {project}?", "chat.scrollToBottom.aria": "Прокрутити вниз", "chat.timeline.relative.justNow": "щойно", "chat.timeline.relative.minutesAgo": "{count} хв тому", diff --git a/packages/ui/src/lib/i18n/messages/zh-CN.ts b/packages/ui/src/lib/i18n/messages/zh-CN.ts index 4a62efda..9743dd08 100644 --- a/packages/ui/src/lib/i18n/messages/zh-CN.ts +++ b/packages/ui/src/lib/i18n/messages/zh-CN.ts @@ -1415,6 +1415,8 @@ export const dict: Record = { 'chat.changedFiles.actions.openFileTitle': '打开 {path}', 'chat.emptyState.opencodeUnreachable': '无法连接 OpenCode', 'chat.emptyState.startNewChat': '开始新的聊天', + 'chat.emptyState.draftTitle': 'What are we working on?', + 'chat.emptyState.draftTitleWithProject': 'What are we working on in {project}?', 'chat.scrollToBottom.aria': '滚动到底部', 'chat.timeline.relative.justNow': '刚刚', 'chat.timeline.relative.minutesAgo': '{count} 分钟前', diff --git a/packages/ui/src/lib/i18n/messages/zh-TW.ts b/packages/ui/src/lib/i18n/messages/zh-TW.ts index 15f5002c..68c2fe9e 100644 --- a/packages/ui/src/lib/i18n/messages/zh-TW.ts +++ b/packages/ui/src/lib/i18n/messages/zh-TW.ts @@ -1412,6 +1412,8 @@ export const dict: Record = { 'chat.changedFiles.actions.openFileTitle': '開啟 {path}', 'chat.emptyState.opencodeUnreachable': '無法連線 OpenCode', 'chat.emptyState.startNewChat': '開始新的聊天', + 'chat.emptyState.draftTitle': 'What are we working on?', + 'chat.emptyState.draftTitleWithProject': 'What are we working on in {project}?', 'chat.scrollToBottom.aria': '捲動到底部', 'chat.timeline.relative.justNow': '剛剛', 'chat.timeline.relative.minutesAgo': '{count} 分鐘前',