Repository navigation
Right-click on message text shows the message menu on macOS 27 again, and the Swift tests pass - #206
Merged
Merged
Conversation
… the settings test accepts an emptied domain
Owner
Author
Review (
|
This was referenced Nov 14, 2026
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.
What changed
Right-click on message text (app fix). From macOS 27, SwiftUI draws selectable text (
Text(...).textSelection(.enabled)) in its own view,AppKitTextInteractionView, not in anNSTextField.TimelineList.menuAroundonly recognisedNSTextFields, so on macOS 27 right-clicking or control-clicking a message's text showed the text's own menu (Cut, Copy, Paste, Font, Spelling…) and not the message's menu (Reply, React…).menuAroundnow also takes a view that accessibility reports as static text (the new view's role isAXStaticText; there is no public class for it). TheNSTextFieldpath for macOS 26 is unchanged, and editable text still keeps its own menu.Settings test (test fix only). On macOS 27,
removePersistentDomain(forName:)leaves an empty domain behind, sopersistentDomain(forName:)returns[:]and not nil (a domain that never existed still returns nil).Legacy.adoptSettingsbehaves correctly: the old settings are gone, and running it again on the empty domain does nothing. The test now checks that the old domain has no keys left. If the domain isn't emptied, the failure message lists the keys that are still there.The
MessageRowTestshelper now finds the message text as either anNSTextFieldor a static-text view, and clicks into it. A text field goes into the window's field editor, as before. Any other text view becomes first responder.How it was tested
macOS 27.2.1, Xcode 27.2, unsigned test runs:
XCTAssertNil failed: "[:]", andXCTUnwrap failed: … NSTextField).menuAround, and withadoptSettings'sremovePersistentDomainline commented out: both fail. Legacy fails with["appearance", "showInMenuBar"] is not equal to []. The message-row test fails on the twomenuAroundassertions (right-click and control-click), so the app really was wrong on macOS 27.LegacyTestsandMessageRowTestspass,testEditableTextKeepsItsOwnMenuincluded.make format,make lintandcd core && cargo test -qall pass.AXStaticTextrole and the menus. Hush itself was not launched, so no right-click was made by hand in the live app.Not verified: macOS 26. That path is the same
NSTextFieldcode as before, and the tests used to pass there.Closes #203