Skip to content

Fix stuck Checking read receipts on arrival/resume, QtGoalBar mobile clipping, and bundle_check CliCommand guard - #2326

Merged
trissim merged 1 commit into
mainfrom
fix/android-read-receipts-and-goal-clip
Nov 27, 2026
Merged

trissim merged 1 commit into
mainfrom
fix/android-read-receipts-and-goal-clip

Conversation

@trissim

@trissim trissim commented Nov 27, 2026

Copy link
Copy Markdown

Fixes the two Toad-side causes of read receipts staying stuck on Checking on Android/desktop, plus mobile QtGoalBar vertical text clipping:

  1. Arrival glide & programmatic layout scroll now refresh viewport notifications/read marks (src/toad/arrivals.py, src/toad/client/history_pager.py): when a new message arrived at the tail, rows_published fired check_notifications before the arrival glide scrolled it into view, and ViewportArrival.land / ReaderPlacement.layout_scroll scrolled under _restoring = True without calling request_preparation(). Both Qt and Textual now call request_preparation() once a non-glide layout scroll or arrival glide finishes (zero mid-glide spam).
  2. Observation reconnect / Android resume rebinds active notification views (src/toad/client/connection.py, src/toad/client/history_notifications.py, src/toad/client/subscribers.py): Observation.attach previously wiped notification_views and notification_known without re-subscribing open views (unlike sidebar_views, team_pages, thread_status, and views_interest), stranding every open tab's receipts after app resume, network blip, or Core restart. Active and outage-pending subscribers are now captured before clearing and rebound polymorphically by Observing / FailedObservation.
  3. QtGoalBar.fit_document uses wrapped heightForWidth (src/toad/qt/goal.py): fixes 2nd-line vertical clipping of Objective: on 412px phones (where body.sizeHint().height() measured unwrapped 1-line height 17px instead of wrapped 51px).
  4. Android bundle guard (tools/android/bundle_check.py): verifies FieldCodec.encode(ThreadCliCommand(name='probe')) succeeds in the stripped -S -B APK tree without packaging.

Verified: 63 passed (test_android_perf_ux_arrivals.py, test_arrival_fade.py, test_message_notifications.py, test_shared_frontend_members.py), qt_inherit_ratchet.py/shadow_check.py/guarded_imports.py all 0, REL_IMPORTS=0.

…port after arrival glides, and size QtGoalBar by wrapped heightForWidth
@trissim
trissim merged commit 5cacf4c into main Nov 27, 2026
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