重构首页为重定向,线性聊天移至 /chat - #11
Open
hifizz wants to merge 1 commit into
Open
Conversation
- app/page.tsx 改为服务端 redirect("/thread-chat"),打开根路径直接进
Thread Chat(裸路径再跳到最近一棵/新建的 /thread-chat/{treeId})
- 原 assistant-ui 线性聊天整页移到 app/chat/page.tsx,保留全部能力
(线程持久化、工具、附件),仅不再作为首页
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XBBcvrTHkUkk2fxVqN8NBM
|
Seems you are using me but didn't get OPENAI_API_KEY seted in Variables/Secrets for this repo. you could follow readme for more information |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
重构应用的路由结构,将首页(
/)改为重定向到线程聊天(/thread-chat),并将原有的线性聊天界面独立为/chat页面。主要变更
app/page.tsx:从完整的聊天界面组件改为服务端重定向页面,直接跳转到/thread-chatuseMyChatRuntime()钩子和所有 assistant-ui 运行时配置AssistantRuntimeProvider和相关组件挂载app/chat/page.tsx(新增):独立的线性聊天页面app/page.tsx的全部聊天逻辑和运行时配置useMyChatRuntime()钩子,包括深度研究模式的状态传递"use client"指令标记为客户端组件实现细节
https://claude.ai/code/session_01XBBcvrTHkUkk2fxVqN8NBM