fix: task ordering

This commit is contained in:
Emir Karabeg
2026-03-03 15:45:15 -08:00
parent b57636e5b1
commit 4f4191fe1b
6 changed files with 17 additions and 14 deletions

View File

@@ -190,7 +190,6 @@ export async function POST(req: NextRequest) {
.set({
messages: updatedMessages,
conversationId: null,
updatedAt: new Date(),
})
.where(eq(copilotChats.id, actualChatId))
} catch (error) {

View File

@@ -1,2 +1,3 @@
export { MessageContent } from './message-content'
export { MothershipView } from './mothership-view'
export { UserInput } from './user-input'

View File

@@ -0,0 +1 @@
export { MothershipView } from './mothership-view'

View File

@@ -0,0 +1,14 @@
'use client'
export function MothershipView() {
return (
<div className='flex h-full w-[480px] flex-shrink-0 flex-col border-[var(--border)] border-l'>
<div className='flex items-center border-[var(--border)] border-b px-[16px] py-[12px]'>
<span className='font-medium text-[13px] text-[var(--text-secondary)]'>Mothership</span>
</div>
<div className='flex flex-1 items-center justify-center'>
<span className='text-[13px] text-[var(--text-muted)]'>No artifacts yet</span>
</div>
</div>
)
}

View File

@@ -102,15 +102,6 @@ export function Home({ chatId }: HomeProps = {}) {
/>
</div>
</div>
<div className='hidden h-full w-[480px] flex-shrink-0 flex-col border-[var(--border)] border-l lg:flex'>
<div className='flex items-center border-[var(--border)] border-b px-[16px] py-[12px]'>
<span className='font-medium text-[13px] text-[var(--text-secondary)]'>Artifacts</span>
</div>
<div className='flex flex-1 items-center justify-center'>
<span className='text-[13px] text-[var(--text-muted)]'>No artifacts yet</span>
</div>
</div>
</div>
)
}

View File

@@ -141,10 +141,7 @@ export function createSSEStream(params: StreamingOrchestrationParams): ReadableS
requestChatTitle({ message, model: titleModel, provider: titleProvider })
.then(async (title) => {
if (title) {
await db
.update(copilotChats)
.set({ title, updatedAt: new Date() })
.where(eq(copilotChats.id, chatId!))
await db.update(copilotChats).set({ title }).where(eq(copilotChats.id, chatId!))
await pushEvent({ type: 'title_updated', title })
}
})