feat(chat): silentlyUpdateUrl emits canonical session URL
Merged
AR
6mo ago+7+7+0123456789-2-2-0123456789
After the first user message, the URL bar is rewritten to /sessions/{sessionId}/chats/{id} instead of /chat/{id}. Surfaces without sessionId (today's / homepage) skip the rewrite — they get the canonical URL once the homepage is moved onto NewChatBootstrap in a follow-up.
Test plan
- On a Vercel preview, send a first message from
/chat→ URL silently updates to/sessions/{sid}/chats/{cid}→ reload preserves messages. - Send a first message from
/→ URL stays at/(homepage hasn't been moved onto NewChatBootstrap yet). - Existing chats opened via the sidebar (after chat#1756 lands) keep their canonical URL.
Summary by cubic
Silently updates the chat URL to the canonical session path after the first message: /sessions/{sessionId}/chats/{id}. If no sessionId is available (e.g., on the / homepage), the URL stays unchanged.