Skip to content

Commit 4f4191f

Browse files
committed
fix: task ordering
1 parent b57636e commit 4f4191f

6 files changed

Lines changed: 17 additions & 14 deletions

File tree

apps/sim/app/api/mothership/chat/route.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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) {
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
export { MessageContent } from './message-content'
2+
export { MothershipView } from './mothership-view'
23
export { UserInput } from './user-input'
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { MothershipView } from './mothership-view'
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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+
}

apps/sim/app/workspace/[workspaceId]/home/home.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff 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
}

apps/sim/lib/copilot/chat-streaming.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff 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
})

0 commit comments

Comments
 (0)