Recursive AI

Changelog

All oneapp docs

All notable changes to this project are documented in this file. The format follows Keep a Changelog.

[Unreleased]

[1.0.0] - 2026-12-01

Changed

  • Built on OneRender 1.5.0 and OneFont 1.5.0: variable fonts are drawn at the weight, width, style and optical size the CSS asks for, and a relative url() in a linked style sheet resolves against that sheet.

Added

  • Signing set up once for oneapp package and oneapp install. Settings come from a flag, an environment variable, a project property or the per-user signing.json, first found wins (docs/packaging.md). macOS: the bundle and disk image are signed with a Developer ID Application certificate, submitted with notarytool and stapled. Windows: the MSIX is signed by oneapp itself (Authenticode, RSA or ECDSA, optional RFC 3161 timestamp, so it also works when packaging on Linux or macOS) from a .pfx file or a certificate store thumbprint, or through Microsoft's cloud signing service with signtool. A missing or wrong setting is a typed error that names it.
  • oneapp install and oneapp uninstall on Windows. With a certificate it installs the signed MSIX; without one (or with --unpackaged) it installs the files for the current user with a Start-menu shortcut and an Apps & features entry that removes them.

Fixed

  • On NVIDIA's proprietary driver with no X display answering (an app started from the menu on Wayland), the EGL vendor library list is limited to NVIDIA's while the GPU device is made, so Mesa's EGL and its compiler runtime are not loaded (about 50 MB less resident memory). A value the user set is kept.
  • Global shortcuts, notifications and the other desktop portals work for an app started directly. OneApp declares AppOptions.AppId and Title to the portal (not the default id oneapp, which is not a reverse-DNS id), and for an AppImage run without installation the platform layer writes a hidden desktop entry for the id if none exists, never overwriting one. Before, the portal answered "An app id is required".

Added

  • The app's own icon. AppOptions.Icon (bytes) and AppOptions.IconFile (path) name a PNG, JPEG, WebP or SVG; without them the picture named by the project's OneAppIcon property, which the build now embeds, is used. OneApp gives it to every window on Wayland (xdg-toplevel-icon) and X11 (_NET_WM_ICON) and publishes it as the pixels of the tray item, so the title bar, taskbar and tray show it from an AppImage with nothing installed in an icon theme. ShowTrayAsync passes the themed icon name only when the icon theme has it. ShellDemo and the dotnet new template need no code for it.

Changed (release preparation)

  • One switch for the sibling libraries: OneAppSiblingSources (default in Directory.Build.props) is true for project references to the sibling checkouts and false for package references to RecursiveAI.OnePlatform and RecursiveAI.OneUI, whose versions (OnePlatformVersion, OneUIVersion) sit with the engine pins in Directory.Packages.props. Both modes build with no warnings and pass the tests. In package mode OneUI's markup build also reaches projects that reference only OneApp, so samples/Hello (a plain HTML page) sets OneUIMarkupGlob=false.
  • ci.yml builds, tests and packs in package mode with actions pinned by commit; release.yml packs the solution's five packages (OneApp, Kit, Browser, Cli, Templates) in package mode.
  • The NU5104 suppression is gone: packing a stable version against prerelease engine pins warns (as an error in the release workflow) until OneHtml and OneRender are stable.
  • The template package's default --oneappVersion is stamped from the version being packed.

Changed (API, before 1.0)

  • Every AppShell async method takes a trailing CancellationToken cancellationToken = default: NotifyAsync(notification, ct), CloseNotificationAsync(id, ct), OpenFilesAsync/OpenFolderAsync/SaveFileAsync(options, ct), ShowTrayAsync(title, icon, menu, ct), BindHotkeysAsync(hotkeys, ct), TakeScreenshotAsync(interactive, ct). Cancelling completes the task as canceled and closes the portal request where the platform has one (Linux file dialogs, screenshot, shortcuts); OS dialogs on macOS and Windows stay until the user closes them and their answer is dropped. A tray item created after cancellation is removed again.
  • AppShell.ShowTrayAsync returns the new TrayHandle (was Task<IDisposable>), with SetMenu, SetIcon, Dispose, IsDisposed and, on Linux, Icon (the TrayIcon). AppShell.Tray is now the TrayHandle?; AppShell.TrayHandle is removed.
  • new AppOptions(html) and new AppWindowOptions(html) throw ArgumentException (parameter html) for empty or white-space HTML. With the component constructor, a page and a root can never both be set, and one of them always is.

