Skip to content

Keep remote images in sync with the reader preference - #286

Merged
huacnlee merged 3 commits into
huacnlee:mainfrom
CJKaufman:fix/always-show-images
Sep 25, 2026
Merged

huacnlee merged 3 commits into
huacnlee:mainfrom
CJKaufman:fix/always-show-images

Conversation

@CJKaufman

@CJKaufman CJKaufman commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

When “Always show images” changes while a message is open, the reader now uses the current preference immediately. Turning it off removes the approved document before a replacement render returns, discards queued image requests, and ignores late image bytes. Turning it on rerenders the open message; a cursor preview remains blocked, including in a unified mailbox.

The account owns this transition because the service preference is bound to every account. A native read that began under an older image policy is rerendered from its opaque reader key before its document reaches the UI.

The macOS standalone API contract fixture now creates its synthetic private storage directories with 0700 permissions before launching the backend. That prevents a background permission hardening step from being mistaken for a disabled agent method's side effect in the storage snapshot test.

Verification

  • Qt 6.11.2 offscreen: tst_render_cache.qml (17 passed), tst_unified_routing.qml (28 passed), and tst_prefetched_reader.qml (14 passed). The new regression cases failed against the earlier PR head before the repair.
  • make test-js, bash tests/test_source.sh, make qml-check, and git diff --check passed on the image repair commit 02008a3. qmllint reported warnings while exiting successfully.
  • On 960e1d0, the API contract fixture passed Python syntax parsing and git diff --check. The first macOS job stopped earlier in the standalone host's SettingsTest::watchSettlesAfterDirectoryMutation, whose changed signal count grew after its fixed settling wait. That job is being rerun on the same commit; the packaged API contract test has not yet run there.
  • Full make validate, the packaged API contract test, and a live visual check were not run locally in this review.

UI evidence

Comparable before and after screenshots of the reader with remote images blocked and allowed are still needed, using the same synthetic message, theme, size, and scale. The visible difference is that changing the preference updates the open reader, while a unified mailbox preview stays blocked.

Release Notes

  • Changing the remote image preference now updates the open message and stops queued image requests when images are disabled.

@huacnlee huacnlee changed the title Apply alwaysShowImages updates to active message Keep remote images in sync with the reader preference Sep 25, 2026
@huacnlee
huacnlee enabled auto-merge (squash) September 25, 2026 15:17
@huacnlee
huacnlee disabled auto-merge September 25, 2026 16:29
@huacnlee
huacnlee merged commit 1bf2692 into huacnlee:main Sep 25, 2026
24 of 25 checks passed
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.

2 participants