mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-12 06:06:10 +00:00
The Coach page opened a blank new chat regardless of where the user came from. Make it a deep-link target: a `?c=<id>` query param opens that thread on mount, and absent it the page auto-opens the user's most-recent conversation. "Most recent" is the `updatedAt desc` head of the rail list, so the same thread opens on web and mobile. The shared conversation surface grows two additive props (`initialConversationId`, `autoOpenMostRecent`) that feed its existing selection state; the history drawer's selection stays the single source of truth. The drawer surface is unchanged — both props default off and the rail list is only fetched when auto-open is requested.