Web Messaging SDK guest attributes not persisting for authenticated users

Setting custom guest attributes via the Genesys Cloud Web Messaging SDK isn’t sticking for logged-in users. I’m calling genesyscloud.conversations.guest.setAttributes({userId: '123'}) right after login. The widget renders fine, but the attributes are missing in the interaction data. I’ve tried passing them in the initial config object too. Any idea what I’m missing?