Skip to content

Fix family announcements: shared outcome helper, first call sites - #3898

Open
accesswatch wants to merge 1 commit into
mainfrom
review/fix-family-announce
Open

accesswatch wants to merge 1 commit into
mainfrom
review/fix-family-announce

Conversation

@accesswatch

Copy link
Copy Markdown
Contributor

Part of #3852

Builds the shared outcome helper once and converts the first call sites.

Helper

quill/ui/outcome_announce.py (new, small module; GATE-11 budgets untouched):

  • announce_result(announce, ok, done_text, fail_text): speaks exactly one sentence chosen from the real outcome, so a success sentence cannot follow a failure.
  • write_clipboard_text(wx, text): bounded-retry clipboard write that returns whether the text landed (write counterpart of with_clipboard_read_retry).
  • announce_keys_saved: the Keyboard Manager's outcome sentence.

Members converted (each with a test that fails before)

#2682 (high): checked on current main, already fixed by the per-run stop event (#2367); commented on the issue.

An existing test fake (_PollHost._reload_from_disk_preserving_cursor) now returns True, because the real method now reports success; no assertion was loosened.

Left for later segments or other sessions

Everything else on the family checklist. Related to this PR but not done: #3508 (AI result / chat dialog Copy buttons need an announce callback plumbed in), #3515, #3669, #3678, #3776, #2719, #2743. Radio / Cast / Weather / GitHub Workbench members are left to their sessions (#3784, #3782, #3776 and the github_* ones, #3148, #3528, #3631, #3543, #3608, #3179, #3028, #3023).

Checks

ruff check/format, check_over_announce (GATE-13), braille_parity_audit (GATE-BRAILLE), dialog_inventory, dialog_button_contract, check_access_keys, module_size_budget all clean; related unit tests pass (tests/unit/apps run, 98% at push with no failures).

🤖 Generated with Claude Code

Adds quill/ui/outcome_announce.py: announce_result (one sentence from the
real outcome) and write_clipboard_text (clipboard write that reports whether
the text landed). Converts the sites whose false success, silence or double
speech was real on current code: Activity Copy Details, AI Thesaurus Copy,
Clip Library Copy and Combine, QUILL Lite Keyboard Manager save, Edit >
Delete, List Headings latch, Status bar F6 landing, external-change
auto-reload, recommended keymap update notice, and Quillin Remove / Configure
Events.

Part of #3852

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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