Seen on LibreChat-AI#16245 CI: e2e (memory, shard 3/3) failed on 2 of 3 attempts (runs 36145255108 first attempt and 36151188309), passing on rerun with identical code.
e2e/specs/mock/scenarios/unseen-replies.spec.ts asserts the absolute unread title count (/^\(2\)/) for the shared E2E user after seeding two unread conversations, and received (3) LibreChat. Any spec earlier in the same shard that leaves a conversation with a reply the user has not seen (the streaming specs step-reducer and streaming-markdown-blocks run just before it in shard 3) inflates the count, so the result depends on shard composition and stream timing.
Fix: assert the count relative to a baseline read before seeding, or clear the user's unread state in the spec's setup.
Seen on LibreChat-AI#16245 CI:
e2e (memory, shard 3/3)failed on 2 of 3 attempts (runs 36145255108 first attempt and 36151188309), passing on rerun with identical code.e2e/specs/mock/scenarios/unseen-replies.spec.tsasserts the absolute unread title count (/^\(2\)/) for the shared E2E user after seeding two unread conversations, and received(3) LibreChat. Any spec earlier in the same shard that leaves a conversation with a reply the user has not seen (the streaming specsstep-reducerandstreaming-markdown-blocksrun just before it in shard 3) inflates the count, so the result depends on shard composition and stream timing.Fix: assert the count relative to a baseline read before seeding, or clear the user's unread state in the spec's setup.