diff --git a/src/app/chat/[id]/page.tsx b/src/app/chat/[id]/page.tsx index 585b0fb..769b669 100644 --- a/src/app/chat/[id]/page.tsx +++ b/src/app/chat/[id]/page.tsx @@ -14,6 +14,7 @@ import { LinkPreviewModal } from '@/components/features/LinkPreviewModal'; import { ExportDropdown } from '@/components/features/ExportDropdown'; import { ShareModal } from '@/components/features/ShareModal'; import { SummaryButton } from '@/components/features/SummaryGenerator'; +import { TagManager } from '@/components/features/Tags'; import { cn } from '@/lib/utils'; import { useConversation, useConversations } from '@/hooks/useConversations'; import { useStreamChat, type ChatMessage } from '@/hooks/useStreamChat'; @@ -457,10 +458,10 @@ export default function ChatPage({ params }: PageProps) { )} > {/* 固定顶部 Header */} -
- {/* 第一行:标题和操作按钮 */} -
-
+
+ {/* 第一行:标题 + 操作按钮 */} +
+
setSidebarOpen(!sidebarOpen)} /> {/* 标题区域 - 可点击显示下拉菜单 */} @@ -509,7 +510,7 @@ export default function ChatPage({ params }: PageProps) {
)}
)}
-
+ + {/* 右侧操作按钮 */} +
{/* 思考模式开关 - 只在非 Codex 模型时显示 */} - {!selectedModelId.toLowerCase().includes('codex') && ( + {!selectedModelId.toLowerCase().includes('codex') && ( + + )} + + {/* 智能摘要按钮 */} + ({ + role: m.role, + content: m.content, + }))} + hasSummary={!!conversation?.summary} + existingSummary={conversation?.summary} + /> + - )} - - {/* 智能摘要按钮 */} - ({ - role: m.role, - content: m.content, - }))} - hasSummary={!!conversation?.summary} - existingSummary={conversation?.summary} - /> - - - +
- {/* 第二行:助手信息 */} -
+ {/* 渐变分隔线 */} +
+ + {/* 第二行:助手信息 + 标签管理 */} +
+ {/* 左侧:助手信息 */} + + {/* 右侧:标签管理区域 */} + {conversation && !isNewChat && ( + + )}