Comments from Chinese official in Madrid have raised questions over who could control the algorithm that powers Tik Tok’s video feed

Donald Trump has claimed his administration has reached a deal with China to keep TikTok operating in the US, amid uncertainty over what shape the final agreement will take, with suggestions from the Chinese side that Beijing would retain control of the algorithm that powers the site’s video feed.

“We have a deal on TikTok ... We have a group of very big companies that want to buy it,” Trump said on Tuesday, without providing further details.

The deal, which was negotiated in Madrid between US treasury secretary Scott Bessent and Chinese vice premier He Lifeng, reportedly see the social media platform transfer its US assets to new US owners from China’s ByteDance.

One of the major questions is the fate of TikTok’s powerful algorithm that helped the app become one of the world’s most popular sources of online entertainment.