Skip to content

Treat an already-gone recommendation as cleared, not an error#86

Merged
windoze95 merged 1 commit into
mainfrom
fix/dismiss-tolerates-gone
Jul 11, 2026
Merged

Treat an already-gone recommendation as cleared, not an error#86
windoze95 merged 1 commit into
mainfrom
fix/dismiss-tolerates-gone

Conversation

@windoze95

Copy link
Copy Markdown
Owner

Tester report

Subscribing to a recommendation showed "Subscribed to X, but the suggestion could not be cleared" and left the card with a stale Subscribe button.

Fix

discoverProvider.dismiss optimistically removed the card, then on any failure rolled it back and rethrew — so a 404 (the recommendation already gone) made the card reappear and the screen show the cleanup error. Now a 404 is treated as success: the card stays cleared, nothing is rethrown (other errors keep the rollback + surface). This covers the staleness-sweep race and, together with the backend fix (windoze95/nullfeed-backend#133 — subscribe no longer wipes the whole list), makes the Explore/Home subscribe→clear flow reliable.

Test plan

New widget test asserts a 404 during clear leaves the card removed with no error toast. dart format + flutter analyze --fatal-infos --fatal-warnings clean; all 234 tests pass.

🤖 Generated with Claude Code

Tester report: subscribing to a recommendation showed "Subscribed to X, but
the suggestion could not be cleared" and left the card with a stale Subscribe
button.

discoverProvider.dismiss optimistically removed the card, then on ANY failure
rolled it back and rethrew — so a 404 (the recommendation already gone) made
the card reappear and the screen show the cleanup error. Now a 404 is treated
as success: the card stays cleared and nothing is rethrown (other errors keep
the rollback). Covers the staleness-sweep race and, with the backend fix
(windoze95/nullfeed-backend#133) that stops subscribe from wiping the list,
makes the Explore/Home subscribe->clear flow reliable.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@windoze95
windoze95 merged commit 5f3ac0c into main Jul 11, 2026
8 checks passed
@windoze95
windoze95 deleted the fix/dismiss-tolerates-gone branch July 11, 2026 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant