Skip to content

fix(deps): pin rune to 5342f14d (93 commits): window buttons on Wayland without server decorations, smaller backdrop blur copies - #1257

Merged
Hona merged 3 commits into
devfrom
rune-pin/e16732a5
Nov 25, 2026
Merged

Hona merged 3 commits into
devfrom
rune-pin/e16732a5

Conversation

@Hona

@Hona Hona commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

The Rune pin moves from d5c7a5ad2 to 5342f14d1: 93 Rune commits. The first commit pinned e16732a5f (92 commits); the second moves it one Rune commit on, to Rune's latest dev (rune#2356). Its build is green, the Linux lab's run on it is in, and the first Windows checks are in (the walk's fourteen batches, the titlebar and the pointer's cursor). The rest are listed under "Checks: not in yet", and this text is updated as each comes in.

What changes in the app

Two files, no app code:

  • Cargo.toml: the pinned commit.
  • Cargo.lock: the pinned commit, and the one dependency edge Rune's own lock gained between the two commits: rune gains wayland-protocols-plasma, a package the app's lock already holds. Rune's lock also gained one package, hello-floor: an example in Rune's workspace that no other package depends on, so the app's lock does not take it. No package is added, removed or moved in the app's lock.

The app compiled against most of this range without a source change in a probe: #1184 built on macOS, Windows x64 and arm64, and Linux x64 against Rune dev at 0d2cad27f plus rune#2244's branch. Eight Rune commits after that probe are compiled with the app as one tree for the first time by this PR's build: rune#2226, rune#2349, rune#2137, rune#2351, rune#2353, rune#2352, rune#2350 and rune#2356.

