Skip to content

Bug: Failed notification read requests leave unread rows hidden from the open panel #3609

Closed

Description

@yannickmonney

Failed notification read requests leave unread rows hidden from the open panel. Confirmed locally against 44e0dcf254975286c0e9dea443b5cd1ca6b23347.

A transient failure hides pending work and removes its retry control for the rest of the current filter session. Both streams share the same missing rollback.

Steps to reproduce:

  1. Open Notifications with an unread row in either the organization or personal stream.
  2. Make the read request fail, for example by taking the local test backend offline, then click Mark as read.
  3. Let the refusal settle. A fresh response still reports the row read=false and unreadCount=1. Keep the panel open.
  4. Switch to All as a recovery control: the supposedly dismissed row immediately reappears.

Expected: If marking a notification read fails, restore it to the unread list so it can be retried. The count and empty state must agree.

Actual: The row is inserted into hiddenIds before the request and never removed on rejection. Even a fresh read=false response leaves it suppressed. The panel shows Unread (1) and You're all caught up with no row.

Source:

Local proof: /Users/yannick/.codex/notes/tale-100-findings/notifications-proof/notification-boundaries.test.tsx. Frozen output: /Users/yannick/.codex/notes/tale-100-findings/notifications-proof/boundary-probes.log. The suite passed 8/8; it asserts the defective behavior plus the controls described above.

/Users/yannick/.npm/_npx/22f2fe8d8bc13000/node_modules/.bin/bun x vitest run --config /Users/yannick/.codex/notes/tale-100-findings/notifications-proof/vitest.config.ts --maxWorkers=2 --reporter=verbose

Local jsdom execution at the pinned source. Backend data/mutation boundaries are controlled fixtures; the production component/state/control code runs unchanged. No browser, production data or external integration exercised.

Deduplication: Reviewed the 931 all-state issues in existing-issues.json and current findings.json; no matching root cause found. All-state GitHub searches: notification read failed, notification in:title. #2019 fixed pending-button gating; this is rollback after rejection. #2377 covered ordering and destinations, not rejected read mutations.

Parent verification: independently reran the frozen component suite successfully; retained output: notifications-proof/parent-boundary-probes.log. Live all-state issue titles and relevant older reports were reviewed before filing.

Acceptance: reproduce the stated boundary in a regression test, preserve the working control, and verify the corrected behavior in the local UI before landing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions