File tree Expand file tree Collapse file tree
workspace/[workspaceId]/home Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -190,7 +190,6 @@ export async function POST(req: NextRequest) {
190190 . set ( {
191191 messages : updatedMessages ,
192192 conversationId : null ,
193- updatedAt : new Date ( ) ,
194193 } )
195194 . where ( eq ( copilotChats . id , actualChatId ) )
196195 } catch ( error ) {
Original file line number Diff line number Diff line change 11export { MessageContent } from './message-content'
2+ export { MothershipView } from './mothership-view'
23export { UserInput } from './user-input'
Original file line number Diff line number Diff line change 1+ export { MothershipView } from './mothership-view'
Original file line number Diff line number Diff line change 1+ 'use client'
2+
3+ export function MothershipView ( ) {
4+ return (
5+ < div className = 'flex h-full w-[480px] flex-shrink-0 flex-col border-[var(--border)] border-l' >
6+ < div className = 'flex items-center border-[var(--border)] border-b px-[16px] py-[12px]' >
7+ < span className = 'font-medium text-[13px] text-[var(--text-secondary)]' > Mothership</ span >
8+ </ div >
9+ < div className = 'flex flex-1 items-center justify-center' >
10+ < span className = 'text-[13px] text-[var(--text-muted)]' > No artifacts yet</ span >
11+ </ div >
12+ </ div >
13+ )
14+ }
Original file line number Diff line number Diff line change @@ -102,15 +102,6 @@ export function Home({ chatId }: HomeProps = {}) {
102102 />
103103 </ div >
104104 </ div >
105-
106- < div className = 'hidden h-full w-[480px] flex-shrink-0 flex-col border-[var(--border)] border-l lg:flex' >
107- < div className = 'flex items-center border-[var(--border)] border-b px-[16px] py-[12px]' >
108- < span className = 'font-medium text-[13px] text-[var(--text-secondary)]' > Artifacts</ span >
109- </ div >
110- < div className = 'flex flex-1 items-center justify-center' >
111- < span className = 'text-[13px] text-[var(--text-muted)]' > No artifacts yet</ span >
112- </ div >
113- </ div >
114105 </ div >
115106 )
116107}
Original file line number Diff line number Diff line change @@ -141,10 +141,7 @@ export function createSSEStream(params: StreamingOrchestrationParams): ReadableS
141141 requestChatTitle ( { message, model : titleModel , provider : titleProvider } )
142142 . then ( async ( title ) => {
143143 if ( title ) {
144- await db
145- . update ( copilotChats )
146- . set ( { title, updatedAt : new Date ( ) } )
147- . where ( eq ( copilotChats . id , chatId ! ) )
144+ await db . update ( copilotChats ) . set ( { title } ) . where ( eq ( copilotChats . id , chatId ! ) )
148145 await pushEvent ( { type : 'title_updated' , title } )
149146 }
150147 } )
You can’t perform that action at this time.
0 commit comments