File tree 2 files changed +12
-2
lines changed 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ export function ThreadHistory(props: ThreadHistoryProps) {
187
187
) : null }
188
188
</ div >
189
189
< div className = "overflow-y-auto flex-grow scrollbar-thin scrollbar-thumb-gray-600 scrollbar-track-transparent" >
190
- { props . isUserThreadsLoading ? (
190
+ { props . isUserThreadsLoading && ! props . userThreads . length ? (
191
191
< div className = "flex flex-col gap-1 px-3 pt-3" >
192
192
{ Array . from ( { length : 25 } ) . map ( ( _ , i ) => (
193
193
< LoadingThread />
@@ -212,7 +212,7 @@ export function ThreadHistory(props: ThreadHistoryProps) {
212
212
</ TooltipIconButton >
213
213
</ SheetTrigger >
214
214
< SheetContent side = "left" className = "bg-[#282828] border-none" >
215
- { props . isUserThreadsLoading ? (
215
+ { props . isUserThreadsLoading && ! props . userThreads . length ? (
216
216
< div className = "flex flex-col gap-1 px-3 pt-3" >
217
217
{ Array . from ( { length : 25 } ) . map ( ( _ , i ) => (
218
218
< LoadingThread />
Original file line number Diff line number Diff line change @@ -667,9 +667,19 @@ export function useGraph(userId: string | undefined) {
667
667
] ,
668
668
} )
669
669
: undefined ;
670
+ const answerHeaderToolMsg = new AIMessage ( {
671
+ content : "" ,
672
+ tool_calls : [
673
+ {
674
+ name : "answer_header" ,
675
+ args : { } ,
676
+ } ,
677
+ ] ,
678
+ } ) ;
670
679
return [
671
680
...( routerMessage ? [ routerMessage ] : [ ] ) ,
672
681
...( selectedDocumentsAIMessage ? [ selectedDocumentsAIMessage ] : [ ] ) ,
682
+ answerHeaderToolMsg ,
673
683
new AIMessage ( {
674
684
...msg ,
675
685
content : msg . content ,
You can’t perform that action at this time.
0 commit comments