Added

  • Linux: before it makes the GPU device the app tells the Vulkan loader to use only the driver of the machine's best GPU (NVIDIA, then AMD, then Intel), so software and other vendors' drivers and the compiler runtime they bring are not mapped (about 80 MB less resident memory on a machine with NVIDIA, AMD and software drivers). Setting VK_DRIVER_FILES, VK_ICD_FILENAMES, VK_LOADER_DRIVERS_SELECT, VK_LOADER_DRIVERS_DISABLE, ONEGPU_ADAPTER or ONEGPU_VULKAN_LIBRARY turns this off. Needs OnePlatform.NativeEnvironment. See docs/shell.md.
  • AppWindow.Presenter, AppHost.Presenter (PresenterStatus, PresenterKind, PresenterReason): how a window is presented and why it is not on the GPU; the harness status verb reports presenter, presenterReason and presenterDetail. ONEAPP_PRESENTER=cpu forces the CPU path (as AppOptions.UseGpu = false does from code).
  • A window whose GPU swapchain, drawing or presenting fails moves to the CPU path once, with a log line. On Wayland a first GPU frame the compositor refuses (a fatal protocol error) stops the app with PresenterUnavailableException. Where the window cannot show CPU pixels, PresenterUnavailableException says what was expected instead of an unhandled PlatformException or a window that never draws.

