Repository navigation
fix(app): swipe to dismiss a Needs attention row in Activity - #25783
Merged
Merged
Conversation
Server attention items could only be retried, so rows whose recording has no transcript stayed forever. PendingWorkStore.dismiss removes the row at once, calls the existing dismiss endpoint, and puts the row back with the quiet error line if the request fails. VoiceOver gets a Dismiss custom action.
…s-needs-attention
…ow again; bell skips attention-listed failures
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.
Problem
Activity "Needs attention" rows can only be retried or opened. Rows whose recording has no transcript fail every retry, so they never leave. #25353: one user has about 60 stuck rows back to Oct 19.
The backend already has
POST /v1/attention-items/{id}/dismiss(backend/routers/pending_work.py) and the app hasdismissAttentionItem, but nothing in app/lib called it.Prod, read-only Firestore scan of
processing_attention_itemsmetadata (2026-11-19 11:06 UTC): 10,536 active items, allconversation_summary_failed, across 1,113 users. 347 users have 5+ active items, 114 have 5+ older than 7 days, and the largest account has 627.Change
dismissstring is used, so no new copy.PendingWorkStore.dismiss(injected likeretry/markSeen) removes the row at once and calls the endpoint. If the request fails, the row comes back in place with the existing quiet "Something went wrong" line, and a 404 counts as already gone. A read that was already running cannot bring the row back, and an ambiguous earlier retry keeps its idempotency key.attentionConversationIdsand saves them on the device per account (newest 500), so a dismissed row also stays gone after a relaunch.dismissedAttentionConversations.<uid>).reset()(sign-out, account switch) drops the in-memory copy, so the next account never hides or re-saves the old one's ids.Files: app/lib/services/pending_work/pending_work_store.dart, app/lib/pages/activity/needs_attention_section.dart, app/lib/pages/activity/activity_bell_button.dart, tests, changelog fragment.
Impact estimate
If dismiss ships, monthly churn goes 11.78% → 11.78% (effect unmeasured).
Evidence
Simulator, lane sim.2, iPhone 17 Pro iOS 26.4, re-shot 2026-11-21 against main fa56be0. Both builds use the same seeded state: 5 failed-summary attention items, 3 left swipes, then a relaunch.
Video (not in git): ~/mobile-ux-agent/runs/2026-11-19/p1/demo.mp4 and demo.gif.
At ship
Tests
flutter testwith pending_work_store_test (optimistic removal, restore on failure, 404, read fence, relaunch persistence, failed dismiss forgets the saved id, account switch neither hides nor re-saves the old account's ids, a new failure shows again), pending_work_test (swipe dismisses, VoiceOver custom action present), v3_outcomes_test (a dismissed, still-failed conversation does not light the bell; fails without the bell change), test/pages/activity, notes_attention, needs_attention_capture, processing_today_render, home_v3, sync_attention_evidence: 144 passed, after merging main fa56be0.dart analyze: no issues.Not verified
Product invariants affected
none
Failure-Class: none
UI-Evidence: see the images above (.agent-artifacts/ui-evidence/mux-2026-11-19-dismiss-needs-attention)