app: cherry-pick rune's pause and sound fixes onto the checkout

Rune comes from app/vendor/rune now, a checkout of 63ad0209 on branch
ported, carrying the four commits of upstream issues 1320 (a pause while
a clip is layered holds the layer's picture and time) and 1325 (a video's
sound is read ahead of the clock and leads it). Both were written against
eb9f1104 and ported across the refactors since. The faults are the first
two and the third in docs/rune-upstream.md; the app's workarounds in
review.rs stay until the fixes arrive upstream.
This commit is contained in:
vhaudiquet committed 2026-11-22 22:16:30 +01:00
1 parent 80fef698ce
commit 5bf262b82b
3795 files changed
+663463 -28

No files matched your search

@@ -0,0 +1,10 @@
- **A box centred in a painted parent stays centred on the device grid.** Rounding each edge on
its own put a compact `Switch`'s knob 2 px from the top of its track and 3 px from the bottom
at 1.25× (and the same for every `ControlSize` at some fractional scale): its 2 pt inset is
2.5 px. Pixel snapping now gives a box whose resting edges are centred in its parent's equal
whole-pixel gaps to the parent's snapped edges, and lets its size round by up to a pixel to
make room: the Small knob draws 19 px in a 25 px track, 3 px from each edge. Only a parent
that paints something (a fill, border, gradient, or hover or press colour) counts, so a box
centred in a plain row keeps its own rounding. It is decided at rest, so a box gliding into
or out of a centred spot, or one whose parent grows or shrinks around it, eases between the
two roundings with no jump.
@@ -0,0 +1 @@
- **Wayland overlays set their cursor.** A layer-shell overlay never set one, so the pointer kept whatever cursor it arrived with, such as a terminal's I-beam over a card. It now shows the runtime's cursor through cursor-shape-v1, as a window does, and the arrow off its hit areas.
@@ -0,0 +1,6 @@
- **A finger can tap a Wayland layer-shell overlay.** The overlay bound `wl_pointer` and `wl_keyboard`
but never `wl_touch`, so cards and buttons drawn on a layer surface ignored a touchscreen even
though the compositor offered touch. A touch on the surface now acts as the primary button: down
presses where the finger landed, motion follows it, and up releases and clears hover, so a tap
clicks and a drag off a button doesn't. A touch the compositor cancels (a system gesture) leaves
before it releases, so it never counts as a click. One finger at a time; extra fingers are ignored.
@@ -0,0 +1,11 @@
- **An opt-in native Metal backend on macOS.** Build with the `metal-backend` feature and launch
with `RUNE_GPU_BACKEND=metal`, and Rune draws through its own Metal backend, plugged in under
wgpu's API through wgpu's `custom` backend. wgpu stays the default everywhere: without the
variable, or without the feature, nothing changes. It covers what Rune itself draws, in windows,
overlays and headless renders, with the same pixels as wgpu: render pipelines from WGSL, buffers,
the common 8-, 10-, 16- and 32-bit colour formats, samplers, copies and presentation. It doesn't
cover yet: `NativeSurface` video (it needs wgpu's backend and says so once on stderr), compute,
query sets and timestamps, render bundles, indirect and mesh draws, multisampling, depth and
stencil, more than four colour targets, ray tracing, shaders other than WGSL, and iOS. A
compositor that needs those stays on wgpu; reaching one on Metal panics with its name rather than
drawing wrong.
@@ -0,0 +1,7 @@
- **A Metal frame is one command buffer, submitted and presented where it was drawn.** On
`RUNE_GPU_BACKEND=metal`, overlays submit and present on their own thread instead of handing
the frame to a present thread, which only paid off for wgpu's costlier submit. A
`Queue::write_buffer` to a buffer that only submitted work still reads takes a spare storage
instead of a staged copy, so a compositor writing a uniform each frame adds no command buffer.
`examples/window_scroll_cost.rs` scrolls a real window and prints its CPU, instructions and
Metal calls per frame; `scripts/motion-audit` records a sticky-header scroll.
@@ -0,0 +1,9 @@
- **Uploads write in place on Metal, and only the instances that changed.** On
`RUNE_GPU_BACKEND=metal`, buffer writes through `Staging` and `Queue::write_buffer` go straight
into the buffer's shared memory; while the GPU may still read the old bytes, a spare brought up
to date takes the buffer's place, so a frame records no copy and allocates no buffer.
`rune_staging::set_direct` registers such a writer, and `Stats::direct` counts its writes. On
every backend, `Renderer::prepare` writes each span of instances that changed instead of
everything from the first to the last, so a frame where a few far-apart instances move uploads
only those. `examples/upload_bench.rs` also prints the instructions a frame ran (`kinstr`), which
a busy machine leaves unchanged.
@@ -0,0 +1,4 @@
- **App installs keep the bundle present.** `scripts/mac-app` shares a per-target
lock with HiveMind, stages each install separately, and atomically exchanges
bundles. A failed launch or missing Rune ready receipt restores the previous
bundle; interrupted installs retain both complete bundles for recovery.
@@ -0,0 +1 @@
- Growth stacks: when a commit changes the gap above a row's contents and the row's height with it (a row that stops sitting close to the one above it), the contents now slide as the row's growth opens instead of on their own spring. In a list pinned to its end, where the row moves by what it grows, contents whose place doesn't change hold still on every frame, instead of sinking about half a point and coming back. A `Tx::launch` flight that has as good as landed (within a quarter of a device pixel of its place, held up only by its springs' settle tails) and that a commit would re-aim now lands and rides its row, instead of setting off on a new path that lags the scroll under it and sinks a few points.
@@ -0,0 +1 @@
- The motion audit no longer reports a `dog-leg` for an element whose own move is straight against its moving parent, as a chevron that slides along its row while the list scrolls: its path bends on screen only by the parent's motion. An L-shaped move of its own, on a moving parent or a still one, is still reported.
@@ -0,0 +1 @@
- **Effect slots carry their tag and a payload to the compositor.** `EffectSite::mark` is the slot's `El::effect` tag, so a hook no longer needs `Runtime::marks` (or `track_marks`), and `El::effect_data([f32; 4])` sets four floats the hook reads as `EffectSite::data`, bit for bit. Both ride in the slot's record (`border[0..2]` and `uv`), so a removed element keeps the payload it was last built with through its exit fade while its replacement enters beside it, with no bookkeeping in the app. `compose::Compositor` documents the pattern: draw through `Renderer::draw_with`, keep resources per mark, drop a mark's once a frame passes without it. The slot's rect and `scale` follow `El::scale`, `El::offset` and a transition's scale and offset; under `El::rotate` the slot stays upright inside a turned layer.
@@ -0,0 +1,10 @@
- **`El::enter_delay` holds a whole entrance.** A new element waits the given seconds at its
transition's insertion effect, then offset, scale, blur, opacity and reveal play together on one
progress, so a staggered list (`.enter_delay(Stagger::new(0.05).delay(i, n))`; `Stagger` and
`StaggerFrom` are now re-exported) no longer shows rows sliding before they fade. It takes its
place in layout at once, runs on the element's and the window's time scale, and keeps its
delay under Reduce Motion, where the entrance is the short fade. The first frame, instant and
settle commits, hidden windows and rows out of sight ignore it; removed while it waits, a row
that fades in goes at once. A window that only waits for a delayed start, from `enter_delay` or
a delayed `Anim`, draws nothing and wakes once when it starts, and the store no longer samples
such tracks every frame.
@@ -0,0 +1,8 @@
- **`El::fold_glide(spring)`: a growth-stack row that folds like a disclosure.** Its height
changes glide on its own spring in place of the stack's, for the spring's own time however far
they go (no `WHOLE_REACH` stretch, no `Tx::motion` floor), and keep their velocity when
reversed mid-glide. Only what shows of the row moves: shutting, the part below the window goes
at once; opening, the spring carries the row to the window's edge and the rest lands there, so
a 2,000 pt group shuts as fast as a 200 pt one. Its feather rides the spring and ends with it.
Implies `El::arrives_whole`. The growth-stack builders (`growth`, `streaming`,
`arrives_whole`) moved from `el.rs` to `el/growth.rs`.
@@ -0,0 +1 @@
- **`Tx::set_font_families(sans, mono)` switches the fonts behind `Family::Sans` and `Family::Mono` while the app runs**, for a UI or code font picker. Every window and overlay follows on its next frame, and one opened later starts in the new families. Each drops the layouts and glyph runs shaped in the old families, re-runs memoized subtrees and re-measures every text, then draws one frame. `rune::text::measure` and `ink` follow too, and so do rune-kit's table column widths and rune-mermaid's diagram layouts. A cache of measured sizes outside Rune should key on the new `rune::text::font_epoch()`. A missing family falls back as it does at launch, and asking for the families already in place does nothing. `Runtime::set_font_families` and `Runtime::font_families` do the same outside a handler. A 50 KB Markdown note re-shapes in about 34 ms. Apps change nothing.
@@ -0,0 +1 @@
- **`App::gpu_backend(GpuBackend::Metal)` turns on the native Metal backend from code.** An app launched from Finder can't set `RUNE_GPU_BACKEND`, so the choice now lives on the app, with Rune's `metal-backend` feature. `RUNE_GPU_BACKEND=wgpu` or `=metal` still overrides it without a rebuild. It applies process-wide from the call on, and a `prewarm_gpu` already running on the other backend starts over on the chosen one, so calling `prewarm_gpu` first in `main` keeps working. Without the feature it says so once and draws with wgpu; off macOS it does nothing.
@@ -0,0 +1,4 @@
- **`El::hover_alone`: a hover target that keeps the row around it unlit.** While the pointer is
on an element marked `hover_alone`, the elements it sits inside show no hover overlay and
their `group_*` styles rest, as if the pointer had left them; back on the row they light
again. For a face or button inside a hoverable row. Paint only, with no commit.
@@ -0,0 +1,7 @@
- **Commits under `El::hover_motion_within` no longer copy every node's visuals.** Each node
inherited the pair by writing it into its own visuals, which gave every node below such a
root (the docs suggest setting it on the root) its own copy of the rarely-set visual fields
on every commit, and sent apply down its shadow and gradient path for all of them. The pair
now rides beside the visuals. A 2,300-element card's commit drops from 1.9 to 1.6 ms
headless, and a long board card's committing frames from about 11 to 9 ms. Removed nodes
that drew nothing are also matched against the last build in step instead of through two hash maps.
@@ -0,0 +1 @@
- Debug builds warn once on stderr about three more slow patterns: a `poll` that returns true for 30 frames in a row while nothing on screen changes, a window that draws 120 frames within 2 s with no input, motion or visible change (naming what woke it, such as a `wake_after` loop), and a launch whose `main` setup, `init` and first view take over 100 ms before the first frame (naming the slowest part and pointing to `on_ready`). `RUNE_PERF_WARN=0` silences them; release builds are unchanged.
@@ -0,0 +1 @@
- **Images decode on up to four threads.** An `ImageCache` runs one decoder per core, up to four, instead of one, so a small image queued behind a large one no longer waits for it, and a view opening on several images decodes them side by side. Completion order between images is no longer the order they were queued.
@@ -0,0 +1 @@
- **`ImageCache::url` loads an image by URL; on web the browser fetches and decodes it.** Decoding uses `createImageBitmap` off the main thread, so WebP and AVIF work on web, and the pixels land through the same mip path as `ImageCache::rgba`, with the cache's waker drawing the frame. On web `ImageCache::file` now fetches its path relative to the page instead of failing. Native `url` takes a path or `file:` URL and refuses network URLs (Rune has no HTTP client); native `file` is unchanged.
@@ -0,0 +1 @@
- **`rune::embed::LayerHost` and `target_os = "ios"` builds.** `LayerHost::from_core_animation_layer` mounts a `Runtime` and Metal `Renderer` (with optional `LayerHost::with_compositor` effect-slot passes) onto an existing `CAMetalLayer` (for UIKit, SwiftUI and AppKit views that own their own window and display link), sharing one `Gpu` across hosts with `embed::prewarm()`. `rune` now builds cleanly for `aarch64-apple-ios` and `aarch64-apple-ios-sim` (skipping `arboard` on iOS/Android and walking `/System/Library/Fonts` for Apple symbol, SF Mono, emoji and CJK fallbacks).
@@ -0,0 +1 @@
- **`rune-kit`, `rune-mermaid` and `rune-theme-opencode` no longer turn on Rune's default features.** They depend on `rune` with `default-features = false`, since none of them uses `dbus`, `embedded-fonts`, `ogg-audio` or `svg`. Before, Cargo's feature unification turned all four back on for any app that used one of these crates, so an app that set `default-features = false` on `rune` to leave out symphonia, opuscule, resvg or zbus still built them. An app that depends on `rune` with its defaults is unchanged; an app that reached Rune only through these crates and relied on a default feature now adds `rune` with that feature itself.
@@ -0,0 +1 @@
- A `Tx::launch` flight whose ancestor springs to a new place in a later commit (a panel pinned to the window's bottom that grows as a row is added) now lands and rides it if it has as good as landed, or heads for its new place from where it's drawn, instead of jumping to where the ancestor will end up (a 33 pt one-frame jump for a row at rest in a growing panel).
@@ -0,0 +1,4 @@
- **Linux finds fallback fonts through fontconfig too, and ⎋ draws on stock Ubuntu.** Symbol,
emoji, CJK and script fallbacks are also looked up among the files `fc-list` names, so fonts
outside the XDG font directories (NixOS's store paths) are found. DejaVu Sans Mono follows
DejaVu Sans in the symbol fallbacks, since DejaVu Sans has no ⎋ (U+238B).
@@ -0,0 +1 @@
- **`rune::text::with_families` scopes `measure` to one thread.** Tests that switch font families (`Tx::set_font_families`) shared one process-wide set, so they had to run one at a time. `let _g = rune::text::with_families(sans, mono);` makes `measure`, `advance`, `ink` and `font_epoch` on this thread use those families until the guard drops; guards nest, and a headless window's switch under a guard moves only that thread. Real apps are unchanged: one switch still moves every thread.
@@ -0,0 +1 @@
- **`memo(id, ..)` warns in debug builds when its root already had a different key.** The memo still keys its root `id`, as before, but a closure returning `col().key("foo")` inside `memo("bar", ..)` now prints one stderr warning per call site saying `"foo"` was replaced, instead of silently breaking `find("foo")`. `RUNE_PERF_WARN=0` silences it; release builds are unchanged.
@@ -0,0 +1 @@
- **Mermaid edge labels follow hover.** On flowcharts, state and class diagrams, a node's hover now lights its edges' labels too (text and backing, in the hover colour), and pointing at an edge (within 8 pt of its line) or at its label lights that edge and its label. Nodes still win where they overlap; nothing in the API changed (t1058).
@@ -0,0 +1 @@
- **Mermaid draws ER diagrams, gantt charts and pie charts.** `erDiagram` entities are attribute tables (type, name, keys, comment) joined in crow's-foot notation, symbolic or worded, with labels. `gantt` reads `dateFormat`, `axisFormat`, `tickInterval`, sections, `done`/`active`/`crit`/`milestone`/`vert` tasks, durations, `after`/`until` links, `excludes` and `inclusiveEndDates`, on a calendar-aligned time axis. `pie` draws slices with percentages and a legend, with values under `showData`. Charts colour their series from a palette that follows the diagram's light or dark surface. These three no longer fall back to source (t1058).
@@ -0,0 +1 @@
- **Mermaid diagrams draw what they can read instead of falling back to source.** A statement that doesn't parse is skipped and the rest draws; a shape opener without its closer (`B[/items split view]`) is a plain rectangle with the text as written; subgraphs, composite states, frames and class bodies left open close at the end; unknown `@{ shape: … }` names are rectangles. Only an unknown diagram type, a source where nothing reads, or one past the size bounds (400 items, nesting 8 deep, now also for sequence frames) still falls back. Also adds `classDiagram`, sequence `box` groups and `rect` bands, `@{ shape, label }` nodes, edges to subgraph ids, `linkStyle` and diagram titles (front-matter `title:` or a `title` line), on one shared layered renderer for flowchart, state and class diagrams (t1058).
@@ -0,0 +1 @@
- **Mermaid draws mindmaps, timelines, user journeys, git graphs and quadrant charts.** `mindmap` nests by indentation and splits its branches to either side of the root, each in its own colour, with the square, rounded, circle, bang, cloud and hexagon shapes. `timeline` draws periods and their events by section, running top to bottom when they don't fit across. `journey` draws tasks under their sections with a face for each score and a legend of actors. `gitGraph` draws a lane per branch with merges, cherry-picks, tags and the reverse and highlight commit types, left to right or (`TB:`/`BT:`) down and up. `quadrantChart` draws the four named quadrants, axis ends and styled points. These no longer fall back to source (t1058).
@@ -0,0 +1 @@
- **rune-kit Markdown: a Mermaid chart that can't be drawn shows only its code block.** The "Diagram not supported" caption under it is gone, along with its `hint` element.
@@ -0,0 +1 @@
- **Mermaid flowcharts draw every node shape, and sequence and state diagrams fill their gaps.** Flowcharts add `(((double circle)))`, every v11 `@{ shape: … }` name and alias (documents, stacked shapes, cylinders, braces, markers, bang, cloud and the rest), and edge ids (`A e1@--> B`); `[\lean left\]` and `[\inverted trapezoid/]` now draw as their own shapes instead of copying `[/text/]` and `[/text\]`. Sequence diagrams add `create` and `destroy`, `autonumber` with a start, step or `off`, and v11 participant types (boundary, control, entity, database, collections, queue). State diagrams draw notes, split composites into `--` regions, and treat a state named before its `state X {` as that composite (t1058).
@@ -0,0 +1 @@
- **Mermaid draws XY charts, sankey, block, requirement and C4 diagrams.** `xychart-beta` draws bar and line series over category or numeric axes, upright or `horizontal`. `sankey-beta` reads CSV rows and draws columns of nodes joined by bands as thick as their flow. `block-beta` lays blocks out in `columns` with spans, `space`, nested groups, block arrows and edges. `requirementDiagram` draws requirements and elements with their fields, joined by the seven relationship kinds. `C4Context`, `C4Container`, `C4Component`, `C4Dynamic` and `C4Deployment` draw people, systems, containers and components (stores as cylinders, queues on their side, external ones in grey) in nested boundaries, with relationships and their technology. These no longer fall back to source (t1058).
@@ -0,0 +1 @@
- **rune-fx and rune-light run on the native Metal backend.** It gains compute passes and timestamps at pass boundaries (`TIMESTAMP_QUERY`), as wgpu's Metal backend has them, and new textures read as zero as wgpu promises (a fill's backdrop read garbage before). Simulated fire matches wgpu's frame for frame. A frame of 16 rune-fx layers with 4 backdrop blurs commits 1 command buffer instead of wgpu's 65 and takes 55% fewer instructions to record and submit (1.65 million against 3.69); rune-light with glass commits 1 instead of 31 or 47, with 53–55% fewer. `Device::poll` on Metal no longer reports an empty queue while a completion callback is still waiting, which could stall video timing.
@@ -0,0 +1 @@
- **The native Metal backend sets up as fast as wgpu.** Its adapter lists the Mac's GPUs with `MTLCopyAllDevices`, as wgpu-hal does, instead of `MTLCreateSystemDefaultDevice`, which connects to the window server to find the main display's GPU. A headless run's GPU setup (adapter, device, renderer and offscreen target) takes 7.5 ms instead of 16.1 (wgpu: 7.6), and a launch's `prewarm_gpu` thread finishes about 8 ms sooner. On a Mac with two GPUs the backend now picks the integrated one unless asked for `HighPerformance`, as wgpu does, and `enumerate_adapters` lists every GPU.
@@ -0,0 +1 @@
- **The native Metal backend loads a precompiled uber shader.** With `metal-backend` on and the backend picked, `Renderer::new` loads `uber_native.metallib` (the MSL that backend emits, compiled ahead) instead of translating WGSL and compiling Metal source. The first renderer takes 0.9 ms and 7.1 million instructions instead of 4.0 ms and 40 million on a warm shader cache, 90 ms instead of 222 ms on a cold one (the first launch after an install or update), and each later renderer 0.2 ms instead of 2.6 ms. The WGSL path stays the fallback, and `RUNE_DISABLE_METALLIB=1` still selects it. Shader edits now need `--features metal-backend` on the freshness test, and `scripts/precompile-metal-shaders.sh` rewrites both libraries.
@@ -0,0 +1 @@
- **Video plays on the native Metal backend.** `NativeSurface` frames from CoreVideo (AVPlayer, VideoToolbox, IOSurfaces) import without a copy through a `CVMetalTextureCache` made on the backend's own device, where they were inert before. Each plane's CoreVideo texture stays alive while any bind group or command buffer using it is, as on wgpu. A 1080p NV12 frame with GPU timing on both backends takes about 1.05 million instructions to import, draw and submit (2.15 million on wgpu), and 1.95 million through its timing readback (4.3 million on wgpu).
@@ -0,0 +1 @@
- **Delayed hover opens in a window that isn't key.** `on_hover_change` with `hover_delays` (tooltips, hover cards) no longer stays shut while the window is unfocused: blur still ends a shown hover and cancels a wait, and the pointer's next move over the window starts the wait again, as undelayed hover and hover styles already did. Clicks are unchanged; the first click on a background window still focuses it and acts. A window or overlay that ignores the mouse (`click_through`, `OverlayInput::None`) hears no hover; `OverlayInput::Regions` is the opt-in for an overlay that passes clicks through but still hovers (t1136).
@@ -0,0 +1 @@
- A page of rows prepended while a virtual list sits at its very top (its top padding showing) no longer pushes the reader's rows down as the new rows measure: the list anchors to the first visible row with a measured height, not a row still at its estimate.
@@ -0,0 +1 @@
- **Hidden prewarmed overlays no longer blank Mission Control.** On macOS, `OverlayOptions::exclude_from_capture` (and `MacWindowOptions::exclude_from_capture` on a nonactivating panel) now applies only while the overlay is shown. A prewarmed panel stays ordered in at alpha zero on every Space while hidden, and its `sharingType` none blanked every Space's thumbnail. The panel now turns `sharingType` none before a show's alpha starts rising and back to read-only once a hide's fade-out finishes; a show during that fade keeps it excluded. `OverlayHandle::set_exclude_from_capture` while hidden records the request for the next show, and `capture_exclusion()` still reports `Requested`. Apps that toggled exclusion around every show and hide can drop that. Windows already hides overlays with `SW_HIDE`, so nothing changes there.
@@ -0,0 +1 @@
- **Apps can build their own popovers from the kit's pieces.** New `rune_kit::popover` has `anchored` (mount a surface next to a keyed trigger, flipping and fitting to the window), `raised` (the popover surface style), `fit_scroll` (a long list that scrolls inside a fitted surface) and `anchor_rect` (the pure geometry: where a surface of a given size goes beside a trigger rect in a window, flipped and clamped). `rune::anchor_rect` is the same geometry for an `El::anchored` side and align. Apps no longer need local copies of the kit's private helpers. (t886)
@@ -0,0 +1,6 @@
- **`on_ready` runs for a window launched out of sight.** A window launched covered, occluded,
on another Space or hidden by the system (`open -g`) could go without a drawn first frame until
it was uncovered, so `App::on_ready`, and the live work an app starts there, never ran. It now
runs at the first frame skipped for being off screen, or a second after the window opens when
no frame comes at all. A window on screen still runs it after its first frame, and
`WindowHandle::is_ready` still waits for a drawn one.
@@ -0,0 +1,7 @@
- **A launcher can wait for readiness.** With `RUNE_READY_DIR` set, the process writes
`$RUNE_READY_DIR/<bundle id>.<pid>` right after its first `on_ready` returns (the main bundle's
identifier on macOS, else the executable's name), as one line of JSON:
`{"pid":123,"bundle_id":"com.example.app","ready_ms":412,"rune":"0.1.0"}`, `ready_ms` counted
from the process's start. It makes the directory 0700 if missing, writes through a renamed
temporary file, and removes the file when the process exits normally; one left by a killed
process names a PID that isn't running. Without the variable nothing is written.
@@ -0,0 +1,11 @@
- **Programmatic scrolls pick their spring, and an app's own glide holds hover.**
`Tx::scroll_to_with(key, x, y, spring)` glides like `Tx::scroll_to` on the given spring; a
request sent mid-glide keeps its speed, as `scroll_to` already did, so ↑/↓ key repeat keeping a
selection in view scrolls as one motion on a quicker spring than `GLIDE`. `scroll_to` itself is
unchanged. A viewport an app moves with `Tx::scroll_to_instant` (or `scroll_to_x`, `scroll_to_y`,
`scroll_key_to`) now counts as moving layout for that frame and the next, so hover under a
still pointer holds while an app steps its own glide frame by frame, as it does during a glide,
and resolves once at the pointer after the last step. A single instant jump under a still pointer now
re-hovers a frame later than before. A held hover whose row the scroll carried out of view lets go at once
instead of fading where nothing shows. The new `scroll_keys` example and its
`scripts/motion-audit` scenario hold ↓ at 30 Hz key repeat.
@@ -0,0 +1,5 @@
- **`Cx::selection_rects` finds selected text inside a reused `memo`.** A commit that reused
the memo holding the selection moved its nodes out of the last build before the view's
layout reads settled, so the boxes came back empty and a menu placed over the selection
never showed. Since commits under `El::hover_motion_within` started reusing memos, this hit
every app that sets it on its root. The selection is now read by path before the measure.
@@ -0,0 +1 @@
- **Scroll commit warnings, `RUNE_COMMIT_BUDGET_MS` and `El::scroll_anchor`.** Debug builds warn once per source when something commits the view on most frames of a scroll, which a scroll itself never needs, and name it: `poll`, a handler with its element and where it was set (`on_hover`, `on_hover_change`, `on_pointer_move`, `on_layout`, `on_drawn_layout` and `on_visible_rows` now record their call site), or the `Cx::layout` / `Cx::window_layout` read that moved. They also warn when an app steps a viewport with an instant scroll on 8 committing frames in a row, and when one hover handler commits for 8 different elements. `RUNE_COMMIT_BUDGET_MS=N` prints a line for each commit over `N` ms in any build, with view, layout, text and apply times and what made the frame commit, at most once a second. `El::scroll_anchor()` keeps the row at the top of a scroll viewport where it is when a commit changes the content above it, like CSS `overflow-anchor`. rune-kit's table and tree viewports and header cells no longer commit on every frame of an outer page's scroll, and a diff view's code lines no longer commit for each line the pointer crosses. `scripts/app-audit` checks for `window_layout`, layout and hover handlers without `live_only`, and instant scrolls stepped by `wake_after`. The README and the docs site's Fast apps page have a "Smooth scrolling" section.
@@ -0,0 +1 @@
- **`glyphs::STAR` and `glyphs::STAR_FILLED`.** Two five-point star icons on the 16 pt grid, outline and filled, drawn with the same 1 pt stroke and round joins as the other glyphs. They are not `Glyphs` slots: `icon(&glyphs::STAR, 16.0)`. (t886)
@@ -0,0 +1 @@
- **An `El::on_key_up` on any element hears releases while nothing is focused.** Only a handler on the root (or the open modal's root) fired, so one on a stage or other nested element never did. With no focus, the release is now offered to every element with a handler, deepest first and confined to the open modal, until one takes it; a focused element, and the element focused when the key went down, still hear it first.
@@ -0,0 +1,8 @@
- **Layout reads don't follow scrolling.** `Cx::layout`, `layout_with`, `layout_size` and
`memo::layout` now give where layout puts an element with every scroll viewport at its
origin, so a view reading a row inside a scrolling list no longer re-runs every frame of the
scroll; a commit that moves or resizes the element still re-runs it. A view that needs where
the window shows the element now, after scrolling, reads `Cx::window_layout` or
`window_layout_with` (and `memo::window_layout`). `El::on_layout` still reports after scrolling,
and the new `El::on_layout_tx` takes a `Tx`, so a handler that only moves live values says
`Tx::live_only` and a scroll runs no view.
@@ -0,0 +1,7 @@
- **What mounts out of sight enters at once.** An element new under one that drew nothing last
frame and still lies outside the window or its clips (a ticking digit in a row scrolled out of
view, or in a virtual list's overscan) skips its entrance, as its exit already did, so nothing
animates where nobody sees it. A matched element still flies to its match.
- **Colours out of sight land at once.** A node that drew nothing last frame and still lies
outside the window or its clips lands its colour, hover and blur changes instead of fading them
where nobody sees them (a list's selected row scrolled out of view when focus moves away).
@@ -0,0 +1,5 @@
- **A video scrolling across a clip edge no longer commits.** A list holding a video re-ran its
views each time the video scrolled into or out of sight, because only drawn videos counted
toward the state views read. Every video counts now, drawn or not, so a pure scroll stays
live-only. Frames are still pulled only while the video draws, and one scrolling back into
sight shows its current frame.
@@ -0,0 +1 @@
- `scripts/web-build.sh` stages each build in `$out/.next` and renames the files into place, so a page that loads mid-build no longer mixes `app.js` and `app_bg.wasm` from different builds (a `LinkError`); `--dev` skips the gzip size report.
@@ -0,0 +1 @@
- **`scripts/web-build.sh`: `--dev`, `--watch` and `--no-html`, and it keeps your own page.** `--dev` builds the debug profile without debug info, with dependencies at opt-level 1, in a `web-dev` target folder, skipping `--opt` (about 2 s for a one-line change to `web-hello`, against 12 s for release). `--watch` rebuilds when a workspace member's files change, and the generated page reloads itself through a `reload.js` that polls `.stamp`. `index.html` is now written only if it is missing or still carries the generated-by comment; `--no-html` never writes it. The script builds with the toolchain's own cargo (`rustup which cargo`, or `CARGO`) instead of a `cargo` on `PATH`, and says so if the wasm is missing afterwards.
@@ -0,0 +1 @@
- **`App::full_viewport` covers the browser viewport from a canvas the page passed in.** `App::canvas_id` still mounts inline at the parent's width, as before; adding `.full_viewport()` gives that canvas what Rune's own canvas gets: fixed to the visual viewport, body scrolling off, `Cx::safe_area` insets and `document.title` from the window title. For a single-page app's full-screen route. `fit_content_height` wins over it. The body lock now sets its three properties instead of replacing the body's inline style.
@@ -0,0 +1 @@
- **Web: `Tx::open_url_same_tab`, `App::same_tab_router` and unmount on `AppHandle::quit`.** `open_url_same_tab` replaces the page instead of opening a tab, taking page-relative links on web; a link on the page's origin goes to the app's router first (a single-page app pushes history and returns true), else `location.assign` loads it. Native opens it as `open_url` does. On web, `AppHandle::quit` now unmounts cleanly: the GPU device is destroyed, listeners come off, the body style, title and a passed-in canvas's style and attributes are restored, and an app started while another quits mounts once it has gone. `Runtime::take_url_requests` lists same-tab links with the rest.
@@ -0,0 +1 @@
- **Overlays show on GNOME Wayland through XWayland.** When the Wayland compositor has no layer-shell (Mutter), an overlay that takes no input (no pointer regions, no keys) now opens as an override-redirect ARGB X11 window on XWayland with an empty input shape, at its edge of the primary display (or the pointer's), instead of reporting `Availability::Unavailable`. Its scale comes from `Xft.dpi`. The rest of the app stays on Wayland; without `DISPLAY` nothing changes.
@@ -0,0 +1 @@
- **`El::drawn_rect_into(&Live<[f32; 4]>)` writes where each frame draws an element into a live value, with no handler and no commit.** It tracks every frame the element moves, through a scroll, a glide (`Tx::scroll_to`) and springs, where `on_drawn_layout` reports only once motion rests and commits unless its handler says `Tx::live_only`. An element bound to the value with `live_rect` follows a frame behind.
@@ -0,0 +1 @@
- **A fold's moving edge feathers shutting as well as opening.** An `El::fold_glide` row used to feather its bottom edge only while it opened; shutting, the edge was a hard cut. Now the edge softens both ways. The feather grows over the first ~50 ms of motion, holds steady through a reversal, and thins to nothing as the glide lands, so nothing is faded at rest. The top edge isn't feathered, so a header above the fold stays sharp. The new `El::fold_feather(pt)` sets one fold's feather depth, overriding its stack's `StreamEdge::mask_max`.
@@ -0,0 +1 @@
- **`rune-fx` builds an effect's pipeline the first time a frame draws it.** `FxRenderer::new` and `add_format` no longer build all eight effect families in both blends up front, along with the mask pyramid and backdrop blur passes. Each pipeline for a format and blend is built the first time a layer draws with it, and those one `prepare` needs are built in parallel. On a cold Metal shader cache on macOS, a renderer that adds a layer format and draws one glow reaches its first frame in 71 ms instead of 1.80 s: `new` takes 0.1 ms instead of 919, and `add_format` takes no time instead of 865. Warm, that's 6.2 ms instead of 7.9. Each family, blend or format a later frame draws for the first time costs 20 to 150 ms on a cold cache, once. Pixels are unchanged.
@@ -0,0 +1 @@
- **A virtual list keeps the rows still on screen mounted while a fold glides open over them, and the motion gate stops counting one-shots and toggled lists as loops.** A list windowed by the open fold's full height while it still glided, so a view that ran again mid-glide unmounted the rows under it at full opacity two frames before the fold covered them. The window now also keeps the rows drawn inside the viewport on the last frame, within an overscan of it. In `rune::motion_gate::check`, a phase that rests at 1 (a `.sequence` that played out, such as a one-shot fade) is no longer a loop: it isn't checked for `loop-jump`, and what it does after isn't hidden. A track without a phase loops only when it turns back on its own, not within half a second of an input, so a list toggled again and again no longer hides every finding in it. `loop-jump` also catches a loop back from a blink of up to 0.1 s off its rhythm, and an opacity dip that one input starts and another reverses is no longer a `flicker`.
@@ -0,0 +1 @@
- `ElementInfo::scrolling` (and `MotionElement::SCROLLING`) is now true for content a glide carries (`Tx::scroll_to`, `scroll_to_with`, `scroll_to_bottom`), not only under a wheel, trackpad or its momentum. Motion checks that exempt scrolling content (jerk, jumps) now exempt a glide too.
@@ -0,0 +1 @@
- **The debug `Tx::live_only` check no longer reports a virtual list's overscan after the viewport grows.** A scroll pane that got taller without a commit (a sibling pane hid) keeps its mounted rows, since they still cover the viewport. The check's forced commit used to pick the overscan again for the new height and report the rows it built below the viewport as `added element`, though the handler changed nothing. That commit now keeps each virtual list's mounted rows, as skipping it would have, and compares every one of them, so a live-only handler that changes a row mounted below the viewport is still named. Release builds are unchanged.
@@ -0,0 +1 @@
- **The debug `Tx::live_only` check names what the view built differently.** Its warning used to say only that the view built something else after a live-only handler. It now names the first element that differs and how: its layout rect, fill, border, opacity, radius, text, text colour or style, pills, rings, strikes or highlights, with both values when they're short (a rect, a colour, the first 40 characters of text), or an element added, removed or moved. For example: `rune: on_key called Tx::live_only, but the view built something else after it: text of "#0/heard" went from "1" to "2"`. It warns once per handler, element and property, and `Runtime::live_only_warnings` returns the warnings so a test can assert there are none. The check also no longer blames a live-only handler for state changed in the same frame by an `on_selection_change` handler (a text selection dragged across hover rows) or by a hover change a menu released. Release builds are unchanged.
@@ -0,0 +1 @@
- **A streaming `Markdown` no longer flashes markup at its tail.** With `Markdown::streaming` on, an emphasis, strong, strike or code span that's open draws as already styled and never shows its `**`, `_`, `~~` or `` ` ``: `**Settings ›` draws "Settings ›" in bold until the closer arrives. Markers at the very end (`and **`) wait for the next character, which says whether they open, close or are text. Only an opener at a word's start counts, so `2 * 3`, `snake_case`, `~5` and a URL's underscores stay as written, and a `* ` that becomes a bullet never shows as a star. A trailing `| File` line now draws nothing until it's a table (two cells, or a delimiter row) or the next line shows it isn't, so a table's header no longer lays out as a full-width paragraph and then shrinks. A finished document parses exactly as before.
@@ -0,0 +1 @@
- `rune::text::measure_with(text, spans, style, max_width, RichLayoutOptions)` measures text with layout options, so text drawn with `El::wrap_anywhere` can be measured to the lines it takes; `measure` is `measure_with` with the default options.
@@ -0,0 +1 @@
- Mermaid flowcharts lay out more cleanly. An edge to a subgraph stops on the subgraph's border instead of running inside it to its first node. Edges route around subgraph titles, and where an edge still has to cross a title or another edge's label, the line breaks around the text the way it does around its own label. A subgraph's title sits the same distance above its first row whichever way the chart runs. Rank gaps grow so edges leave a node or subgraph steeply instead of in a squeezed S. An edge label sits on the line only where the line runs straight through it. Node and edge labels wrap into even lines with no lone last word. Cylinders take Mermaid's rim proportions, with only the top rim's front drawn across the body. A left-to-right chart that would shrink below 78% to fit turns top-down, as before; that threshold is now the named `TURN_BELOW`.
@@ -0,0 +1 @@
- **Mermaid lines, outlines and arrowheads no longer brighten where they overlap, and the default diagram look is quieter.** Rune draws each stroke segment as its own capsule, so a translucent line blended twice at every joint: curves got beads, rounded node corners came out brighter than their sides, and a line got brighter under its own arrowhead (in dark, a line of luma 154 reached 207 at joints and heads). `rune-mermaid` now gives every translucent stroke, and every arrowhead in a line's colour, the opaque colour it would show over the fills beneath it (the card, a subgraph tint, a node), so overlaps paint the same colour twice; tints and bands keep their alpha. This applies to every diagram type. The default look changes with it: the card is the page colour with a hairline instead of a lighter slab, nodes are `layer_01` with a 0.2 outline, lines are 0.42 of the text colour, edge and message labels are muted, subgraph outlines are 0.7 of a node outline (they were 0.45 of the text colour, brighter than nodes), subgraph titles are medium weight instead of semibold, and a cylinder's top is a shade off its side so it reads without an outline. `DiagramStyle::neutral` and `MarkdownStyle::from_kit` both change; goldens with diagrams move in colour only. Keep `diagram_surface`'s fill opaque: ink is flattened over it.
@@ -0,0 +1 @@
- **Mermaid diagrams stream in.** A ```` ```mermaid ```` fence still arriving in a `Markdown` is now a diagram drawn from its complete lines, not a code block that turns into one when it closes: with `Markdown::streaming` on, nothing shows until the first lines read, then each new node fades and grows in, each edge or message draws on from its source to its target with its arrowhead landing last, frames fade in, and what's already there glides to its new place. Closing the fence moves nothing. A finished diagram still shows whole the frame it mounts. Each node, edge and frame is now its own element keyed by what it is (a flowchart node by its Mermaid id), and `rune_mermaid::render_streaming` and `rune_mermaid::may_draw` are new. Underneath, `Transition::draw()` and `Shape::drawn(t)` trace a shape's strokes on along their length, each fill fading in as the line reaches it; under Reduce Motion the shape is drawn whole.
@@ -0,0 +1 @@
- **Rune's Metal backend loads every built-in pipeline precompiled, on macOS and iOS.** Backdrop and layer blur, video, transparent windows, springs, `rune-fx` and `rune-light` take their functions from `builtin_native.metallib` (`builtin_native_ios.metallib` and `builtin_native_ios_sim.metallib` on iOS, where the uber shader comes from it too) instead of naga and Metal's MSL compiler. On a cold shader cache on macOS, a first layer blur takes 45 ms instead of 727, `FxRenderer::new` 1.26 s instead of 3.63 and `LightRenderer::new` 127 ms instead of 1.39 s. On the iOS simulator, a cold first frame takes 243 ms instead of 430. Warm, `FxRenderer::new` takes 1.2 ms instead of 32.5 on macOS, because a built-in shader's WGSL is no longer parsed. App shaders, such as `rune-fx` custom fills and `Compositor` WGSL, compile at runtime as before. The library adds about 540 KB to a macOS or iOS binary built with `metal-backend`, which is on by default. After changing a built-in shader or its bind group layout, run `scripts/precompile-metal-shaders.sh` on a Mac. Until then, that pipeline compiles at runtime, and rune-light's `builtin_shaders` test fails under `RUNE_GPU_BACKEND=metal`.
@@ -0,0 +1 @@
- **macOS apps now draw with Rune's native Metal backend by default.** `metal-backend` is one of Rune's default features, and an app that doesn't choose a backend draws with it, `prewarm_gpu()` included, with no restart. To keep wgpu, call `App::gpu_backend(GpuBackend::Wgpu)` (and `rune::prewarm_gpu_on(GpuBackend::Wgpu)` first in `main`), or launch with `RUNE_GPU_BACKEND=wgpu`; an app built with `default-features = false` keeps wgpu unless it adds the feature. `GpuBackend::default()` is still `Wgpu`. Pipelines made with `layout: None` now work on the native backend (it derives the layout from the shaders, as wgpu does), and a compositor that asks for a feature the backend lacks gets a wgpu device unless the app chose Metal. What the backend doesn't implement (depth and stencil, multisampling, indirect draws, render bundles, more than four colour targets, non-WGSL shaders) panics with a message naming the opt-out. wgpu's `custom` feature is now turned on for macOS alone, so Linux, Windows, web and iOS builds are unchanged. iOS keeps wgpu.
@@ -0,0 +1 @@
- **Rune's native Metal backend (`metal-backend`) runs on iOS.** An app embedding an `embed::LayerHost` opts in with `rune::prewarm_gpu_on(GpuBackend::Metal)` before its first host, or `RUNE_GPU_BACKEND=metal`; wgpu stays the default. The surface takes a UIKit view or a `CAMetalLayer`, picks iOS's MSL version, and keeps the drawable timeout (iOS has no occlusion check or display-sync switch). On the iOS simulator the backend's tests pass and a scrolling list renders the same pixels as wgpu's, with about 36% fewer instructions and CPU per frame; launch and first-frame time are unchanged, since iOS still compiles shaders at run time on both backends. A new `embed_cost` example measures it.
@@ -0,0 +1 @@
- **Icons, vector shapes, fills, fitted images and text decorations share one sub-pixel placement rule (`t1193`).** Concentric elements in the same box no longer shift or change area against one another when scaled, anchored to a zoomed target, gliding on a spring, or swapping between `canvas` and `icon`. Icons pad their atlas masks with a 1-texel transparent border and sample filtered from the box's centre and exact scaled side whenever fractional, scaled or turned, while keeping direct whole-pixel texel loads at unscaled rest; point-sized `Shape`s centre in their snapped rect; zoomed `El::anchored` overlays open their own pixel-snap layer so their resting fills snap to whole device pixels; and text glide now runs on both axes (`1/6 px` horizontal and vertical phases on top of each glyph's resting pen, so headings above `33⅓ ppem` glide across as smoothly as body copy, along with pill icons, spans, list markers and carets). Output at unscaled rest is unchanged.
@@ -0,0 +1 @@
- **`rune::prewarm_gpu_on(backend)` starts the GPU prewarm on the chosen backend.** An app on `GpuBackend::Metal` called `prewarm_gpu()` before `App::gpu_backend`, so the prewarm started on wgpu and restarted on Metal. The new function chooses the backend first, then starts, and a later `App::gpu_backend` with the same backend changes nothing. `RUNE_GPU_LOG=1` now names the backend that draws, `wgpu` or `rune backend`.
@@ -0,0 +1 @@
- **A timer frame that draws nothing new no longer starts the display link, and overlays skip it too.** A resting window's timer frame used to start the macOS display link before finding it would draw what was on screen, then stop it again: a link start and stop on every wake. It now builds the frame first when the stopped link would draw at once anyway, and starts the link only when the frame draws. Overlays had no such skip: every `wake_after` presented a full frame, even when `poll` returned false. A resting overlay's timer frame now builds before taking a drawable and presents nothing when its pixels match the last frame. For a 30 Hz `wake_after` that changes nothing on screen, an overlay went from about 19 presents a second and 4.6% CPU to none and 0.7%. Frames that draw (motion, input, a wake that changes something, live resize) are paced as before.
@@ -0,0 +1 @@
- **The motion gate fails a scroll that runs the view.** A new `scroll-commit` finding is reported when an app's `poll`, a handler or a layout read commits on 6 or more of a scroll's frames and at least a quarter of them; a cell that scrolls this way needs a fix or an `Allow` row. Debug builds' scroll-commit warning now names the file and line of a `Cx::layout`, `layout_with`, `layout_size`, `window_layout` or `window_layout_with` read that moved.
@@ -0,0 +1 @@
- The debug "blocked on the main thread" warning no longer counts time spent waiting for a core: Linux subtracts the thread's run-queue wait, and other Unix systems skip it while the load average is at or above the core count, so a busy machine stops reporting callbacks that only wrote a map; the message names the wait when there was one.
@@ -0,0 +1 @@
- **A streamed surface or `pixels_fit` image can stick to a corner, and hold still while it waits for a resized frame.** `El::surface_anchor(Align, Align)` chooses which edges `Fit`'s spare space and `Fill`'s crop are measured from (centred by default, so nothing moves), and `El::surface_unscaled(true)` draws one texel per device pixel instead of scaling to the box. With both, the last frame of a resized panel stays pinned top-left: a bigger box shows a gap on the right and bottom, a smaller one crops those edges, until the frame at the new size arrives. `SurfaceFit` is unchanged.
@@ -0,0 +1 @@
- **Text glides with its box instead of stepping a pixel at a time.** Pixel snapping glides a moving box between device pixels, but its glyphs still rounded their baselines to whole pixels, so a card drifting a few pixels on a slow spring drew its words jumping a whole pixel against its edges. A gliding box's text now lays out from the box's nearest whole pixel and draws the rest of the distance with glyph masks rasterized at quarter-pixel vertical phases, hinted as at rest. In a 2× card drifting 5 px, the ink's offset from the card's edge varied by about 1 px before and 0.25 px now; it was already within 0.15 px across. Each glyph adds at most three masks while it moves. Text at rest, including a glide's last frame, draws byte for byte as before. Icons and list markers still sit on whole pixels.
@@ -0,0 +1 @@
- macOS: a double click on an empty spot in a full-size-content titlebar now takes the titlebar double-click action (zoom, minimise or nothing, per System Settings), as a native titlebar does. AppKit already dragged the window from there, but the double click went nowhere unless the spot was a `.window_drag()` region. Windows using `Chrome::drag_regions` are unchanged.
@@ -0,0 +1 @@
- **Closing a window no longer waits on interaction timing.** With timing on, a window's runtime waited for its last rollup to reach the collector as it closed, freezing the main thread for at least 100 ms. It now queues the rollup and moves on; the event loop waits once, as the app exits. Timing on now costs within 1% of off in `examples/interaction_cost` (wheel 0.160 → 0.069 ms a frame), where it had cost up to 2×: macOS ran the thread that just slept on a slower core for the frames after.
@@ -0,0 +1,7 @@
- **Retained no-second-tree layout store (`rune-taffy`).** `Runtime` now drives Taffy 0.15's
layout solver directly from 216-byte dense `RetainedSlot`s (`LayoutStore`), embedding a 64-byte
`CompactStyle` directly on `El` (shrinking `El` by 488 B across `view` and `MemoCache`), pairing
each slot with a 96-byte `CompactCache` and 32-byte `BoxLayout`, and syncing children through
flat double-buffered arenas without per-container `Vec` allocations. On a 500-row list this cuts
retained layout heap by 80% (5.52 MB to 1.10 MB; 5.51 MB to 35 KB after shrinking to 12 rows),
and on a 1,000-row theme-stack rebuild benchmark drops `commit` p50 by 15% and rebuild p50 by 0.62 ms.
@@ -0,0 +1,2 @@
- **A fold opened again as it shuts from its stuck header no longer jumps.** Reopening an `El::fold_glide` row while its contents rode up under the held header used to glide to the window's edge and then snap: the contents under the header jumped by hundreds of points as the part cut above came back below. Now the contents ride back down on the fold's spring, and what went above comes back above as the glide lands, out of sight, with the viewport's offset taking it up. At the end of a timeline, where the header had started coming down, the fold grows from its bottom instead, the header rising back to the top on the same spring. A lifted fold's contents also stop at its top now, rather than showing over the rows above it for a few frames while the header came down or the fold reopened.
- **A long fold shut from its stuck header at the end of a timeline is one motion.** What showed of it used to ride its bottom edge up for two or three frames, stop dead when the timeline's end held the row below, and leave the header to come down over it alone, so the steps it covered landed out of sight. Now the header gives way from the start, coming down the share of the shut the end can't take, so the bottom edge eases into its rest on the fold's own spring while the header comes down, and the two land together.
@@ -0,0 +1 @@
- **A fold shut from its stuck header slides up under it.** Shutting an `El::fold_glide` row while `Tx::keep_on_screen` held its sticky header at the top of the viewport used to stream everything above the header past on the fold's spring, often hundreds of points a frame, and the row below could jump. Now the part above the header goes at once, out of sight, with the viewport's offset dropping by the same amount, and what still shows rides the fold's bottom edge up under the header, with the row below rising beside it. At the end of a timeline, the header then comes down on the same spring for whatever the end can't hold. Mid-timeline, the fold still glides shut under the header.
@@ -0,0 +1 @@
- **The motion gate reports `stop-start`.** An edge that rests (under 0.5 s) and sets off again the same way three or more times in 2 s, with no input but data arriving (`event…`), moves in kicks where one glide was meant, as a streaming reply's scroll did, and each kick passed `jump` and `jerk` on its own. It is reported once at the outermost element of the rows kicking together; a kick that answers a hand on the app is that hand's. A streaming link's box widening or rewrapping with its next word is no longer a `jump`.
@@ -0,0 +1 @@
- **Slow interactions report themselves, by page and control.** With `RUNE_PERF=1`, or `OTEL_EXPORTER_OTLP_ENDPOINT` on loopback, every input that runs a handler is timed from arrival to present and named by page, control and action (`settings`, `settings/toolbar/save`, `on_press`), with ids and prose normalized away and typed text never sent. One over 16.7 ms (`RUNE_PERF_SLOW_MS`) goes to the local collector at once as a `ui.interaction` trace: queue, handler, view, commit, layout, text, paint, apply, encode and present wait, the commit reasons, and the keyed subtrees it rebuilt. The rest count toward a per-signature `ui.rollup` sent each minute. Off, a frame checks one cached flag; headless runs need `RUNE_PERF=1`. `examples/slow_click` shows one and `examples/interaction_cost` measures the cost.
@@ -0,0 +1 @@
- **A jump is judged on what shows.** The motion gate's `jump`, `offset-jump` and `jerk`, and `scripts/motion-audit/analyze.py`'s `jump`, `sibling-jump` and `step`, now need the element's visible part in the window (its rect cut by its clips) to move, or something it holds that shows to move with it, as a scroll's rows do when its content jumps. An edge that's off-screen on both frames can't jump. `analyze.py` also sizes a `step` by what shows. A fold shut from its stuck header drops its rows above the window in one frame and moves the scroll offset by as much, then glides in from where it showed: its content's top and height step, nothing that shows jumps, and it no longer reports `offset-jump` and `jerk` (`jump` and `step` in `analyze.py`). A row that shows and teleports inside a scrolled list still reports `jump`. The gate's `offset-jump` counts only the rows that move with the content, not every row that shows.
@@ -0,0 +1 @@
- **A Mermaid diagram's hover areas keep their node or edge as it streams.** Each hover area is now keyed by the node or edge it lights, the same key its piece has (`hover:n:A`, `hover:e:A>B.0`, `hover:e:A>B.t` over the edge's label), not by its position in the drawing (`node1`, `edge0.1`). So when a streaming diagram's layout moves under a still pointer, the hovered node or edge stays lit as itself or lets go; it never turns into whichever node or edge took its index (a subgraph arriving around a placeholder node used to shift every later node down one).
@@ -0,0 +1 @@
- **A streaming Mermaid diagram only grows.** `render_streaming` now lays out each build held to the build one line shorter: a node never moves back a rank, keeps its order beside the nodes it was laid out with, stays where it was along its rank unless something new needs the room and then only moves on, and no gap between ranks narrows, so the diagram never gets shorter or narrower mid-stream (a flowchart whose fifth line pulled a node a rank further used to go 119, 90, 119, 156 pt tall). Nodes are held by id, so one turning into a subgraph doesn't shift the rest. New `render_streamed` lays out the finished source exactly as `render_with_hover` does, so the diagram settles there in one glide; Markdown uses it once a fence closes in a reply that is still streaming.
@@ -0,0 +1 @@
- **Motion checks judge an element against the scroll it rides.** `ElementInfo::scrolled` says how far its scroll viewports' offsets carry it this frame (a pinned bottom following growing content included, which isn't flagged `scrolling`; a `Tx::launch` in the air, and what it carries, only the part of the scroll its flight has taken on), and `--trace` writes it per element when it changes (`sc`: `[id, x, y]`). The motion gate's overshoot, jiggle and reversal checks, and those plus stall and dog-leg in `scripts/motion-audit/analyze.py`, add it back instead of skipping scrolling elements. A node gliding inside a list that follows its end is one glide, no longer a reversal or jiggle from the scroll adding to it on screen, and a node that wobbles while its list scrolls is now reported.
@@ -0,0 +1 @@
- **A Page Up, Page Down, Home or End a playground step presses pages the stage.** With no focus inside the stage and the pointer elsewhere, `Play::press` fell back to the first scroll view in the tree, the story list, rather than one on the stage. While a step's key is routed, every page-key fallback now looks only inside the stage, and pages nothing when nothing there overflows; a person's keys page as before.
@@ -0,0 +1 @@
- **A playground step can press a key.** `Play::press(Key::Down)` (or a `KeyEvent`, for modifiers; `Key` now converts into one) sends a real key on the step's frame, through focus, `El::on_key`, `AppSpec::on_key` and the rest of the key path, as if a person pressed it with the stage holding the keyboard: the story list, its filter and the side column don't take it, and keep the keyboard after. The motion gate's `Run::step` records that frame as input, and a motion trace gets a `press …` event, so a scroll the key asks for (`Tx::scroll_key_to`) is no longer reported as an input-less teleport. A story replay standing in for a keypress no longer needs an audit allow.
@@ -0,0 +1 @@
- **`rune-theme-opencode` ships Desktop's provider marks.** `provider_icons::named("anthropic")` returns the `@opencode/ui` mark for 21 providers (OpenAI, Google, xAI, Mistral, GitHub Copilot and others) as a tintable `Icon`, and `FALLBACK` is Desktop's stand-in for any other provider. They are generated by `themes/opencode/tools/provider-icons.py` from the opencode checkout; a mark that needs a transform or a non-square viewBox is skipped. Nothing else changes.
@@ -0,0 +1 @@
- **A scroll that teleports with no input is a jump.** The motion gate and `scripts/motion-audit/analyze.py` skipped every element flagged `scrolling`, and an instant `Tx::scroll_to_instant` is flagged for its frame, so an offset that landed in one frame with no input, bringing rows from just off screen into view, went unreported: the content's visible part stayed put and nothing showed on both frames to be seen moving. A one-frame scroll step is now excused only by an input on that frame or the one before, and the rows it brings into view count as what shows moving with the content, so it reports `jump` (or `offset-jump` when it carries three or more). A wheel, a tap's scroll and a glide stay quiet, as does a fold dropping rows above the window with the offset.
@@ -0,0 +1 @@
- **What a scroll carries is measured in the window.** `ElementInfo::scrolled`, and the `sc` a `--trace` writes, were the scroll viewports' offsets in their own points, while an element's `rect` is in the window after every `El::scale` and `El::rotate` around them. Inside a 1.6× zoom the motion gate and `scripts/motion-audit/analyze.py` took back about 1/1.6 of the scroll, so a row that only rose on screen and only moved down its list read as a dip and climb and reported `reversal`. The offsets are now scaled and turned as the viewport's content draws (a zoom inside the viewport scales about a point the scroll carries, so it doesn't count). A real wobble in a zoomed list is still reported.
@@ -0,0 +1 @@
- **A fading canvas no longer darkens where its strokes meet.** A childless element whose `Shape` draws more than one piece (two or more strokes or fills, or a polyline of two or more segments) used to fade each piece on its own, so where two overlapped, at a crossing or a polyline's joint, the overlap blended twice and showed darker mid-fade (alpha 191 instead of 128 at 50%). While its opacity is between 0 and 1 it now paints through a layer that takes the opacity once. At rest, faded out, or with a single piece, it paints straight to the window as before, with the same pixels.
@@ -0,0 +1 @@
- **Slow frames say where their time went, and whose it was.** With interaction timing on (Apple Silicon Macs), a watchdog thread samples the UI thread's stack while a frame runs past 12 ms (4 ms for a signature that was slow before), so a slow `ui.interaction` names the functions it spent its time in (`rune.hot.0`, `rune.stack`), and a slow frame no input caused (a timer, a poll, an animation) goes as `ui.frame`. Each says whose time it took (`rune.cause`): `cpu`, `blocked`, or `scheduler_wait` when the machine was too busy to run it, which the rollup counts apart (`rune.scheduler_wait`) and never blames on the app. `examples/slow_click` shows a sleeping Save (`blocked`) and a computing Sort (`cpu`, in `sort_settings`).
@@ -0,0 +1 @@
- **A streaming reply climbs steadily at any pace.** A pinned scroll follows an `El::streaming` row's height, and each word or line it gained kicked a fresh glide that slowed to a stop before the next one, so a slow stream (a word every 300 ms) climbed in about three stops and kicks a second. A streaming row now follows its target with one critically damped climb whose stiffness tracks how fast the target has been rising (`growth::pace`), so its speed carries over from word to word: it creeps on between slow words, keeps up with a fast burst under the old speed caps, and lands within half a second once the stream ends. A steady stream trails its text by under a line.
@@ -0,0 +1 @@
- **A link still arriving in a streaming `Markdown` draws as a link.** `[the docs` and `[the docs](https://ex` showed their brackets and half a URL until the `)` arrived. They now parse with their `]()` or `)` (and a half-typed title's quote) added, so the text is link-styled from its first letter and closing it changes nothing. `![alt` shows its alt text, a trailing `!` waits for the next character, and a `[` that turns out not to start a link (`[1] here`, a task's `[x]`) shows as written once the character after its `]` says so.
@@ -0,0 +1 @@
- Removed public items nothing used: `EditState::set_rich` (use `rich()`), `Tx::scroll_center_instant` (use `scroll_center_in_instant` or `scroll_center`), `rune::press_activation_token`, `Runtime::set_fit_content_height` (set `AppSpec::fit_content_height`), `Level::peak_meter` (use `meter()` or `peak_db()`), `FileDiff::with_texts` (build with `FileDiff::from_texts`), `DiffState::file_key`, `Highlight::is_current`, `MarkdownStyle::from_seed` (use `MarkdownStyle::from_kit(&Kit::from_palette(seed))`), `PopupItem::is_disabled`, `SplitView::{slide_sidebar_contents, sidebar_header}`, `Toolbar::leading_inset` (a toolbar in a `SplitView` gets its inset from the split view), `AnimationStore::{velocities_of, animate_from}` (call `set` then `animate`), `trace::flags::OCCLUDED`, `DistortParams::heat_haze` (build `DistortParams::HeatHaze { .. }`), `LightRenderer::surface_view` and `Recorder::write_errors`.
@@ -0,0 +1 @@
- Commits now cache `El::truncate` and `El::max_lines` ellipsis cuts across frames (bounded and generation-evicted with text layouts, and bypassed for `secure` text), move unchanged node paths from the previous build instead of re-allocating them, and skip `apply`'s scene and paint diff on resting unchanged elements outside `memo`. `Scene::is_resting_at` checks presence, frame and active tracks in one lookup.
@@ -0,0 +1 @@
- **Streaming diagrams fit without swelling when their fence closes.** Fit each piece's destination before animating it, instead of multiplying separate size and scale springs. Motion traces record per-axis destination changes, so the audit checks each streamed layout separately and permits only decelerating inherited velocity on a retarget; jumps and bad motion before the next update still fail.
Loaded 100 of 3795 files, more files were not shown because too many files have changed in this diff. Show more