mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-06 03:00:16 -04:00
fix: task ordering
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
export { MessageContent } from './message-content'
|
||||
export { MothershipView } from './mothership-view'
|
||||
export { UserInput } from './user-input'
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
export { MothershipView } from './mothership-view'
|
||||
@@ -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>
|
||||
)
|
||||
}
|
||||
@@ -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>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -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 })
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user