@@ -273,15 +273,15 @@ export const maxLogic = kea<maxLogicType>([
273273 {
274274 key : Scene . Max ,
275275 name : 'AI' ,
276- path : urls . max ( ) ,
276+ path : urls . ai ( ) ,
277277 iconType : 'chat' ,
278278 } ,
279279 ...( conversationHistoryVisible || searchParams . from === 'history'
280280 ? [
281281 {
282282 key : Scene . Max ,
283283 name : 'Chat history' ,
284- path : urls . maxHistory ( ) ,
284+ path : urls . aiHistory ( ) ,
285285 iconType : 'chat' as const ,
286286 } ,
287287 ]
@@ -291,7 +291,7 @@ export const maxLogic = kea<maxLogicType>([
291291 {
292292 key : Scene . Max ,
293293 name : chatTitle || 'Chat' ,
294- path : urls . max ( conversationId ) ,
294+ path : urls . ai ( conversationId ) ,
295295 iconType : 'chat' as const ,
296296 } ,
297297 ]
@@ -442,12 +442,12 @@ export const maxLogic = kea<maxLogicType>([
442442 } ) ,
443443
444444 tabAwareUrlToAction ( ( { actions, values } ) => ( {
445- [ urls . maxHistory ( ) ] : ( ) => {
445+ [ urls . aiHistory ( ) ] : ( ) => {
446446 if ( ! values . conversationHistoryVisible ) {
447447 actions . toggleConversationHistory ( )
448448 }
449449 } ,
450- [ urls . max ( ) ] : ( _ , search ) => {
450+ [ urls . ai ( ) ] : ( _ , search ) => {
451451 if ( search . ask && ! search . chat && ! values . question ) {
452452 window . setTimeout ( ( ) => {
453453 // ensure maxThreadLogic is mounted
@@ -469,19 +469,19 @@ export const maxLogic = kea<maxLogicType>([
469469 tabAwareActionToUrl ( ( { values } ) => ( {
470470 toggleConversationHistory : ( ) => {
471471 if ( values . conversationHistoryVisible ) {
472- return [ urls . maxHistory ( ) , { } , router . values . location . hash ]
472+ return [ urls . aiHistory ( ) , { } , router . values . location . hash ]
473473 } else if ( values . conversationId ) {
474- return [ urls . max ( values . conversationId ) , { } , router . values . location . hash ]
474+ return [ urls . ai ( values . conversationId ) , { } , router . values . location . hash ]
475475 }
476- return [ urls . max ( ) , { } , router . values . location . hash ]
476+ return [ urls . ai ( ) , { } , router . values . location . hash ]
477477 } ,
478478 startNewConversation : ( ) => {
479- return [ urls . max ( ) , { } , router . values . location . hash ]
479+ return [ urls . ai ( ) , { } , router . values . location . hash ]
480480 } ,
481481 setConversationId : ( { conversationId } ) => {
482482 // Only set the URL parameter if this is a new conversation (using frontendConversationId)
483483 if ( conversationId && conversationId === values . frontendConversationId ) {
484- return [ urls . max ( conversationId ) , { } , router . values . location . hash , { replace : true } ]
484+ return [ urls . ai ( conversationId ) , { } , router . values . location . hash , { replace : true } ]
485485 }
486486 // Return undefined to not update URL for existing conversations
487487 return undefined
0 commit comments