Skip to content

fix(macos): wire description link digit hints and caret open regression - #5181

Merged
tyler-dane merged 15 commits into
mainfrom
cursor/description-link-keyboard-8feb
Nov 9, 2026
Merged

tyler-dane merged 15 commits into
mainfrom
cursor/description-link-keyboard-8feb

Conversation

@tyler-dane

@tyler-dane tyler-dane commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

CI exact head (c7f8ee811)

VERDICT: macOS workflow green (34 checks, run 42432934921): swift-packages, macos-build, and UI shards passed.

Overlay reflow fix: textContainerChangedGeometry on editor width change; reflow test uses wrap-forcing widths + diagnostic snapshot.

Ready for independent review. Do not merge until review sign-off (per parent bar).

Open in Web Open in Cursor 

cursoragent and others added 15 commits November 7, 2026 21:25
Restore link digit overlay when the description field blurs, route bare
1…9 to document-order hrefs while hints are visible, and add unit tests for
caret Mod+Shift+Enter parity and hint activation.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Expose DescriptionLinkKeyboard for Compass app routing, run bare 1-9
only after color and Mod+digit handlers and block title or other text
fields. Add CompassNativeTests router cases with injectable openURL.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
DescriptionTextView.findInKeyWindow and link digit hints require the
compass-event-form-description identifier. Unit and router tests construct
DescriptionEditorContainerView without SwiftUI makeNSView.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
XCTest on CI does not make ad-hoc NSWindows key without activation and a
short run-loop pump. Shared fixture keeps linkDigitHintsActiveInKeyWindow
assertions and router positive path intact.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
XCTest hosts on CI keep NSApp.keyWindow nil unless the window is
explicitly keyable and the app is finishLaunched. Resolve description
editors from isKeyWindow roots; use KeyableDescriptionHintTestWindow in
fixtures without dropping activation assertions.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Drop speculative isKeyWindow content-root fallback that disagreed with
router NSApp.keyWindow guards. Fix compile error; fixture pumps until
NSApp.keyWindow matches the keyable test window.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Satisfies Swift 6 concurrency on configuredApplication while keeping
strict NSApp.keyWindow fixture assertions for router proof.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
…ctest

When the XCTest bundle host keeps NSApp.keyWindow nil, tests may set a
lookup window only after the editor and hint overlay are hosted there,
matching the CommandPalette hostWindow pattern without weakening router
focus guards.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Avoid layout reentrancy when the XCTest host never keys the fixture window.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Skip rebuilding keycap subviews when link count is unchanged so
AppKit does not recurse layout on the fixture host window.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Use orderedLinkAttributeEntries for chip layout and slot sync, and
invalidate overlay layout when geometry changes so numbering matches
keyboard destinations after reflow.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
… test

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
…tests

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Include link ranges and glyph count in layout cache, invalidate on slot
sync, and test reflow/prefix edits without toggling hint visibility.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Notify the text layout manager when the editor scroll width changes and
tighten the reflow test with diagnostic snapshots and wrap-forcing widths.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
@tyler-dane
tyler-dane added this pull request to the merge queue Nov 9, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Nov 9, 2026
@tyler-dane
tyler-dane added this pull request to the merge queue Nov 9, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 9, 2026
@tyler-dane
tyler-dane added this pull request to the merge queue Nov 9, 2026
Merged via the queue into main with commit 33aed62 Nov 9, 2026
34 checks passed
@tyler-dane
tyler-dane deleted the cursor/description-link-keyboard-8feb branch November 9, 2026 20:31
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.

2 participants