fix(frontend): correct My Threads unread badge - #1641
Open
hmans wants to merge 6 commits into
Open
Conversation
hmans
force-pushed
the
hmans/fix-my-threads-unread-badge
branch
from
July 20, 2026 19:04
da1b2a5 to
b901fbe
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
“My Threads” could show false or stale unread dots for unfollowed, muted, inaccessible, or concurrently updated threads, while the first realtime fix made every reply perform an exhaustive per-viewer followed-thread read.
What changed
Closes #1643.
API compatibility
Older client → newer server: Older clients ignore the two optional notification-transition fields and retain their existing notification-based badge behavior; known projection operations and protocol version remain unchanged.
Newer client → older server: The client falls back to resolving the target from the pending notification page; if another device dismisses it before mapping, the badge may defer until another thread-state replacement or reconnect. Servers without the access-restoration replacements likewise converge on another thread transition or reconnect.
Capability discovery or minimum client/server version: Unchanged; the fields are optional metadata on an existing protocol-v2 operation, so no capability or coordinated rollout is required.
Test plan
mise codegen-proto && mise build-api-types— passed; generated Go, TypeScript, and reference docs are committed.mise test-cli— frontend production build and all CLI packages passed.mise x -- pnpm check(fromapps/frontend) — design guardrails passed;svelte-checkreported 0 errors and 0 warnings.projection.svelte.ts;rooms.svelte.tshit an autofixer internal parser error;store.svelte.tsreported only pre-existing$effectadvisories. Frontend check is clean.git diff --check origin/main...HEAD, generated source-link existence, and edited architecture-paragraph length checks — passed.