fix(web): keep reply playback hooks stable during chat hydration - #202
fix(web): keep reply playback hooks stable during chat hydration#202leoisadev1 wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
Greptile SummarySummary
Merge safetyDo not merge until unavailable roster targets clear their reply-playback context and messages. This is an explicit repository requirement. Confidence Score: 4/5Not safe to merge: unavailable roster targets can remain active in reply playback, contrary to the repository requirement. The reproduced issue is limited to retained reply-playback state for unavailable bot and group landings. Files Needing Attention: apps/web/src/components/roster/BotThreadLanding.tsx and apps/web/src/components/roster/GroupThreadLanding.tsx
What T-Rex did
|
Problem
Cold-loading a group chat could show “This view failed to load” with React error 310. The reply-playback hook ran after an early return, so hydration changed the hook order. Bot hydration and archive transitions had the same defect.
Fix
Call the existing playback hook before the missing/archived entity guards in both chat views. Preserve message filtering, playback context, and the existing disabled stored-reply controls. Add regression tests for hydration and reverse transitions.
Verification
Before and after screenshots are attached below.
Implemented and verified by gpt-6-astra in T3 Code through the Grok harness.