Fixed

  • Hovering a kit tooltip's trigger (or any element whose mouseenter handler changes the page's structure) with a real pointer threw "The target belongs to another document" and ended the app. Boundary events (mouseenter, mouseleave, mouseover, mouseout and the pointer ones) now reach component handlers once the page has finished its hover bookkeeping.
  • Text: the command, shift and other key symbols, arrows and stars that no text family has draw from the symbol face of the fonts package (and from any opt-in fonts package the app references) instead of as empty boxes.
  • A translucent sheet over part of the window that no page content reaches (a dialog's dimming sheet over a page shorter than the window) is the same grey as over content. The page now starts on an opaque canvas, and a backdrop filter covers its whole box.
  • <img src> and url() accept data: URLs (SVG and raster images) without the app registering them.
  • A pointer move during a press carries the held button, so dragging a scrollbar thumb works (it ended on the first move before).

Changed

  • Windows: the notifications section of docs/shell.md says why a packaged app's toast can be invisible although NotifyAsync completed (notifications switched off for the app in Windows settings, which an uninstall does not reset).
  • The documentation comments of the drawing code describe an app, not a game.
  • OneHtml and OneHtml.Accessibility 1.7.0-preview.3 and OneRender 1.5.0-preview.5 (fix an AccessViolation and memory corruption on Apple silicon and arm64 Linux).
  • OneRender 1.5.0-preview.4: ComponentHost no longer holds a handler's changes until the page finishes dispatching an event; the page now keeps its event paths and default actions right across a commit made in a listener.
  • Scrollbars. Scroll containers that overflow, and the document, get classic scrollbars with their space (15 px), as Chrome lays out a page with classic scrollbars; AppOptions.Scrollbars and AppWindowOptions.Scrollbars (ScrollbarMode) choose Hidden instead. Pages that scroll lay out 15 px narrower than before. See docs/components.md.
  • text-overflow and cursor work in component stylesheets.
  • Kit: ScrollArea uses the thin scrollbar with the thumb in --border; the icon strokes of the dialog, select, dropdown and toast components are set from the stylesheet (currentColor) instead of presentation attributes. Pixels are unchanged.
  • RecursiveAI.OneApp, .Kit and .Browser depend on RecursiveAI.OneUI with its build assets included, so the markup build and generator reach an app that references only them.

Added

  • Windows: windows draw with the GPU where there is a driver and otherwise with OneRender's rasterizer on the CPU, shown through the platform layer's Window.PresentPixels (status reports the presenter). AppShell runs on the Windows services: menu bar (HasMenuBar is true), tray icon, notifications, file dialogs, global hotkeys with release, own-window and region screenshots; a second launch is handed to the first. The page's accessibility tree is offered to UI Automation. AppShell.NotificationButtons says whether a notification can carry buttons. The harness verbs menu_bar and press_hotkey work on Windows. oneapp package --format msix writes an unsigned MSIX (--publisher, --rid win-x64|win-arm64). ShellDemo and Native are windowed (no console) apps on Windows. See docs/shell.md, docs/packaging.md and docs/accessibility.md.
  • AppOptions.Scrollbars and AppWindowOptions.Scrollbars (ScrollbarMode, default Classic).
  • RecursiveAI.OneApp.Templates: dotnet new oneapp makes an app with a kit-based markup component, the app host, an app id and icon, and the oneapp tool as a local tool. The app references only RecursiveAI.OneApp and RecursiveAI.OneApp.Kit; the markup build reaches it through them.

Fixed

  • An await begun on the UI thread now resumes on it: the host installs a synchronization context for the thread that created it. Before, shell calls (tray, hotkeys, dialogs, notifications) continued on a pool thread, where touching a page while the window was drawing it corrupted the display list (a crash or a spinning loop at start-up).

Changed (API)

  • HostFetchException is sealed.
  • The generated shader bindings (OneApp.Shaders.*, about forty types) are internal; they were public by default.
  • Documentation and comments are written for app authors; the harness is described as serving automation tools.
  • Each package has its own PACKAGE.md (src/<package>/PACKAGE.md), and the repository README describes the four packages. The examples in them are checked by tests.

Added

  • AT-SPI: relations (labelled-by, described-by, controller-for, details, error message, flows-to, with their reverses), the Selection, Table, TableCell, Hypertext, Hyperlink and Image interfaces, text attribute runs, SelectionChanged, and live regions (object attributes plus Announcement events, so a toast is spoken). Native access is a sample page for checking it with a screen reader. See docs/accessibility.md.
  • Input.AriaDescribedBy.
  • oneapp install on macOS signs every file of the bundle, then the bundle, and verifies it with codesign --verify --deep --strict, so --no-aot bundles seal and launch like NativeAOT ones. --identity NAME (or ONEAPP_SIGN_IDENTITY) signs with a certificate, with the hardened runtime and a timestamp, and signs the disk image; --entitlements FILE replaces the runtime entitlements a managed bundle gets under the hardened runtime. The result object has a signed field. See docs/packaging.md.
  • Hotkey.Released: a callback for the keys being let go (the GlobalShortcuts portal's Deactivated), for hold-to-talk keys. macOS reports presses only, so it never runs there.
  • AppWindow.KeepAbove and CanKeepAbove, AppOptions.KeepAbove, AppWindowOptions.KeepAbove, AppWindow.KeepAboveFailed/KeepAboveFailure: a keep-on-top toggle over the platform layer's Window.SetKeepAbove. Setting it before a Wayland window is shown is held until its first frame. The harness gets a keep_above verb (read, set, per window) and windows lists keepAbove; ShellDemo has a "Keep on top" toggle that dims itself with the reason where the window system cannot. See docs/shell.md.
  • The native host and OneApp.Browser answer OneUI's layout and focus queries (UiContext.GetBoundingClientRect, GetViewportSize, GetScrollMetrics, GetTabbableNodes, FocusFirstTabbable, GetActiveElement, Contains, IsInert; native from onerender's CSSOM View queries and tab order, browser from the DOM through new bridge functions) and set UiContext.Scheduler (native: timers whose expiry is posted to the loop, which sleeps until then; browser: setTimeout).
  • Kit overlays use them: the popover, dropdown menu and tooltip flip and shift near the window's edge with Placement.Resolve (data-side, and the tooltip's arrow follows the side), SelectBox stays inside the window, Dialog, AlertDialog and Popover focus their first control on open, a dialog traps Tab with the document's tab order, and the tooltip delay and toast duration run on the host's clock. KitTimers stays as a fallback for hosts without a scheduler.

