Retailers are also shaken by economic uncertainty and the rise of agentic commerce.