We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48adaa0 commit 9c3e663Copy full SHA for 9c3e663
apps/sim/stores/panel/copilot/store.ts
@@ -1125,6 +1125,17 @@ const sseHandlers: Record<string, SSEHandler> = {
1125
await get().handleNewChatCreation(context.newChatId)
1126
}
1127
},
1128
+ title_updated: (_data, _context, get, set) => {
1129
+ const title = _data.title
1130
+ if (!title) return
1131
+ const { currentChat, chats } = get()
1132
+ if (currentChat) {
1133
+ set({
1134
+ currentChat: { ...currentChat, title },
1135
+ chats: chats.map((c) => (c.id === currentChat.id ? { ...c, title } : c)),
1136
+ })
1137
+ }
1138
+ },
1139
tool_result: (data, context, get, set) => {
1140
try {
1141
const toolCallId: string | undefined = data?.toolCallId || data?.data?.id
0 commit comments