Fixed

  • AT-SPI: Component.GetPosition and GetSize and the text interface's character and range extents answer as separate results, as the interface definition has them (a client library rejected the structure).
  • The harness chooses its socket folder by measuring the Unix socket address limit (103 bytes on macOS): oneapp-harness-<user> under the temp folder when <pid>.sock fits, under /tmp when it does not, the same code in the app and in oneapp. An explicit unix:PATH that is too long is refused with a message instead of failing inside the socket call. oneapp apps looks in both places.
  • The disk image is built with ditto, which keeps extended attributes, instead of cp -R.
  • Kit icons drawn natively take the muted token colour instead of black: the engine now paints inline SVG currentColor from oklch() and other modern colour functions (OneRender 1.5.0-preview.3). A flex: 1 item in an auto-height column sizes to its content.
  • The native host moves focus to a component's element by node identity (Focus(MutableNode), FocusedMutableNode) instead of looking the element up in a snapshot.
  • Inline SVG (the kit's dialog close glyph, select chevron, radio dot and the like) draws in the GPU window. The page renderer handed the decoder SVG markup without the xmlns HTML doesn't need, and the decoder refused it ("root element is not an SVG"); the namespace is added before registering. A test compares the GPU frame with the rasterizer's.
  • Checkbox, Switch and DropdownMenuCheckboxItem are controlled when OnCheckedChange is set: they ask for the opposite value and show only Checked, so a parent that refuses the change leaves them as they were. Without a handler they keep their own state as before.

Added (samples)

  • Native overlays [--show NAME] opens the kit's overlay page, optionally with one overlay already open.

Changed

  • The engine pins are OneHtml 1.7.0-preview.2 and OneRender, OneRender.Fonts and OneRender.Image 1.5.0-preview.2. They fix a layout query from inside a click handler (an overlay opened by a click and measured at once), keep a field's placeholder colour after focus, blur and hover, and centre flex buttons' labels like a block's.

  • The harness now ships in the RecursiveAI.OneApp package and the consuming app's build switches it: the OneAppHarness MSBuild property (default true in Debug, false otherwise) sets the feature switch OneApp.Harness.Enabled. An app built from the package listens in Debug, and a Release (trimmed or NativeAOT) app contains no harness code and cannot be made to listen. RecursiveAI.OneModelContext is now a dependency of the package. See docs/harness.md.

  • A dialog no longer has focus sentinels or a focus anchor; its first control takes focus when it opens.

  • The macOS desktop services moved to OnePlatform (OnePlatform.Shell.MacDesktop); AppShell drives them the way it drives the Linux ones, and OneApp itself has no native interop left. ShellUnavailableException is now OnePlatform's type (OnePlatform.Shell, a PlatformException): code that named OneApp.ShellUnavailableException needs using OnePlatform.Shell;. An app that imports both namespaces must qualify MenuBarMenu, which both define. Behaviour is unchanged.

  • A window resize or scale change lays the page out in place (InteractivePage.SetViewport): typed values, focus, listeners and scroll positions stay, and AppOptions.Setup runs once.

  • AppShell.ShowTrayAsync returns IDisposable (the TrayIcon on Linux, also in Tray); Shell.TrayHandle holds it on every desktop.

  • OneApp.Browser speaks OneUI change-set protocol 2: inline SVG elements (CreateElementNS) and focus from code (Focus, applied after the commit; the events it raises are delivered after the commit has applied). Protocol 1 commits still apply; versions above 2 are refused.

  • The app loop blocks in the operating system and is woken by PlatformApp.Wake from AppHost.Post, bus replies and harness requests; the 50 ms poll and the harness listener's 100 ms accept poll are gone.

Fixed

  • Typing on a real keyboard entered every character twice (the key and the text it produced both typed); the harness wheel verb scrolled the wrong way.

Added

  • macOS accessibility: each window offers the page's accessibility tree to NSAccessibility through OnePlatform's WindowAccessibility (roles, names, values, states, text and selection, bounds, press, focus, set value, increment and decrement, and change notifications), so VoiceOver and other assistive clients see OneApp apps. Built only once a client asks; AppOptions.Accessibility and AppHost.AccessibilityStatus apply as on Linux. tools/AxProbe is an out-of-process AXUIElement client for checking it. See docs/accessibility.md.
  • RecursiveAI.OneApp.Kit data components: Table with TableHeader, TableBody, TableFooter, TableRow (hover and Selected), TableHead, TableCell and TableCaption; and ScrollArea (vertical, horizontal or both, with a focusable viewport). ScrollArea uses the platform scrollbars until the component stylesheet language accepts scrollbar-width and scrollbar-color. Gallery section, KitGallery --show table|scroll-area…, tests.
  • RecursiveAI.OneApp.Kit overlays: Dialog, AlertDialog, Popover, DropdownMenu (items, checkbox and radio items, labels, separators, shortcuts), Tooltip, Toaster with Toast.Show, and SelectBox, following the WAI-ARIA patterns for focus and keys; Placement.Resolve for flip and shift; KitTimers. The kit and its tests now reference OneApp.Kit instead of compiling its files (KitSources.props is gone).
  • OneUI components in native windows: AppOptions(Component), AppWindowOptions(Component), AppWindow.Root/Components. The change-set sink edits a OneHtml mutable document that OneRender follows; events, focus from code and SVG round-trip. Harness verb component. samples/Native. See docs/components.md.
  • oneapp package <project> --format deb|appimage: publishes the app and writes a Debian package or a type 2 AppImage, with the package files, the SquashFS image and the dependency list (DT_NEEDED, glibc symbol versions and the libraries opened at run time) produced by the tool itself. New project properties OneAppMaintainer, OneAppPackageName, OneAppDescription, OneAppHomepage, OneAppLicense, OneAppDebSection, OneAppDebDepends. See docs/packaging.md.
  • RecursiveAI.OneApp.Kit: shadcn/ui-style kit (button, input, textarea, label, checkbox, switch, card, badge, separator, avatar, tabs), light and dark tokens, samples/KitGallery.
  • Linux accessibility: the app's windows are exported as AT-SPI2 objects on the accessibility bus (application, frames, the page's accessibility tree with roles, names, states, Component, Action, Text, EditableText, Value, Cache) and the events screen readers need (focus, state, name, children, text, caret, windows) are announced. AppOptions.Accessibility (AccessibilityMode Auto, On, Off), AppHost.AccessibilityStatus and AccessibilityStatusChanged (AccessibilityStatus, AccessibilityState, AccessibilityReason); the harness status verb reports it. See docs/accessibility.md.
  • macOS (Apple silicon): AppHost renders through Metal into Cocoa windows; AppShell maps to AppKit: SetMenuBar (MenuBarMenu, AppShell.HasMenuBar), NSStatusItem tray, NSOpenPanel/NSSavePanel, UNUserNotificationCenter notifications, Carbon global hotkeys, single instance over a private Unix socket. A service macOS will not give the app throws ShellUnavailableException. See docs/shell.md.
  • AppHost.LaunchedAgain: a second launch's arguments, on every desktop.
  • oneapp install on macOS builds an app bundle (Info.plist, .icns, ad-hoc sealed) in --prefix and, with --dmg, a disk image with hdiutil.
  • Harness verbs menu_bar, native_dialog and press_hotkey (macOS).
  • A second launch of a single-instance app brings the running instance's main window to the front (Window.Activate with the forwarded activation token) before AppHost.Activated; AppHost.ActivationFailed and LastActivationFailure report why it could not; AppOptions.ActivateOnSecondLaunch opts out.
  • Harness verbs that act on a page take an optional window (an id, main or focused), so dialogs and menu popups can be queried, driven and captured; the CLI takes --window. windows reports each window's role and parent.
  • Desktop shell: AppHost.OpenWindow (dialogs, overlays, several windows), AppWindow, ShowMenu with Menu/MenuItem, AppHost.Shell (notifications, file dialogs, tray, global hotkeys, screenshots), AppHost.CreateOrActivate for one copy per session, ExitPolicy. See docs/shell.md.
  • oneapp install and oneapp uninstall: desktop entry, icon and published app for the current user.
  • samples/ShellDemo.
  • AppHost: an HTML/CSS page in a window, drawn on the GPU, redrawn only on change.
  • PageCapture: PNG pixels of a page from OneRender's rasterizer or from the GPU path offscreen.
  • Harness: Debug builds listen for MCP on a local socket (ONEAPP_HARNESS) and answer verbs to query, click, type, press, wheel, focus, wait, resize, capture and read the accessibility tree through the window's real event queue. Release builds contain no listener. See docs/harness.md.
  • oneapp command line tool (RecursiveAI.OneApp.Cli): launches an app with the listener on and drives it; oneapp mcp bridges stdio to it.
  • AppOptions.Harness.
  • RecursiveAI.OneApp.Browser: OneUI components as custom elements on browser-wasm, with a JavaScript bridge that applies change sets to the DOM; samples/Todo.Browser.