切换会话时,会话输入框自动获得焦点

This commit is contained in:
xintaofei
2026-03-10 23:54:30 +08:00
parent 5960ccebb9
commit 16a3267e69
4 changed files with 20 additions and 0 deletions

View File

@@ -33,6 +33,7 @@ interface ConversationShellProps {
attachmentTabId?: string | null
draftStorageKey?: string | null
hideInput?: boolean
isActive?: boolean
}
export function ConversationShell({
@@ -57,6 +58,7 @@ export function ConversationShell({
attachmentTabId,
draftStorageKey,
hideInput = false,
isActive,
}: ConversationShellProps) {
return (
<div className="flex h-full min-h-0 flex-col">
@@ -85,6 +87,7 @@ export function ConversationShell({
availableCommands={availableCommands}
attachmentTabId={attachmentTabId}
draftStorageKey={draftStorageKey}
isActive={isActive}
/>
)}