Repository navigation
Fix family cancel/Escape: shared ask_text and confirm_discard helpers, first call sites - #3895
Merged
Merged
Conversation
…, first call sites Part of #3851. New quill/ui/cancel_prompts.py (ask_text returns None on cancel, ask_yes_no_cancel, confirm_discard defaulting to No) and ten call sites where Cancel, Escape or the close box was read as an answer. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This was referenced Nov 30, 2026
Closed
accesswatch
added a commit
that referenced
this pull request
Nov 30, 2026
…y cannot double-speak (#3903) The service's transcript sink calls sr_announce.announce, which calls whatever handler an earlier test left installed; that handler spoke 'Saved' through its own engine, so these tests failed depending on file order within a worker (seen on #3895 and #3896). Reproduced by installing such a handler before the tests; they now clear it. Co-authored-by: Jeff Bishop <jeff@community-access.org> Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
This was referenced Dec 1, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #3851.
The helper (built once)
quill/ui/cancel_prompts.py(new module, becausedialog_contract.pyis at its GATE-11 ceiling):ask_text(...)returnsNoneon Cancel, Escape or the close box, and a string (possibly empty) only on OK.ask_yes_no_cancel(...)returns True, False orNone(back out).confirm_discard(...)asks "Discard ...?" with No as the default, and only when there is input to lose.All go through
show_modal_dialog/show_message_box. The Workbench gets them through a small new mixin,github_workbench_prompts.py(_ask_text_or_none,_confirm_or_cancel);_ask_textkeeps its shape for its other callers.Members converted (each with a test that fails on the old code)
Existing tests adjusted only to answer the new questions (review Escape, Discard, revert stub); none loosened.
Members left for other families or later PRs
Checks
ruff check/format, GATE-11, dialog_button_contract, check_access_keys, check_over_announce, braille_parity_audit, surface_reachability, dialog_inventory (registry regenerated); tests/unit/ui, tests/unit/apps, tests/unit/tools pass in parallel (one machine-global Cast test errored in the fan-out and passes serially).
🤖 Generated with Claude Code