Skip to content

fix(cursor): the five cursors that waited for Rune, as official has them - #1187

Merged
Hona merged 8 commits into
devfrom
cursor-fix/on-pin
Nov 25, 2026
Merged

Hona merged 8 commits into
devfrom
cursor-fix/on-pin

Conversation

@Hona

@Hona Hona commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

The last five places where the pointer's cursor differed from the official app, now that Rune can express them. It needs the Rune pin of #1192 and merges right after it, so both are in the same build.

Why

After #1105 and #1127 the cursor matched official's source at every stop of the pass except where Rune had no way to say it. Rune has those ways now (anomalyco/rune#2116, #2121, #2122, #2127), so the app can follow official's style sheets in the remaining five places.

What changes

Where Official Before After
A URL in a tool's text A plain <a>: the arrow (packages/ui/src/styles/base.css:84) The hand The arrow (El::link_cursor)
A zoomed image in the image viewer Grab and grabbing are reset to the arrow (image-preview.css:134,139, packages/desktop/src/renderer/styles.css:7-8) The grab cursor The arrow (Preview::pan_cursors(false)); dragging still pans
A retry's message line cursor-help, with the whole message in a tooltip above it (session-retry.tsx:68-78) The I-beam over the text, the arrow beside it, no tooltip Help over the whole line, and the tooltip
A queued message while it is being sent cursor-progress (queue-panel.tsx:228) The arrow Progress
The browser's address field cursor: text on the whole field; default on its zoom badge (bar.css:22, :137) The arrow The I-beam; the arrow on the site button and the zoom badge
  • Plugin contract 1.10: every ui.* node takes an optional cursor, by its CSS name. Rune's Luau layer applies it (feat(luau): a cursor prop on ui nodes rune#2127); the contract lists it so plugin types and the prop check know it. The browser plugin is its one user. A plugin that does not set it is unchanged.
  • The allow-list (scripts/cursor-allow.txt) gains Help and Progress with their official lines, and the tool URL's line now says the arrow.

What a user sees

The five rows above, and nothing else. The retry row's tooltip is new text on screen: the full error message, as official shows it.

Run

Every read is on this PR's Windows x64 build: the pointer is moved to the element and the cursor is read from the tree (pointer.cursor, anomalyco/rune#2117), headless. The zoomed image is also read from a real window: the window thread's cursor handle, and the bitmap Windows draws for it.

Change Scene Read Also seen
The browser's address field The browser pane text (was the arrow) The site button reads the arrow
A retry's message line retry (new) help After 1.8 s the tooltip holds the whole message: "Rate limit exceeded: Too many requests, please slow down."
A queued message while it is sent queue-sending (new) progress
A URL in a tool's text tools-shell-link (new) default (the arrow) The link's own tooltip, the URL, shows: the pointer is on the link, not beside it
A zoomed image in the viewer reply-image, the viewer opened and zoomed by two clicks default at rest and with a button held; the window shows Windows' arrow On the bump without this PR the same two stops read grab and grabbing
  • The whole pass: the 101 stops of fix(ui): the pointer's cursor follows the official desktop app, element by element #1105's pass, on this change's first 12 files on an earlier Rune commit (d74f116e4), before the bump existed. 0 stops differ from official; 1 is unsettled in official's own source. Tree cursors: 78 arrow, 15 text, 4 column resize, 2 hand, 2 not-allowed.

  • Nothing lost: the pass's six checks pass on that build: four edge drags, a tab drag, typing in the prompt.

  • The pictures. What Windows draws at three stops, on white and on black: before the bump, on the bump, and on the bump with this PR. The first row is not this PR's (the zoom-in picture comes with the bump, fix(windows): grab, grabbing, zoom-in and zoom-out show Chromium's pictures rune#2123); the other two are.

    The cursor at three stops on three builds

  • The single stops and the pictures ran on this change on the bump's branch before dev was merged in (its head then: the pin and the re-keyed profiles). The head that merges differs from that tree by dev's commits only; none of them touches a file of this PR.

  • scripts/guardrails.ps1: 9 of 9 pass on the head that merges, with the generated plugin files matching contract 1.10.

  • Builds: macOS, Windows x64 and arm64, Linux x64 are green on the head that merges. Linux arm64 is not built in a PR run.

The scenes

Three of the five places had no scene a headless run can open, so the second commit adds them. They are app scenes for looking, not tests.

  • queue-sending: the queue-3 scene with its first row pending. A fixture run answers a queue change in the step that asks for it (features/inbox/src/queue/run.rs), so no row was ever pending there. The scene asks for the row's Undo and drops the write.
  • retry: the open session with a step the server is waiting to try again.
  • tools-shell-link: the tour session with a running shell whose output starts with a URL. No tool output in the fixture held one.
  • Composer/Queue row sending: the held row as a story, for the storybook.

Not run

  • No before side for the three new scenes: a build without this PR cannot open them. Their before is the table in "What changes", from the source.
  • While the address field is being edited its own padding still shows the arrow (only the text field inside is a hit target there).

@Hona
Hona changed the base branch from rune-pin/probe-d74f116e to dev November 25, 2026 09:47
@Hona Hona closed this Nov 25, 2026
@Hona Hona reopened this Nov 25, 2026
@Hona
Hona force-pushed the cursor-fix/on-pin branch from 1559186 to 99ac712 Compare November 25, 2026 10:21
Hona added 2 commits November 25, 2026 20:58
A pin move renames every Rune symbol, so the committed profiles were dead for Rune's code on this branch's first commit. Both are re-keyed onto this tree's names, read from the instrumented build of #1193 (scripts/pgo-rekey.mjs).

Windows x64: the counts trained on 25 Nov (launch weight 1): 17,961 of 18,439 functions keep their counts, 337 are dropped because their code changed, 141 no longer exist.
Apple silicon: the committed profile, not trained anew: 15,030 of 15,445 kept, 285 dropped, 130 gone.
The arrow over a URL in a tool's text (link_cursor) and over a zoomed image in the viewer (pan_cursors), help over a retry's message with its whole text in a tooltip, progress over a queued message while it is sent, and the I-beam over the browser's address field through a new cursor prop in the plugin contract (1.10).
@Hona
Hona force-pushed the cursor-fix/on-pin branch from 685e72c to 13b8680 Compare November 25, 2026 11:00
… link in tool output

Three places this branch's cursors can be looked at, which no scene showed: queue-sending (the queue-3 scene with its first row pending: a fixture run answers a queue change in the step that asks for it, so here the Undo is asked for and its write dropped), retry (the open session with a step waiting to be tried again) and tools-shell-link (the tour with a running shell whose output starts with a URL). Composer/Queue row sending is the held row in the storybook.
@Hona
Hona marked this pull request as ready for review November 25, 2026 15:54
@Hona
Hona merged commit 2397242 into dev Nov 25, 2026
7 checks passed
@Hona
Hona deleted the cursor-fix/on-pin branch November 25, 2026 15:55
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