Skip to content

fix(desktop): remember Inbox unread-only choice - #7672

Open
ngthuydiem wants to merge 1 commit into
mainfrom
diem/aida-2027/remember-unread
Open

ngthuydiem wants to merge 1 commit into
mainfrom
diem/aida-2027/remember-unread

Conversation

@ngthuydiem

@ngthuydiem ngthuydiem commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Summary

Inbox forgets the Show unread only choice after navigation or restart. Save the toggle with the existing safe storage helpers and restore it when Inbox opens.

The preference stays on this installation and applies across accounts and communities. Fresh installations keep the current off default. If storage fails, the current view remains usable, but the choice may not survive navigation.

Related issue

Related report: #3669.

Overlaps with #6105 and #3682. #6151 also persists category filters and pane widths. This draft keeps the change to the unread toggle and reuses the existing storage helpers.

Testing

The mock Desktop regression passed: enable the toggle, navigate to Agents and back, reload, then repeat with the toggle disabled. Both choices were restored. This exercises the UI with a synthetic fixture; a native app restart was not tested.

The full local repository CI gate is pending. Keep this PR in draft until validation completes.

Before and after behavior

Same synthetic Desktop fixture in Chromium, 1280×720, on macOS. Before: production source from 41c5ace93740261ee5a5d962c2a17e8d846c2c1b. After: PR head b50c1a06d53fdc080e7aae6ee9aa2e9ad6b60a82. The capture test asserted the displayed toggle state before taking each screenshot.

  1. Enable Show unread only, open Agents, go back to Inbox, and reopen Inbox options.
  2. Enable the toggle again, reload the page, and reopen Inbox options.

Before the fix the toggle is off after both journeys; after the fix it stays on. These are mock-backed UI captures, not a native Desktop restart or live relay test.

Journey Before: resets to off After: stays on
Inbox → Agents → back before-navigation after-navigation
Enable → page reload before-reload after-reload

Generated with Codex

Signed-off-by: Diem Nguyen <diem@squareup.com>
@github-actions

Copy link
Copy Markdown

🔐 Codex Security Review

Status: review required for the current range.

The current range is 41c5ace93740261ee5a5d962c2a17e8d846c2c1b...b50c1a06d53fdc080e7aae6ee9aa2e9ad6b60a82.
A new review must complete for this exact range. When manual authorization
is required, a Block organization member must comment exactly
@buzz-security-review b50c1a06d53fdc080e7aae6ee9aa2e9ad6b60a82 to authorize a new review.
Any previous review applies only to its recorded range.

@ngthuydiem ngthuydiem added the triage-ready Appropriate for agentic review label Sep 15, 2026
ngthuydiem added a commit that referenced this pull request Sep 15, 2026
@ngthuydiem
ngthuydiem marked this pull request as ready for review September 15, 2026 20:54
@ngthuydiem
ngthuydiem requested a review from a team as a code owner September 15, 2026 20:54
@ngthuydiem ngthuydiem changed the title fix(desktop): remember Inbox unread-only choice (AIDA-2027) fix(desktop): remember Inbox unread-only choice Sep 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

triage-ready Appropriate for agentic review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant