Members missing from a response never get requested again, causing roles and nicknames to stay missing

(#5098) Bug Open: Needs triage api community desktop

Reproduction steps

Open a guild channel where some message authors haven't been loaded yet in the current session. Scroll through messages so the client starts requesting the missing members by user ID. If the response comes back without certain users, check whether those users are missing their roles and nicknames. Scroll away and back, leave and rejoin the channel, or restart the app and check if those members load. I've noticed that once this happens, those specific users stay broken for the rest of the session. Even restarting the app doesn't seem to fix it if the store gets restored from a snapshot.

Expected behaviour

If someone is actually a member of the guild, the client should eventually request and load their member data, even if they weren't included in the first response.

Actual behaviour

If a requested member is missing from the response, the client seems to permanently treat them as someone who isn't in the guild. Their roles and nicknames never load, and the client doesn't try requesting them again. Scrolling, reopening the channel, and even restarting the app don't seem to fix it.

Build information

Canary Desktop 2026.1101.102914, Web 2026.1103.134007, Windows 11 10.0.26300 (x64), Electron 44.10.0, Chrome 152.0.7977.169, Node 24.22.1, Locale en-GB

Platform

Windows, Web

Evidence

I traced this back to GuildMembers.markNotFoundAsNonMembers(). When a member ID is missing from a response, the client adds it to the nonMembers set. After that, getMissingMemberIds() filters that ID out, so the client stops requesting that member. I also found that isMembershipKnown() treats those users as already accounted for, even though their actual member data was never loaded. On the gateway side, members_search.gleam looks up members through the guild actor's in-memory member table. If a real member isn't present there, they can be left out of the response and incorrectly cached as a non-member by the client.

Comments

Sign in with Fluxer to comment and vote.

No comments yet.