What a person can see change

  • Linux: window buttons where the desktop draws none (rune#2244). Refs GNOME Wayland: put the window controls in OpenCode's titlebar #1146: with this Rune pin the app draws its own minimize, maximize and close buttons in the titlebar row on Wayland compositors that offer no server-side decorations (GNOME, weston). Shown in a headless lab under sway and labwc on the merging code; not shown on a real GNOME desktop.
    • Rune draws its own frame only where the compositor does not advertise zxdg_decoration_manager_v1 (window/titlebar/linux.rs:161-166 in Rune). RUNE_LINUX_FRAME=0 keeps the frame as it was.
    • Seen since, in the same headless lab under mutter (GNOME's compositor) with nothing forced: one row, three buttons, and presses with their effects (move, resize, mutter's own window menu, minimize).
    • The buttons follow the desktop's button-layout setting. Where it names only close (GNOME's default, appmenu:close), only a close button is drawn. That is by reading the code, not seen: the lab's settings portal gave no answer, so what was seen there is the three-button fallback.
    • A half-tiled window's free edge under mutter. On this PR's Linux x64 build a window tiled to the left half by Super+Left resized from its free right edge in nine of nine presses made 157 ms after the pointer arrived, and twice more on a window tiled by dragging its bar to the screen's edge. Mutter names the top, bottom and left sides as tiled and leaves the right free. What the lab saw earlier as a miss is this: a press that follows a pointer motion inside the window by about 4 ms does not find the resize band (a caption button pressed the same way acts). That is not reachable by a hand. Its cause is not read.
    • Not shown: a real GNOME desktop; Linux arm64; under mutter, that a press on the edge of a maximized window or a few points inside an edge asks for no resize (shown under labwc only); the resize cursors under mutter; the top tiled edge; the button-layout setting through a portal (none answers in the lab); the wm_capabilities path (tests only).
    • Linux x64 compiled this change two Rune dev merges before its merged tree (in chore(deps): NEVER MERGE: Linux proof build of Rune's own window frame (rune#2244 + #1183) #1184). This PR's build is the first compile of the merged tree on Linux.
    • On the pinned commit: this PR's Linux x64 build in the headless lab under mutter (GNOME Shell 46.0, mutter 46.2), nothing forced. It is the merged tree's first Linux start: twice to the first frame, and both times the app ended by itself on the close button with exit code 0. Every press again, with its effect read from mutter's own rectangle: maximize and restore by the button and by a double click; the bar dragged (the window moved 60 right and 40 down); the right edge and the corner resized; mutter's window menu on a right click; minimize; close.
    • The quick sequences for rune#2356, on that build (times are the app's own event times from the first press): a double click (presses at 0 and 160 ms) and a click on the restore button at 290 ms: restored; a double click and a press on the bar at 301 ms with two moves: a move asked; two double clicks 150 ms apart: maximized, then restored. No press was lost to the new fence at these distances.
  • The titlebar's presses go through a changed path on every platform (rune#2356). The change is for macOS: presses queued while a double click on the titlebar zooms the window are dropped instead of replayed. The code that carries out a titlebar action is shared with Linux, where it was run (see the quick sequences above). On Windows a press on the bar does not reach that code, by reading: the app's own frame answers the system's hit test, so Windows itself carries out the double click and the drag, and the frame the three buttons. So the Windows check says only that the frame behaves as before: a double click on the bar's empty part (maximize, then restore), a drag by the bar, and each caption button right after a maximize, sent as the system's own pointer messages to a real window. Its runs are in, and both builds behave the same: see "Checks: in". The drag cannot be shown by posted messages, and is said so there.
  • A context menu on links that had none (rune#2339): a right-click (or Shift+F10) on a link with an http, https or mailto address shows Open Link and Copy Link. By reading the code, nothing run yet:
    • Open Link calls the app's own link handler, so it goes where a left click goes. Rune opens nothing itself.
    • Where the app has its own menu, Rune's yields: the links in a reply keep the app's menu, as today.
    • The menu is new in a rendered Markdown file tab, in a tool's plain output, on the welcome page's usage link, and on links in Settings (About and its notices, Appearance, Extensions, Project extensions).
    • The official app shows a context menu on every link. By its menu library's defaults (not read in its own tree) that menu has Copy Link and no Open Link, so this pin brings those places nearer to it, with one item more.
    • To look at in the walk: a right-click on an https link in a rendered .md file tab, on one in Settings > About, on a URL in a tool's output, and on a mailto: link in a reply (expected: no menu there, as today).
  • The outline of a raised surface is a little lighter on its left, right and bottom edges (rune#2187). The theme's elevation tokens now list their layers in the design's order, so the half-point ring is drawn over the drop shadows instead of under them. Measured in the walk on a Markdown table in a reply, dark theme: the side edges go from 42 to 47 and the bottom edge from 32 to 40 (of 255); the top edge is unchanged. One control in the provider connect dialog shows up to 14. It is a meant change: the official app's layer order (opencode#66071). By its theme file the ring of a raised surface is over its drop shadows, so the direction and the edges are the official app's; the amount was not compared with its rendering. In the light theme the same file has the order change nothing except on the contrast button's ring; the walk's light-theme pictures are read for that.
  • Other changes in the range that act without app code. These are read from their titles only and have not been looked at in the app yet:
    • Linux: a right-click on a bare drag region opens the window manager's window menu (rune#2271), and a titlebar drag starts after 8 points so that a double click works (rune#2252).
    • Windows: a theme change in the system's settings reaches the app while it runs (rune#2280).

What should not be visible, and is why the pin is wanted

  • Memory: the backdrop blur's pooled copies hold the blurred regions, not the whole window (rune#2137). Measured for that PR on Windows x64 on an Intel adapter, an active maximised window with the Jump-to-latest pill on screen and 20 sessions: 134.1 -> 92.9 MB at 2560x1440, and 103.2 -> 77.5 MB at 1920x1200 (rune#2137 names the measure and the builds). Its pictures with text under the pill: 1 pixel off by 1 of 255 at the pill at two sizes, 0 at the third. Not measured: an NVIDIA adapter.
  • The CPU glyph atlas grows from 256 KiB instead of taking 4 MiB at the first glyph (rune#2260).
  • The frame trace is written from a writer thread, not the thread that draws (rune#2297). That changes the measuring, not what ships.

Rune's tests on the pinned commit

  • macOS tests on 5342f14d1 itself: run 45675406286, wholly green: 47 test targets ok, none failed; the rune library 3,697 passed, 0 failed, 17 ignored.
  • The jobs a push to Rune's dev starts, on 5342f14d1: check success, file size success. www, the site's build, was still running when this was read.
  • The commit before it, e16732a5f (rune#2244's merge): macOS run 45673238324 on a head with the same tree hash (9cd132c5a90e), wholly green: 47 test targets ok; the rune library 3,693 passed, 0 failed, 17 ignored.
  • Rune's tests ran on macOS only. Nothing here ran them on Windows or Linux.

Read before the cut: three commits on the launch path

  • rune#2350 (dac67eb35): a window's GPU is now made through Gpu::for_surface_setup_with_latch. With the default GpuLossPolicy::Recover the latch is None (window/host/gpu_loss.rs:39-42), and the function then does what the old one did: it takes the prewarmed device and runs the same setup with adapter fallback allowed (render/surface_setup.rs). The app names no GpuLossPolicy. AppHandle::warm_gpu_with is new, and the app does not call it. So by reading, nothing changes at the app's launch.
  • rune#2348 (0d2cad27f): guards for the opt-in GpuLossPolicy::Terminal. On the Windows hand-over path each new guard returns at once unless the policy is Terminal (window/host/gpu_loss.rs:116-119), and the effect warm returns early only when the device is lost or a Terminal latch has failed. So by reading, nothing changes at the app's launch. Its overlay files were not read.
  • rune#2325 (826873bb1): pointer injection for overlays, new API the app does not call. The wheel path was split into a shared function; it behaves the same by reading, and was not run.

Profiles

A pin move renames every Rune symbol, so in this PR the committed profiles are dead for Rune's code. A PR right behind this one re-keys both onto this tree's names, read from an instrumented build of this PR's second commit (#1255). Only builds from that re-key on are measured for speed. rune#2137 changes render functions; those lose their counts until the next training, and the re-key says how many.

Checks: in

  • This PR's own build on f8878eddda: guardrails, macOS, Windows x64 and arm64, and Linux x64 are green. A PR build does not build Linux arm64: that job shows success and is a skip.
  • dev is merged in at 63ba2a6f7f (11 commits; none touches a manifest, the lock file, the toolchain file or the profiles), and this PR's build on that head is green: guardrails, macOS, Windows x64 and arm64, and Linux x64 (Linux arm64 is a skip, as above). The walk and the titlebar runs below ran on f8878eddda, and the Linux lab run on this PR's build from before that merge.
  • Starts of that head's Windows x64 build: three starts (the plugins, a session's timeline, the launcher) end with exit code 0 and no crash dump; the first frame holds 353 elements, 17 plugins load, a session's timeline draws 207 message elements and a prompt is accepted. Two tabs and the selection are the same after a close by the close button and a restart, and the window has its icon. The full set of twelve checks was not run on this build.
  • Linux x64 in the headless lab under mutter: see "What a person can see change".
  • The walk on Windows x64 against dev at the base (chore(perf): dev 984f922544 as it is, the before side of the Rune 5342f14d pin (never merge) #1256), all fourteen batches (171 scripted passes a side, one picture a pass, compared pixel by pixel with a step of 1 allowed). 168 passes exit 0 on both builds and give a picture. Three passes are ended by their own script on both builds with the same message (the element they aim at is scrolled out of view) and give no picture on either. 106 of the 168 pictures differ, each by the outlines named above (rune#2187): 105 hold a Markdown table or a raised button in Settings, and seven a tooltip whose outline changed the same way (one of them the tooltip alone). Three also differ by a tab label's brightness (297 pixels), which varies from run to run on one build and was seen in the previous pin's walk too. The other 62 pictures are the same, among them eight light-theme pictures. Nothing else differs in them. One scripted drag of the sidebar's edge is compared with a rest picture taken after the drag, so the picture check cannot say whether it acts; the element trees show the edge moved by the drag's 80 points on both builds. One batch's run on this build was cut by the test machine's time limit and run again whole.
  • Windows: the titlebar on a real window, by posted pointer messages, on this build and on dev at the base (chore(perf): dev 984f922544 as it is, the before side of the Rune 5342f14d pin (never merge) #1256): six windows, three a build, each from a fresh start. Both builds behave the same:
    • A posted client click on the titlebar's Search sessions button reaches the app's handler: the switcher opens.
    • A double click on the bar's empty part maximizes the window (2510 x 1462), and the same again restores it to its first rectangle (1942 x 1211 at 320,120). It is posted as a press and a double-click message, not as two presses paired by the system.
    • The Minimize button, pressed 1 ms (base) and 9 ms (this build) after the window read as maximized, minimizes it (within 2 ms and 6 ms).
    • The frame's hit test along the titlebar (427 points across, at 22 points down; and at 40 points down in one start a build) answers the same on both builds.
    • All six windows end by themselves on a close message with exit code 0, read whole.
    • A second run, eight windows, four a build, each from a fresh start, again the same on both builds:
      • Right after a maximize, the Maximize / Restore button puts the window back to normal and to its first rectangle (pressed 36 ms (base) and 51 ms (this build) after the double click's second press).
      • Right after a maximize, the Close button ends the app by itself with exit code 0, read whole (pressed 53 ms (base) and 19 ms (this build) after that second press).
      • A double click followed at once by the Maximize button (15 ms (base) and 16 ms (this build) later) ends in the normal state: maximized at +46 ms on both, normal again at +63 ms (base) and +48 ms (this build). Read again in a third run, both builds end in the normal state; the short maximized state between (2 ms to 17 ms long) was caught there on this build and not on the base, whose first look came after it.
      • The double click once more, with times: maximized 15 ms (base) and 19 ms (this build) after the second press at the first look; the same again restores the first rectangle (15 ms and 15 ms).
      • Two double clicks 150 ms apart: the window is maximized when the second one begins and ends in the normal state, in its first rectangle; the same on both builds (read in a third run, one window a build).
      • The six windows that were not closed by the button end by themselves on a close message with exit code 0.
    • Not shown on Windows: a posted press cannot start the system's move loop (it reads the real button); real pointer input would act on the desktop of the person at the machine: not tried. In the second run the system's own state call answers on both builds and its move-size flag is never set in 500 ms after the posted press. The frame answers "caption" at those points on both builds, which is what the system needs for a drag.
  • Windows: the pointer's cursor at 101 places of the app, read from a real window on this build (f8878eddda) and on dev at the base (chore(perf): dev 984f922544 as it is, the before side of the Rune 5342f14d pin (never merge) #1256): the same at all 101 (78 arrow, 15 text, 4 column resize, 2 pointer, 2 not-allowed), and no place showed a second cursor on either build. Four edge drags, a tab drag and typing in the prompt lose nothing on either build. A seventh check, the address field keeping its edit through a press on its padding, reads "not kept" on both builds: neither holds fix(browser): the address field shows the I-beam over its whole box while it is edited #1247's change; the head with dev merged in has it and was not run in this pass. The image viewer's own cursor, the one cursor Rune draws itself, is the same picture on both builds: the zoom-in cursor over an image at rest, and the arrow over a zoomed image. Not read: macOS and Linux.

Checks: not in yet

Not covered

  • Linux arm64. A PR run does not build it. The merged tree is first built for arm64 by the release run.
  • macOS and Linux as runs (CI builds macOS and Linux x64).
  • The Apple silicon profile: re-keyed in the PR right behind this one, not trained.

@Hona Hona changed the title fix(deps): pin rune to e16732a5 (92 commits): window buttons on Wayland without server decorations, smaller backdrop blur copies fix(deps): pin rune to 5342f14d (93 commits): window buttons on Wayland without server decorations, smaller backdrop blur copies Nov 25, 2026
@Hona
Hona merged commit affe876 into dev Nov 25, 2026
7 checks passed
@Hona
Hona deleted the rune-pin/e16732a5 branch November 25, 2026 22:15
Hona added a commit that referenced this pull request Nov 25, 2026
Hona added a commit that referenced this pull request Nov 25, 2026
Hona added a commit that referenced this pull request Nov 25, 2026
Hona added a commit that referenced this pull request Nov 25, 2026
…e Rune pin, #1257) (#1278)

Three new official commits since 028cd6ce91, none the desktop's, all skipped (73c3b1da2f, ac1bab2ffc, c85b83eb08). UP-212 (the elevation shadows' layers in the design's order) is in dev by the Rune pin 5342f14d (#1257), which holds rune#2187: the row has what the pin's picture walk showed and what was not compared. UP-242's row says it is ported in a draft, #1275, not run.
Hona added a commit that referenced this pull request Nov 25, 2026
…'s own frame (#1183)

On GNOME under Wayland the window had a second bar above OpenCode's own tab row. With Rune's own frame (anomalyco/rune#2244, in the pin since #1257) the window's buttons sit in the titlebar row instead, as on Windows: one 44 pt row at every layout, 1 pt above the panels.

- shell/view/chrome.rs: the caption row is Windows', or Linux' where `Cx::chrome_insets` has a height (a Wayland compositor that draws no frame).
- shell/view/titlebar.rs: the row's leading padding follows the caption row, not the platform.

Under X11 and compositors that draw the frame, Linux is as before. OpenCode Desktop keeps the system's frame on Linux, so it has the two bars there; one row is ours.

Verified on headless mutter; not shown on a real GNOME desktop (CI run 45712819442 on 5d7b4cb, Linux arm64 skipped).

Refs #1146

The row layout is the one zce's proof of concept showed.
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