Send chat links, expand and the onboarding fallback to the inbox when it is on
Merged
CH
14h ago+117+117+012345678901234567890123456789-35-35-01234567890123456789
Why
With the inbox on, a chat can still open on the legacy /chat page: expanding the side panel, a link to a chat record, a chat's record page and the onboarding fallback all go there. So the same thread shows up on two routes depending on how you got to it. This PR sends those entry points to the inbox when it is on, so /chat is only reached with the inbox off. It is the first step of splitting the code into the inbox, the legacy chat and the shared chat.
What
useNavigateToAiChatPage(expand from the side panel, full-page new chat, thread clicks from outside a chat page) goes to/inbox/:threadIdor/inbox/newwhen the inbox is on, and to/chatotherwise.getLinkToShowPageand the chat record page redirect inRecordShowPagepoint at/inbox/:threadId. With the inbox off,InboxPagealready redirects that to/chat/:threadId.- The onboarding fallback, used when the default home page is in settings, opens
/inbox/newwhen the inbox is on.WorkspaceSetupChatSidePanelEffectskips opening the setup chat in the side panel whenever the page itself shows a chat (getCurrentAiChatPageThreadId), instead of only on/chat.
Screenshots
No visual change. Checked on a local stack with the inbox on:
- Opening
/object/agentChatThread/:idlands on/inbox/:id. - Leaving an inbox thread continues it in the side panel; Expand chat then lands on
/inbox/:idwith the side panel closed.