Skip to content

Use DeliveryProgress.is_queued() for queued_recipients so sent/passive messages don't show held - #2253

Merged
trissim merged 1 commit into
mainfrom
fix/queued-recipients-is-queued
Nov 24, 2026
Merged

trissim merged 1 commit into
mainfrom
fix/queued-recipients-is-queued

Conversation

@trissim

@trissim trissim commented Nov 24, 2026

Copy link
Copy Markdown

Summary

  • Fix CheckedNotifications.queued_recipients (src/toad/client/notification_status.py:143) to ask item.state.is_queued() (added in Core agent-comms#5128) instead of not item.state.is_consumed() (which misclassified 15 of 16 DeliveryProgress subclasses — including SentProgress, PassiveProgress, HumanReadProgress, CompletedProgress, AnsweredProgress, and IgnoredProgress — as queued, keeping ⧗ N held and Enter queues · Send now stuck visible forever when nothing was queued).
  • Add test_checked_notifications_only_counts_actually_queued_recipients in tests/model/test_bus_queue_summary.py covering all DeliveryProgress states and verifying BusQueueSource hides held/queue UX when nothing is actually queued.
  • Update tests/textual/test_input_failure_draft.py to assert that sent messages in an idle peer's inbox (SentProgress) retire from holds_input and hide DeliveryControls.

Verification

  • PYTHONPATH=src pytest -p no:xdist tests/model/test_bus_queue_summary.py tests/textual/test_input_failure_draft.py -v (12 passed in 17.36s)
  • tools/qt_inherit_ratchet.py, tools/shadow_check.py, tools/guarded_imports.py (all 0)

@trissim
trissim merged commit 9fd5ead into main Nov 24, 2026
1 of 2 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.

1 participant