1
✓ worked
SSE stream reaches terminal status complete
2
✓ worked
Refetch effect
invalidates the messages query
3
✓ worked
refetch returns the persisted assistant message with modelDisplayName
Guard
if (!stream.runId)
runId is still set at complete, so this is false
4
✕ never fired
Swap effect
calls loadHistory, swapping the live SSE item for the DB item