File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ const useConversation = () => {
51
51
setSubmission ( { } as TSubmission ) ;
52
52
resetLatestMessage ( ) ;
53
53
54
- if ( conversation . conversationId === 'new' ) {
54
+ if ( conversation . conversationId === 'new' && ! modelsData ) {
55
55
navigate ( '/chat/new' ) ;
56
56
}
57
57
} ,
Original file line number Diff line number Diff line change @@ -38,7 +38,8 @@ export default function Root() {
38
38
useEffect ( ( ) => {
39
39
if ( modelsQuery . data ) {
40
40
setModelsConfig ( modelsQuery . data ) ;
41
- newConversation ( modelsQuery . data ) ;
41
+ // Note: passing modelsQuery.data prevents navigation
42
+ newConversation ( { } , undefined , modelsQuery . data ) ;
42
43
} else if ( modelsQuery . isError ) {
43
44
console . error ( 'Failed to get models' , modelsQuery . error ) ;
44
45
}
You can’t perform that action at this time.
0 commit comments