Nucleus
Changelog

Changelog 2.x

Release notes for Nucleus 2.0.0 to 2.5.18, newest first.

View as Markdown

Release notes for Nucleus 2.0.0 to 2.5.18, newest first. Nucleus 3.0 is in the current changelog.

v2.5.18

Released: 2026-09-23

Bug fixes

  • Linux natives require glibc 2.39 (#699) — the Linux JNI libraries (Tao, decorated window, notifications, tray helpers, …) were built on ubuntu-latest, which GitHub moved to Ubuntu 24.04, so every published .so needed glibc 2.39 and failed to load on still-supported distributions such as Ubuntu 22.04 LTS (2.35), Debian 12, and Devuan 5 (2.36). The native build is now pinned to ubuntu-22.04 / ubuntu-22.04-arm, bringing the floor back to glibc 2.35. See Native library fails to load on an older Linux distribution.

v2.5.17

Released: 2026-09-22

New features

  • Pacman upgrade hooks (#685) — linux { } gains afterUpgrade and beforeUpgrade file properties, passed raw to fpm (--after-upgrade / --before-upgrade). On Pacman, an upgrade runs only pre_upgrade / post_upgrade: none of the four install/remove scripts fire, so a service set up in afterInstall died on the first upgrade. Register or restart it in afterUpgrade too. Deb and Rpm ignore both properties — their install scriptlets already run on upgrades. See Add install and remove scripts.

Bug fixes

  • Linux install directory no longer contains spaces (#685) — Deb, Rpm, and Pacman installed the payload under /opt/${sanitizedProductName}, derived from appName. electron-builder's sanitizer keeps spaces, so a display name such as My App broke every unquoted path in install scripts and systemd ExecStart= lines. On Linux the product name now comes from linux.packageName ?: packageName, so the payload lands in /opt/<packageName>. Scripts that hardcode the old /opt/<App Name> path must be updated.
  • Developer ID signing of GraalVM macOS bundles (#692) — packageGraalvmDmg with compose.desktop.mac.sign=true aborted with code object is not signed at all on Contents/MacOS/.nucleus-executable-type, and even a manually fixed bundle was rejected by Gatekeeper after notarization. Three fixes: the executable-type marker is written to Contents/Resources/ (the runtime still reads the old location); every dylib and executable under Contents/MacOS/ is re-signed with the Developer ID identity; and fontconfig.bfc moves from Contents/MacOS/lib/ to Contents/Resources/, with sun.awt.fontconfig pointed at it at startup. JVM (jpackage) bundles are unaffected. See Notarization fails: "code object is not signed at all".

v2.5.16

Released: 2026-09-17

New features

  • Linux install and remove scripts (#664) — linux { } now takes afterInstall, afterRemove, beforeInstall, and beforeRemove file properties. User after-scripts are concatenated after Nucleus's own template (desktop integration, AppArmor, optional polkit silent-update helper) and run through electron-builder for Deb, Rpm, and Pacman; before-scripts are passed raw to fpm (--before-install / --before-remove). GraalVM native-image packages honor the same four properties. electron-builder substitutes ${sanitizedProductName} / ${executable} only in single-quoted tokens; a double-quoted "${executable}" is left literal, so a systemd systemctl enable "${executable}.service" line silently no-ops. Pacman pre_remove does not get deb-style $1=upgrade — stop and disable the unit unconditionally and re-enable it in afterInstall. See Add install and remove scripts.
  • Headless GraalVM images (#665) — graalvm { headless = true } skips L3 AWT/Java2D platform metadata, the always-on L1 GUI packs (jdk-awt, jdk-fonts, jdk-graphics2d, Skiko/Compose/tray), and the companion GUI native libs (libawt, libfontmanager, Skiko, …), and bakes -Djava.awt.headless=true. Default is false (GUI). Without this, JNI registration of AWT types makes native-image pull libawt / libawt_xawt even when app code never references java.awt. Use it for daemons and CLIs. See Build a headless image.

Bug fixes

  • Linux EGL crash on GPUs without GL 3.3 compatibility (#670) — the X11 and Wayland attach paths asked for one thing only: a GL 3.3 compatibility-profile context. Mesa's r600 driver on AMD RV610 caps the compat profile at 3.0 (core reaches 3.3), so the request failed and the app aborted. Attach now tries 3.3 compat, then 3.3 core (hardware-accelerated on that GPU), then Mesa llvmpipe via LIBGL_ALWAYS_SOFTWARE=1 (Mesa reads that variable at eglInitialize, so the display is terminated and attach re-enters once). Existing hardware that accepts the compat request is untouched. Both fallbacks log one line on stderr. See Crash on launch with an older Linux GPU.

v2.5.15

Released: 2026-09-07

New features

  • Trackpad pan events on macOS (#654) — two-finger trackpad gestures arrived as ordinary Compose Scroll events, indistinguishable from wheel notches, so a map could not bind panning to the trackpad and zoom to the wheel. Phased AppKit scroll steps now become PointerEventType.PanStart / PanMove / PanEnd with panOffset in pixels (AWT preciseWheelRotation × 10.dp). Wheel notches and phase-less precise scrolls stay Scroll. The pan stays open across AppKit's momentum tail so Compose does not stack its own fling. Modifier.scrollable handles both; a custom pointerInput that only listens for Scroll must also handle Pan, or start the process with -Dnucleus.tao.trackpadPanEvents=false to get AWT-style Scroll for everything. Native views consume the pan and forward it so the embedded scroll view rubber-bands; popups share the same router. See Read trackpad pans from Compose.

Bug fixes

  • Horizontal trackpad scroll reversed on macOS (#652) — tao negated scrollingDeltaX in the macOS scroll_wheel handler, then Nucleus negated both axes assuming raw AppKit deltas, so a two-finger swipe left panned the wrong way relative to AWT. AppKit already follows the MouseScrollDelta convention (as winit does); the extra X negation is gone, and popup conversion flips both axes without a second guess. See Read trackpad pans from Compose.
  • Trackpad scroll magnitude included display scale (#653) — Tao converted AppKit logical deltas to physical pixels before dividing by 10, so a 10-point swipe moved twice as far on a 2× display as under AWT (which uses scrollingDelta * 0.1 with no scale). Precise deltas are now handed over in logical points. See How it works.

v2.5.14

Released: 2026-09-04

Bug fixes

  • Window content reclassified by a non-UI composable (#636) — the window and dialog openers had their composition target inferred, so a single unmarked factory called in the nucleusApplication block (the Compose compiler bakes @ComposableTarget onto any unmarked function that forwards a target-marked content lambda) reclassified the whole scope — nested windows included — and every @UiComposable call in it warned, which is fatal under -Werror. The reported case was MapLibre Compose's rememberMapState. Each opener is now @ComposableOpenTarget(-1) with a @UiComposable content lambda, matching Compose Desktop's Window/Dialog: callable from any applier, always composing UI in the new window's own composition. Covers DecoratedWindow/DecoratedDialog, NucleusWindowHost / NucleusDialogHost, HostedWindow/HostedDialog, and Tao's DecoratedWindow, DecoratedDialog, and TaoStandalonePopup. The Material/Jewel wrappers inherit the same scheme through inference. See Notes.

v2.5.13

Released: 2026-09-04

Bug fixes

  • Windows freeze on IME commit and taskbar restart (#644) — two more instances of the #640 lock class: the window-state lock was held across ImeHandler::process_message, which peeks the queue on WM_IME_ENDCOMPOSITION (the Korean IME sends the committed string after the end message, so the queue decides whether to defer), and across set_skip_taskbar on TaskbarCreated, where the CoCreateInstance + ITaskbarList STA call pumps the queue while it waits. Both re-entered the window procedure and re-locked a non-reentrant mutex, parking the event-loop thread in WaitOnAddress for good. The IME commit-pending flag is now computed before the lock is taken and passed in, and the skip-taskbar flag is read out before the COM call. Wider blast radius than #640: nearly every IME arm took that lock. Ported from tauri-apps/tao#1215 and #1264. See Text input.
  • Windows freeze on a keyboard-triggered nested message (#640) — PeekMessageW delivers pending cross-thread sent messages inline, re-entering the window procedure before the peek returns. The keyboard callback held the global KEY_EVENT_BUILDERS map and the key-press/release arms held LAYOUT_CACHE across such a peek, so the nested dispatch deadlocked the event-loop thread against itself and the window stayed "Not Responding". Reported as a freeze when moving a window between Windows 11 virtual desktops. The builder is now taken out of the map for the duration and put back only if the slot still exists, and the layout-cache guard ends before the peek. Only injected or sent key messages can nest here, and they are now dropped instead of hanging the process.

v2.5.12

Released: 2026-09-01

Bug fixes

  • alwaysOnTop dropped on Windows (#631) — three layers lost WS_EX_TOPMOST: DecoratedWindowComposable created every window with a hardcoded alwaysOnTop = false and applied the real value from a later LaunchedEffect, losing the race against creation-time style rewrites (acrylic, skip-taskbar); tao only issues its z-order SetWindowPos on a WindowFlags cache diff, and asynchronously, so an external rewrite that dropped the topmost band was never repaired. The initial value is now passed at window creation, setAlwaysOnTop also applies the z-order synchronously, and the band is re-asserted after the known clobber sites — every resize, and the backdrop apply, teardown, and survivor-restore paths. See Platform behavior.
  • Input starving with two windows open on Windows (#632) — any snapshot write in the process wakes every scene's Recomposer through the global apply observer, and the Windows host rendered and presented those frames unconditionally. Each eglSwapBuffers at interval 1 parks the shared event-loop thread until the next VBlank, so every visible window re-presented at the animating window's rate and the VBlank waits serialized (a dashboard lagging while a small always-on-top window was visible). The scene bundle now tracks a visual-dirty flag fed by its invalidateLayout / invalidateDraw callbacks and the host skips the present for a frame with no visual change. Presents that must swap regardless are kept: a size or scale apply, the OS modal resize/move loop, a resolved clear-colour change, and the first swap after show(). See How it works.

v2.5.11

Released: 2026-08-31

New features

  • menuCategory and shortcutName on the NSIS targets (#630) — follow-up to #629. The NSIS targets exposed most installer settings but not these two, so a start-menu group could not be declared at all and the shortcut always landed in the start menu root — a blocker for projects moving their MSI packaging to the recommended NSIS format while keeping the folder they had under jpackage. Both are emitted for nsis and nsis-web, default to null (nothing emitted, so existing installers are unchanged), and windows.menuGroup acts as the default menuCategory exactly as it does for MSI. See Customize the NSIS installer.

v2.5.10

Released: 2026-08-31

Bug fixes

  • MSI installer options (#629) — the MSI target only forwarded upgradeCode and perMachine to electron-builder, so every other Windows installer setting fell back to an electron-builder default: windows.menuGroup was ignored and the shortcut landed in the start menu root, oneClick defaulted to true so the installer ran with no UI, and runAfterFinish launched the app as soon as the install finished. MsiSettings now emits oneClick, runAfterFinish, createDesktopShortcut, createStartMenuShortcut, menuCategory, and shortcutName. Defaults match electron-builder unless a project opts in; windows.menuGroup is the default menuCategory. windows.menu / windows.shortcut stay unmapped (jpackage false vs electron-builder true). See Build an MSI for enterprise deployment.

v2.5.9

Released: 2026-08-31

Bug fixes

  • Fatal dialog stack trace (#627) — the 2.5.8 native dialog stuffed the throwable into the message line. On Linux that doubled the title ("Fatal Error" twice on WMs that draw dialog titlebars) and the unbounded secondary label sized the dialog to the whole screen. The payload is now a short message plus Throwable.stackTraceToString(): all three platforms render the trace in a bounded scrollable monospace view with a Copy button (NSAlert via an out-of-process osascript child on macOS, an in-memory DLGTEMPLATE on a fresh thread on Windows, GtkMessageDialog on Linux). Compact fallbacks (CFUserNotification / MessageBoxW) keep the toString() summary, capped at 2000 chars so a VerifyError bytecode dump cannot silently hide the box. See Handle uncaught exceptions.

v2.5.8

Released: 2026-08-31

New features

  • Native fatal-error dialog (#622 / #623) — an exception that escaped a Tao event dispatch used to be cleared at the JNI boundary, leaving a frozen, silent, unclosable window. The default path now logs the stack at SEVERE, shows a blocking native dialog (CFUserNotification on macOS, MessageBoxW on a dedicated thread on Windows, GtkMessageDialog on Linux), exits the Tao loop, and rethrows so nucleusApplication / taoApplication end with exit code 1. The dialog is shown after the loop has exited — a modal pump inside a tao callback deadlocks the main thread. Skip it with -Dnucleus.tao.fatalErrorDialog=false for unattended runs. See Handle uncaught exceptions.
  • WindowExceptionHandlerFactory (#621 / #625) — Tao mirror of Compose Desktop's AWT factory. Provide LocalWindowExceptionHandlerFactory to catch failures during layout, draw, input, IME, and accessibility; a handler that returns normally drops the frame and keeps the window alive. Composition failures still kill the recomposer (Compose's own design); swallowing one logs at SEVERE instead of leaving a window that never updates. The default factory rethrows into the fatal dialog. @ExperimentalComposeUiApi. See Handle uncaught exceptions.

v2.5.7

Released: 2026-08-30

Bug fixes

  • Popup render re-entry on a scrollbar drag (#620) — dragging a scrollbar inside a TrayApp popup scrolls synchronously inside the pointer event, and the LaunchedEffects of the lazy items subcomposed by that scroll scheduled a frame the standalone pump rendered inline. Measure and layout re-entered while the first pass was still on the stack, throwing performMeasureAndLayout called during measure layout and leaving the drag with a non-zero pending scroll. Every scene entry point of the standalone hosts — pointer, scroll, key dispatch, and setContent — now runs under the pump's re-entrancy guard, so a frame scheduled mid-pass is posted to the Tao main queue instead. See Notes.

v2.5.6

Released: 2026-08-30

Bug fixes

  • Linux IME preedit (#558 / #613) — the Linux backend pinned gtk::IMContextSimple, GTK's built-in fallback, which never reaches the system input method: CJK input was not degraded but impossible, and typing aiueo then confirming left a stray a. The backend now uses gtk::IMMulticontext — ibus or fcitx5 through the GTK immodule on X11, the text-input-v3 client on Wayland — and routes its signals into the same ImePreedit / ImeCommit events as macOS and Windows. Keys the input method consumed no longer reach Compose, including the orphan key releases Wayland delivers for a filtered press, and the candidate window follows the caret. See Text input.
  • Linux candidate window covering the caret (#613) — GTK places its windows around a cursor area in logical pixels relative to the toplevel GdkWindow, not a point in physical pixels relative to the client area, so the candidate list landed on the composition it described. The caret rect is scaled and translated by the content widget's allocation, matching the correction the Wayland subsurface already applies. See Text input.
  • Linux modifier state drift (#613) — ModifiersChanged was emitted only when the key itself was a modifier, so Compose tracked Ctrl, Shift, Alt, and Super from press and release bookkeeping. Input methods on X11 re-inject the events they forward, and a dropped Control release left Compose believing Ctrl was held for the rest of the session: a plain Return read as Ctrl+Return. The state is now derived from the GDK modifier mask carried by every event, so it self-heals on the next keystroke.
  • macOS press-and-hold accents (#611 / #612 / #617) — Nucleus forced ApplePressAndHoldEnabled in four preference domains and guessed from a state machine when the accent picker was active. A held letter then did nothing at all on keyboards where the picker cannot engage, and ordinary fast typing armed the picker flag and routed the next commit into the replace path, deleting the character just committed ("Xcode" landing as "Xcde"). Nucleus no longer reads or writes the user default — the OS decides whether a held letter repeats or opens the picker — and the pick is applied from the replacementRange AppKit sends with insertText:, select-then-insert. See Text input.
  • Sub-pixel pointer jitter eating clicks (#615 / #619) — Tao reports cursor positions in 1/1024 px and macOS emits a CursorMoved before every mouseDown and mouseUp, so a click drifting a fraction of a pixel produced a real move delta, started a parent drag gesture, and cancelled the tap: selections needed two clicks. Moves under 1 dp from the last dispatched position are now suppressed, and viewConfiguration.touchSlop is density-scaled to 18.dp instead of 18 raw pixels, which had halved every drag and scroll threshold on 2x displays. See How it works.
  • Linux tray popup scroll (#610) — standalone, overlay, and owner-based popups now feed wheel events through the same AWT-shaped dispatch as TaoWindow, with the Windows lines-per-notch value from LocalScrollConfig. Standalone popup frames paint inline when the caller is already on the main thread, so a wheel flood cannot starve MainEventsCleared. See Notes.
  • Auto-launch at half size on GNOME (#614 / #616) — graphical-session.target is reached before gsd-xsettings writes Xft.dpi into the X resource database, so a HiDPI app started at login froze sun.java2d.uiScale at 1.0 while a manual launch was always correct. The generated systemd user unit is ordered after gnome-session-x11-services-ready.target. systemd ignores ordering on units that are not loaded, so this is a no-op on other desktops. See Notes.

v2.5.5

Released: 2026-08-28

Bug fixes

  • macOS tray popup and Show Desktop (#609) — the standalone NSPanel had the default collection behavior, so "Click wallpaper to reveal desktop" on Sonoma and later Exposé-slid the popup away while Compose was already fading it. The panel is now stationary, joins all spaces, is fullscreen-auxiliary, and is ignored by window cycling, so TrayApp dismisses it itself. See Notes.
  • macOS tray popup dismissed by its own icon (#609) — the outside-click monitor counted a mouseDown on the NSStatusItem and on its native context menu as a click outside the panel, so a right-click hid the popup before the menu appeared. Those windows are skipped for standalone panels; the left-click toggle stays with the tray callback. See Notes.

v2.5.4

Released: 2026-08-27

Bug fixes

  • Linux inbound drop on tray popups (#605 / #607) — a TrayApp popup on Linux is an override-redirect X11 window, so GTK gtk_drag_dest_set cannot attach. Inbound XDND 5 is implemented on the panel event thread and dispatched through TaoSceneDnD, matching DecoratedWindow. See How it works.
  • macOS tray popup scroll (#608) — popup NSPanels forwarded raw AppKit scrollingDelta. TaoWindow already reshapes those to AWT preciseWheelRotation (negate Y, physical /10 for precise deltas). Tray and overlay popups now use the same mapping, so wheel sign and trackpad magnitude match the main window. See Notes.

v2.5.3

Released: 2026-08-27

Bug fixes

  • Inbound drop on Windows and macOS tray popups (#604) — TrayApp popups are ownerless native panels (WS_POPUP / NSPanel), not TaoWindows, so they had no drop target. Inbound file drops now reach Compose dragAndDropTarget through TaoSceneDnD. Windows native-image builds include the JNI metadata for that path. See How it works.
  • Windows IME preedit (#558 / #603) — composition was never forwarded, so the IME painted its own floating window near the top-left of the window, and keys the IME had consumed (VK_PROCESSKEY) still reached Compose: conversion Enter inserted a newline, candidate arrows moved the caret, Backspace deleted committed text. Preedit now renders inline, the candidate list follows the caret, and consumed keys are dropped. See Text input.

v2.5.2

Released: 2026-08-27

Bug fixes

  • Windows tray popup scroll (#601) — popup and overlay WndProcs reported raw Win32 wheel units. TaoWindow already negates those to AWT preciseWheelRotation; standalone and owned popup layers now do the same, so TrayApp scrolling is no longer inverted. See Notes.
  • Hidden Windows tray popup GPU frames (#602) — a hidden standalone tray popup no longer submits GPU frames.
  • UTF-8 javac/javadoc encoding (#600) — the compiler and javadoc tasks pin -encoding UTF-8, so non-ASCII KDoc no longer fails the Windows build.

v2.5.1

Released: 2026-08-27

New features

Bug fixes

  • Animated WindowState.size tremble (#576 / #597) — programmatic height animation left the HWND/NSWindow a frame ahead of the Compose scene, and native resize echoes wrote WindowState.size backwards. Inner size is applied synchronously, EVENT_RESIZED is pushed in the same turn, and in-flight programmatic echoes are ignored. See DecoratedWindow parameters.
  • macOS IME preedit (#595 / #596 / #599) — CJK composition was invisible and the committing Enter leaked as a newline. setMarkedText / unmarkText are forwarded as preedit, commit goes through commitText, and keys the IME consumed are dropped. The PressAndHold accent picker stays gated while a composition is live, so a segment commit cannot arm the picker and hijack the next commit (duplicated segments, U+F7xx tofu). See Text input.

v2.5.0

Released: 2026-08-26

New modules

  • Spell check (nucleus.spellcheck) — checks spelling through the engine each OS already ships: Hunspell on Linux (loaded with dlopen, no compile-time dependency), NSSpellChecker on macOS, and the Windows Spell Checking API. Ships a SpellcheckContextMenu wrapper that adds suggestions and "Add to dictionary" to a Compose text field's context menu, plus an engine API (SpellChecker, SpellcheckSession) usable without Compose. nucleus-application exposes it as an api dependency, so no extra Gradle line is needed. Where no engine is available every operation is a no-op rather than an error. See Spell check.
    • Per-field and process-wide language override via locale / SpellChecker.locale. See Choose the check language.
    • SpellcheckMenuPlacement puts suggestions above or below Cut/Copy/Paste. See Place the menu items.
    • The "Add to dictionary" label is localized for 45+ locales; user words persist to ~/.config/nucleus/spellcheck/<tag>.dic.

New features

  • Native context menus (#542, #544, #545, #547) — nativeContextMenu = true on DecoratedWindow / HostedWindow replaces the Compose-drawn context menu with the platform's: a real NSMenu on macOS, and a Compose flyout styled as Fluent on Windows, Adwaita on GTK desktops, and Breeze on Qt desktops. Covers ContextMenuArea, text-field Cut/Copy/Paste, and spellcheck items. Tao backend only; accepted and ignored on AWT. See Context menus.
    • NucleusContextMenuItem, NucleusContextMenuDivider, and NucleusContextMenuSubmenu build items with icons and lazy submenus. See Add your own items.
    • Stock icons carry their platform shortcut label (⌘C / Ctrl+C), overridable per item. Drawn on the Windows and Linux flyouts. See Show keyboard shortcuts.
    • New LinuxUiToolkit in core-runtime reports whether the session is Gtk or Qt, which is also how the Linux menu style is chosen. See Detect the Linux toolkit.
    • menu-macos gained the popup primitives behind it: NativePopupMenuItem, popUpNativeMenu, isNativePopupMenuAvailable.
  • Overlay windows (#564, #568) — new window flags for watermarks, desktop widgets, and heads-up overlays: clickThrough (pointer events pass through), alwaysOnBottom (below normal windows, mutually exclusive with alwaysOnTop), and visibleOnAllWorkspaces. All three are reactive, with imperative TaoWindow setters alongside. See Overlay windows.
    • transparent is now exposed on the backend-agnostic DecoratedWindow and the Material and Jewel window wrappers, not just the Tao composable. A fully transparent window drops the contour that traced the rectangular window instead of the content, and Compose scenes are told the window is transparent so dialog scrims blend against alpha (#559, #561).
    • forceX11 gives one window an XWayland surface without moving the whole process off Wayland, and TaoWindow.isNativeWaylandSurface reports what it actually got. Flags that cannot work on a native Wayland surface log once per window with the reason. See Take an X11 surface on Wayland.
  • Compose over native views (#587) — the NativeView content slot now draws in the window's own Compose scene on all three platforms, so Compose siblings declared after the view and in-scene Popups paint over it, and overlay content claims its own pointer events. Linux supports the content slot at all for the first time (Wayland only). Modifier.consumeOverlayPointerEvents() is deprecated and no longer needed. See Overlay Compose content.
  • Linux clipboard through GTK (#582, #583) — the Tao clipboard on Linux goes through GDK instead of AWT, so copy and paste work in a Wayland-native window and in a session with no XWayland. Images (as PNG) and file lists (text/uri-list plus the GNOME copied-files target) are carried in both directions alongside plain text. No API change: use Compose's LocalClipboard. See Copy and paste.
  • EnergyManager.acquireAwake — returns an AwakeHandle that holds one awake request until it is closed, so independent features can each keep the machine awake without releasing each other. keepAwake keeps its single last-writer-wins slot. This also backs Compose's Modifier.keepScreenOn, which the Tao backend now implements. See Hold several awake requests at once.
  • Custom scheduler command (#540) — SchedulerConfig.executablePath and executableArguments point the OS scheduler at a custom launcher instead of the current executable. Set them before the first enqueue; values are baked into the generated plist, unit, or task. See SchedulerConfig.
  • Compose 1.12 (#354, #550, #551, #555) — decorated-window-tao moves to Compose Multiplatform 1.12, with frames driven through SingleComposeSceneRenderingScope and the new RectManager delayed dispatch kept off the AWT event thread.
  • jdk.unsupported in the default runtime modules — sun.misc.Unsafe is required by JNA, Jewel, and many common libraries, so the module is included by default rather than discovered through a runtime failure. See the nativeDistributions { } reference.

Breaking changes

  • GenericProvider requires https — a non-https update origin now throws IllegalArgumentException at construction. The manifest, checksums, and artifact all come from that one origin, so plain http lets an on-path attacker rewrite the three together and the SHA-512 protects nothing. http is still accepted for loopback hosts so integration tests can serve fixtures without TLS. See Providers.

Bug fixes

  • Self-update scripts written to a private directory — the detached update script and its log went to a fixed path in the shared temp directory (/tmp/nucleus-update.sh on Linux), which another local user can pre-create as a symlink or a file they own, turning the update into local code execution as the app's user. Each run now gets a fresh owner-only (0700) directory.
  • Windows update script escaping — manifest-derived paths are escaped before they reach PowerShell.
  • Linux root update helper — closed a time-of-check/time-of-use window and a downgrade path in the privileged helper.
  • Linux update helper leaked a gpg-agent — the signature check no longer leaves a gpg-agent running inside the app's systemd scope.
  • MPRIS invalid D-Bus name (#548) — an app id that is not a valid D-Bus name no longer hangs media-control startup on Linux.
  • Context menu dismissal and first right-click — the flyout closes when the owning window loses focus, and the macOS menu opens on the first right-click in an app that is not yet active.
  • Tao fixes — the dialog close button animates its hover like DecoratedWindow; a native session that swallows a mouse-up no longer leaves a stuck button; Adwaita separators follow libadwaita's currentColor rule.

v2.4.7

Released: 2026-08-17

Bug fixes

  • Windows SMTC local cover art (#552) — a file:// coverUrl (or a bare path) now appears in the Windows media flyout. CreateFromUri never opens local files, so SMTC kept a blank square. Local covers go through CreateFromFile; remote http/https URLs are unchanged. See Publish now-playing metadata.

v2.4.6

Released: 2026-08-16

Bug fixes

  • macOS fullscreen minimize button (#539 / #531) — replacement traffic lights in native fullscreen cannot miniaturize the window. The minimize button is disabled so it no longer looks clickable; close and zoom stay on the same hover path. At rest the copies paint the standard active colours instead of inactive gray. See Window controls.

v2.4.5

Released: 2026-08-16

Bug fixes

  • Dp.Unspecified wrap-content window size (#535) — DecoratedWindow no longer passes NaN through to the native surface when a WindowState / DialogState axis is Dp.Unspecified. Wrap-content axes are measured after the first composition and applied, matching Compose Desktop. See DecoratedWindow parameters.
  • Linux discrete mouse-wheel scroll (#533) — GDK only fills delta_x / delta_y for smooth (trackpad) events. A discrete wheel notch arrived with a zero delta, so Compose never scrolled. Direction is now mapped to a unit delta.
  • Win11 caption-button hover fade (#537) — platform caption buttons use the system hover fade duration. See Window controls.

v2.4.4

Released: 2026-08-14

Bug fixes

  • Win11 CSD corners clipped (#527) — windowed CSD draws the 8px rounded contour through DWM so the Compose frame is not clipped at the corners. See DecoratedWindow notes.
  • macOS press-and-hold accent picker (#529 / #530) — key-repeat now reaches interpretKeyEvents:, so AppKit's PressAndHold menu opens. Picking an accent replaces the already-committed base letter (e → é) instead of appending.
  • Windows multi-monitor popup DPI (#528) — popups and DecoratedDialog pick up the target monitor's DPI and work-area constraints when they open on a different display from the owner. See Per-monitor HiDPI notes.

v2.4.3

Released: 2026-08-13

Bug fixes

  • Windows CSD frame hidden by DWM (#523 / #522 / #520) — windowed CSD (no Mica/Acrylic) clears only the DWM border fill so the Compose frame stroke is visible, while the Win11 8px rounded clip and drop shadow stay. See DecoratedWindow notes.
  • appResources missing from GraalVM native packages (#524) — prepareAppResources is copied next to the native binary and compose.application.resources.dir is set for packageGraalvmNative and runWithNativeAgent. Sidecars such as Dawn's dxil.dll load the same way as run / jpackage. See GraalVM tasks — metadata, installers, and helpers.

v2.4.2

Released: 2026-08-12

Bug fixes

  • Windows sibling GPU cache purge (#519 / #514) — resize-path Skia cache purges bind the host's own ANGLE context first, so a sibling window's WM_PAINT cannot leave another unshared context current and delete that window's glyph atlas and icons. See GPU render context notes.
  • nativeLinuxHandles on Windows and macOS (#518) — the Linux-only JNI entry is now platform-guarded. Detaching a tab into a popup with WindowPosition.Absolute no longer throws UnsatisfiedLinkError. See DecoratedWindow parameters.

v2.4.1

Released: 2026-08-12

Bug fixes

  • White region on Windows off-screen windows (#516) — a window created partly off-screen no longer stays white in the previously clipped area after you drag it into view. Each WM_MOVE requests a full present so newly exposed pixels are filled.

v2.4.0

Released: 2026-08-11

Highlights

  • TaoGpuRenderContext — in-process GPU on the scene's device. Map engines, 3D viewports, and charting can allocate render targets on the window's own Skia DirectContext and native device (Metal / ANGLE GLES / native EGL) with no second GPU, no shareable handle, and no per-frame cross-device copy. TextureView remains the contract for foreign producers. See GPU render context.
  • AwakeMode — keep the system awake without forcing the display. EnergyManager.keepAwake(AwakeMode.SYSTEM_ONLY) lets the screen saver and display sleep behave normally during long background work. keepScreenAwake() remains as a deprecated forwarder. See Keep the system awake.
  • Public ABI freeze. Published runtime modules run under Kotlin explicitApi() with kotlinx binary-compatibility-validator baselines (api/*.api); apiCheck is part of check / preMerge. Exception: decorated-window-jewel until BCV can read JVM 25 class files.

New features

  • windows.msi { perMachine } (#480) — install-scope DSL aligned with nsis { perMachine }. windows.perUserInstall is deprecated (inverted meaning) but still works when msi.perMachine is unset. MSI remains per-machine by default. See Build an MSI.

Improvements

  • Unified JUL logging and renamed tray log API (#491) — runtime modules log through java.util.logging; composeNativeTrayLoggingLevel → nucleusLoggingLevel / NucleusLoggingLevel (deprecated aliases retained).
  • Safer updater construction (#493) — provider validated at construction, config snapshotted, downloads staged privately instead of a predictable shared temp path. See Auto-update.
  • Windows outbound drag (#482) — DoDragDrop deferred off Compose pointer dispatch so outbound drag frames paint without reentrancy. See Drag and drop.

Bug fixes

  • macOS live-resize trembling (#476) — content no longer trails AppKit bounds during corner resize.
  • Windows interactive resize lag (#479) — VSync dropped through the modal resize loop so content tracks the border drag.
  • Frame-paced GPU through modal loops (#489, #505) — keep VSync on Windows move/resize and Linux resize bursts when the scene hosts TextureView imports or TaoGpuRenderContext consumers. See GPU render context.
  • macOS Metal render-thread leak (#495) — autorelease pool around every render-thread task.
  • LocalComposeSceneContext under DecoratedWindow (#499) — Popup / Dialog / DropdownMenu / Tooltip inside decorated window content no longer throw. See DecoratedWindow.
  • macOS overlay detach / focusable retain (#496), Wayland popup buffer_scale (#508), macOS scene density from the window's display (#509), zoom-button tiling hover menu (#511), RTL title-bar constraints while fullscreen (#512).

v2.3.2

Released: 2026-08-07

New features

  • HostedWindow / HostedDialog composition hosts (#473) — libraries and navigation open secondary windows without hard-coding Compose Desktop's AWT Window/Dialog or a specific design-system chrome. nucleusApplication provides LocalNucleusWindowHost / LocalNucleusDialogHost (defaults: DecoratedWindow / DecoratedDialog); override the host to inject Material, Jewel, or app chrome. See Hosted windows.

Bug fixes

  • Secondary window drag and system controls (#472) — re-provide LocalTaoWindow and LocalTitleBarInfo after bridging parent locals into a secondary Tao scene so title-bar drag, double-click maximize, and min/max/close bind to the child window. BasicTitleBar uses Modifier.windowDragArea(window) so drag does not depend on a parent LocalTaoWindow. See Open a window from composition and Drag areas.
  • Wayland popupFor CSD content origin (#474) — TaoWindow.setOuterPosition adds the parent hidden-titlebar CSD content origin for native Wayland popup overlays, so content-space coordinates (tab ghosts, HUDs) no longer drift by the theme shadow margin. In-scene popup layers no longer double-apply that offset. See DecoratedWindow parameters.

v2.3.1

Released: 2026-08-06

New features

  • XDG Desktop Portal parent for Tao windows (#466) — TaoWindow.xdgPortalParent(), x11PortalParent / x11WindowId, and exportXdgForeignHandle() / XdgForeignExport so FileKit and other portal clients can parent file choosers on X11 and Wayland (x11:<hex> / wayland:<token>). See Native file dialogs.
  • TaoWindow.nsWindowHandle on macOS (#469) — owning NSWindow* for sheet / dialog parenting (beginSheetModalForWindow:); distinct from nativeHandle which is the Compose host NSView*. See Native file dialogs.
  • Per-format compression for AppImage and Windows portable (#468) — linux.appImage { compressionLevel } and windows.portable { compressionLevel } override the root nativeDistributions.compressionLevel, so DEB/DMG can stay on Ultra while AppImage/portable use Normal or Store. See Build an AppImage and Portable mode.

Improvements

  • L1 GraalVM metadata expansion (#470) — richer ktor (client plugins, server, websockets), new androidx-sqlite-bundled pack, broader JDK FFM/VarHandle/Module coverage, AtomicInt / AtomicRef and kotlin.kotlin_builtins. See Automatic metadata.
  • Kotlin agent phantoms always dropped on cleanup (#470) — tracing-agent mapped types (kotlin.Any, kotlin.Int, FunctionN, collections) are removed during cleanupGraalvmMetadata without needing removeUnresolvable. See Clean up manual entries.

Bug fixes

  • KMP named JVM targets and orphan detection (#467) — project-class / orphan detection uses the application target's compilation outputs (jvm("desktop") → desktopMainClasses) instead of hardcoded jvm/main paths; nest-internal edges no longer hide real Room *_Impl classes. See Detect orphan project classes.
  • Linux NativeView opaque region (#471) — clear the full-surface opaque region while a NativeView is attached so GTK (e.g. WebKit) shows through the EGL subsurface again after #447. See Native views.
  • Linux NativeView overlay click offset (#471) — consumeOverlayPointerEvents maps pointer events into content coordinates (window bin), matching CSD shadow-margin normalisation. See Overlay Compose content.

v2.3.0

Released: 2026-08-06

Highlights

  • TextureView — external GPU textures in the Compose scene. Composite decoder or engine frames with real z-order, clipping, and graphicsLayer transforms, and no CPU frame copy. Windows uses ANGLE/D3D11 shared handles, macOS Metal/IOSurface, Linux DMA-BUF/EGLImage (including planar YUV I420/YV12). Frame updates go through TextureViewController.markFrameAvailable (draw-only invalidation). See TextureView, platform sources, and how it works.
  • Per-platform notification options on the common DSL. notification { } accepts linux { }, macos { }, and windows { } blocks applied only on the matching OS (urgency, interruption level, toast scenario, …). See Platform-specific options.
  • Differential auto-update downloads. updater-runtime reassembles installers from the previous artifact plus HTTP range requests for changed blocks (electron-builder block maps). On by default via differentialDownload. See Differential downloads.
  • LocalNucleusApplicationScope and receiver-less windows. Open secondary DecoratedWindow / DecoratedDialog from deep in the composition without threading the application receiver. See Open a window from composition.
  • Live isSystemInDarkTheme() under nucleusApplication. Compose's LocalSystemTheme is fed from darkmode-detector, so official and library call sites track OS theme changes. See Bridge to Compose isSystemInDarkTheme.

New features

  • TextureView + platform source factories (#429 / #338) — TextureView, TextureViewController, rememberTextureViewController, nucleusD3D11SharedTextureSource, nucleusIOSurfaceTextureSource / nucleusMetalTextureSource, nucleusDmaBufTextureSource / nucleusEglImageTextureSource / nucleusYuvDmaBufTextureSource, plus Linux acquire-fence signalling. Samples: mediafoundation-demo, avfoundation-demo, gstreamer-demo. See TextureView.
  • Platform blocks on notification { } (#436 / #397) — LinuxNotificationScope (urgency, category, transient, resident, expireTimeout), MacNotificationScope (interruptionLevel, relevanceScore, subtitle), WindowsNotificationScope (scenario, duration). See Platform-specific options.
  • Differential downloads in NucleusUpdater (#428) — uses published .blockmap companions (NSIS, macOS ZIP/DMG) and AppImage-embedded maps; DownloadProgress.isDifferential; UpdaterConfig.differentialDownload (default true) and cacheDir. See Differential downloads and Builder fields.
  • LocalNucleusApplicationScope (#449 / #438) — CompositionLocal provided by nucleusApplication on AWT and Tao; receiver-less DecoratedWindow / DecoratedDialog overloads. See Open a window from composition.
  • System theme bridge (#463) — ProvideNucleusSystemTheme wires isSystemInDarkMode() into LocalSystemTheme; darkmode-detector is an api dependency of nucleus-application. See Bridge to Compose isSystemInDarkTheme.
  • Exact reachability metadata on the GraalVM dev loop (#453 / #440) — graalvm { exactReachabilityMetadata = ExactReachabilityMetadata.APP_PACKAGES } (default) on runGraalvmNative only; -Pnucleus.graalvm.missingRegistration=warn|exit|throw. See Exact reachability on the dev loop.
  • Orphan project-class detection (#460 / #441) — detectOrphanProjectClasses (default true) registers public no-arg constructors for reflectively-only types (Room *_Impl, …); opt-in reflectionForProjectClasses. See Detect orphan project classes.
  • GraalVM innovation channel defaults to 25.2 (#432) — GraalvmChannel.INNOVATION resolves to 25i2. See Provision the toolchain.

Improvements

  • Silent DEB/RPM self-update packaging (#457) — nucleus-update-helper ships in the package payload so dpkg -S / rpm -qf attribute it; afterInstall only installs polkit; detached *.asc uploaded next to packages. See Passwordless updates on Linux.
  • AppImage post-update relaunch (#465 / #178) — replace-in-place while the old mount holds, clean environment on restart (APPDIR / LD_LIBRARY_PATH unset). See Supported formats.
  • Linux portal global hotkeys (#455 / #264) — stable shortcut_id from modifiers+keyCode, debounced BindShortcuts, GlobalHotKeyManager.commitRegistrations() and portalShortcutId. See Linux portal registrations.
  • Unresolvable cleanup metadata reporting (#461 / #439) — cleanupGraalvmMetadata reports types that resolve nowhere; optional -Pnucleus.graalvm.cleanup.removeUnresolvable=true. See Clean up manual entries.
  • Metadata dirs as nativeImageCompile inputs (#459 / #431) — editing reachability metadata invalidates the native image task instead of serving a stale binary.
  • mlProfileInference = false gated on Oracle (#458 / #452) — community toolchains skip -H:-MLProfileInference (unrecognized) with a warning. See graalvm reference.

Bug fixes

  • Outbound OS drag freezes the Tao host (#434) — Windows, macOS, and Linux keep the render loop alive during DoDragDrop / AppKit / GTK drag via a shared DragPump. See Drag and drop.
  • Wayland resize flash / shift (#462 / #444) — paint at last drawable size until wl_egl_window_resize applies on the next present. See Wayland.
  • Linux Compose subsurface opaque region (#447 / #446) — wl_surface.set_opaque_region with transparent corners preserved for the CSD shadow.
  • Linux jpackage SIGSEGV on long classpaths (#456 / #454) — after jpackage, multi-entry app.classpath is collapsed into a pathing jar (JDK-8380085 workaround).
  • FSEvents roots reached through a symlink (#448 / #442) — macOS temp dirs under /var → /private/var deliver events again. See Filesystem watcher.
  • SLF4J no longer forced to build-time init (#450 / #443) — avoids image-heap failures with run-time SLF4J 2.x backends; opt in via buildArgs if you want build-time init. See Set build arguments.
  • runWithNativeAgent toolchain mismatch (#451 / #437) — forks through JavaLauncher instead of a conflicting executable property.
  • Linux popup / tray panel EGL neutrality (TextureView series / #350) — popup layers and tray panels no longer break the window EGL binding; Wayland popups offset by CSD content origin.

Samples

  • mediafoundation-demo, avfoundation-demo, gstreamer-demo — end-to-end video into TextureView on Windows, macOS, and Linux (native-image builds for the GStreamer sample).

v2.2.0

Released: 2026-08-03

Highlights

  • Window scaffold and chrome primitives. Full-window layouts without giving up native drag, caption zones, or traffic-light insets. Compose content through WindowScaffold with TitleBarPlacement.Docked or Overlay, and rebuild chrome from public APIs: Modifier.windowDragArea / noWindowDrag, WindowControls, macOS windowGlassRegion, Windows 11 WindowsBackdrop (Mica / Acrylic / MicaAlt), WindowBackground, and WindowAppearance. See Window scaffold, chrome primitives, and platform materials.
  • GraalVM tasks mirror the JVM pipeline. runGraalvmNative is the fast dev loop (-Ob quick-build); full optimization lives on runGraalvmNativeDistributable. New createGraalvmNativeDistributable and packageGraalvmNativeDistributionForCurrentOS match createDistributable / packageDistributionForCurrentOS. The native app folder lands under compose/binaries/<app>/graalvm-app. See Tasks & CI — public surface and output locations.
  • Type-safe garbage collector selection. garbageCollector = GarbageCollector.Z on the JVM path and graalvm { garbageCollector = NativeImageGarbageCollector.G1 } for native images. G1 is Oracle GraalVM + Linux only and degrades with a warning elsewhere. Heap-percent flags follow the selected collector. See Choose a garbage collector and the Gradle DSL.

New features

  • WindowScaffold + TitleBarPlacement (#412, #129) — design-system-agnostic chrome host. Docked keeps the classic bar-above-content layout; Overlay fills content to the full window height and hands the measured bar height back as top PaddingValues. Optional autoHideInFullscreen and passThroughToContent on Overlay for immersive and hit-test-through title bars (#423). See title bar placement.
  • Chrome primitives for custom title bars (#412) — Modifier.windowDragArea / noWindowDrag, WindowControls + WindowControlsRenderer, WindowDoubleClickAction, and LocalWindowChromeInsets so toolbars can place content around traffic lights and KDE edge padding. See chrome primitives, drag areas, and window controls.
  • Platform materials (#412) — Modifier.windowGlassRegion (macOS System Settings-style sidebar/content/inspector panes), WindowsBackdrop (DWM Mica / Acrylic / MicaAlt with tier pin), WindowBackground (clear colour from inside the content tree), WindowAppearance (force light/dark on native surfaces). See platform materials, macOS glass, and Windows 11 backdrops.
  • DecoratedWindow(transparent = true) on Tao (#419) — full-window transparency for ghost overlays. Pair with undecorated = true for borderless see-through windows. AWT is out of scope; call the Tao DecoratedWindow (e.g. via taoApplication). See transparent overlays and DecoratedWindow on Tao.
  • Native GTK CSD drop shadow (#422) — Linux client-side decorations use the hidden-titlebar pattern so the shadow tracks the window correctly, including during interactive moves. See DecoratedWindow notes.
  • AccessKit on Windows (#420) — Windows accessibility now shares the AccessKit wire path with Linux (UIA provider). AccessKit crates bumped across both platforms; Linux AT-SPI probes match Windows severity. See Accessibility.
  • garbageCollector on the JVM and native DSL (#408) — GarbageCollector (SERIAL, PARALLEL, G1, Z, SHENANDOAH, EPSILON) for HotSpot; NativeImageGarbageCollector (SERIAL, G1, EPSILON) for --gc=. Unset keeps JVM ergonomics / native-image Serial. See Choose a garbage collector and Gradle DSL — GraalVM.
  • NucleusApplicationScope implements Compose ApplicationScope (#372) — libraries scoped to plain ApplicationScope (for example ComposeNativeTray) resolve inside nucleusApplication { } without a separate overload set. See DecoratedWindow notes.

Ecosystem (separate repos)

Published around the 2.2 line; versioned independently of Nucleus:

Improvements

  • macOS .app bundle name consistency (#409) — every artifact (DMG, ZIP, …) ships the same bundle name derived from appName, so auto-update no longer deletes one path and fails to open another when appName != packageName.
  • Glitch-free Windows fullscreen toggle and macOS fullscreen transition ramp parity (#412 / #413).
  • macOS display-scale follow when the window hops between displays (#412). See Per-monitor HiDPI.

Bug fixes

  • NsView setBounds / resize on layout changes (#421) — embedded macOS native views update their frames when Compose layout changes. See Native views.
  • Scheme-only deep link URIs (#425 / #414) — DeepLinkHandler accepts opaque forms such as myapp:?query=… (common from xdg-open), not only scheme:// authority forms. Windows drive paths are still rejected. See Deep links — how it works.
  • Hot-reload gate matches the published Tao artifact name (#424 / #415).

v2.1.10

Released: 2026-07-26

Bug fixes

  • Resolve JDK library jars on JMOD-less JDKs (#407) — ProGuard release packaging failed on JDKs that ship without a jmods directory (Temurin 25+ after JEP 493). The task falls back to extracting the run-time image with jimage extract and passes one class root per module. JDKs that still ship jmods keep the previous path.
  • Stop CSD shadow tracing while the window is dragged (#393 / #383) — the Linux client-side-decoration shadow no longer leaves a trail during interactive window moves.

v2.1.9

Released: 2026-07-26

Bug fixes

  • Survive obfuscation for all JNI bridges and coroutines (#405) — with obfuscate = true on by default since 2.1.6, release builds crashed at runtime. The module-by-module JNI keep list is replaced by generic rules that keep the names of any dev.nucleusframework class declaring native methods plus *Bridge/*Jni objects whole, fixing UnsatisfiedLinkError in the modules the list missed (autolaunch, launcher-linux, notification-linux/macos, service-management-macos, system-info, taskbar-progress, graalvm-runtime). Dropping allowoptimization from the kotlinx.** safety rules fixes a VerifyError in ChannelsKt.trySendBlocking; shrinking stays fully active. The system-color and media-control native builds now invoke build.bat by absolute path like every other module.

CI

  • Microsoft JDK on Windows, Temurin elsewhere (#406) — replaces JBR as the setup-nucleus JDK. The Microsoft Build of OpenJDK is the only mainstream distribution shipping GA windows-aarch64 builds for current LTS majors, and decorated-window-jbr needs no JBR at build time since the JBR API comes from the org.jetbrains.runtime:jbr-api artifact.

v2.1.8

Released: 2026-07-26

New features

  • aotCache { } configuration block (#404) — exposes the AOT cache portability trade-off: compatibility = NATIVE restores the JDK default for locally-built or fleet-homogeneous deployments, and extraTrainingJvmArgs is an escape hatch for the training run. enableAotCache keeps working as a shorthand.

Bug fixes

  • CPU-portable AOT cache by default (#404) — the JDK 25+ AOT cache also stores machine code (i2c/c2i adapter blobs) emitted for the training machine's CPU features, and HotSpot records no ISA information for that region before JDK 27, so a cache built on a CI runner died with EXCEPTION_ILLEGAL_INSTRUCTION/SIGILL on a narrower CPU. The cache now defaults to metadata only (-XX:-AOTAdapterCaching on both the training run and the shipped launcher), keeping the class loading and linking gains and leaving the JIT untouched at runtime. compatibility = NATIVE warns at build time when the bundled runtime predates the CPU-feature validation added after JDK 26.

v2.1.7

Released: 2026-07-26

Breaking changes

  • GraalVM Community Edition is now the default toolchain (#403) — the auto-provisioned toolchain was Oracle GraalVM, governed by the GraalVM Free Terms and Conditions. The GFTC only allows redistributing the Program provided you do not charge your licensees any fees associated with such distribution or use, and the plugin copies GraalVM runtime libraries next to the packaged executable — so that clause silently reached every app built with Nucleus. GraalVM CE (GPLv2 + Classpath Exception) carries no such restriction and is now the default via GraalvmDistribution.COMMUNITY. Oracle GraalVM stays available behind an explicit opt-in that logs a licensing warning. -O3, --pgo and -H:AdvancedObfuscation degrade to a warning under a community toolchain, and runWithPgoInstrument is not registered at all. The distribution is embedded in the install directory and the CI cache key so an existing Oracle download is never reused, and a GRAALVM_HOME whose distribution disagrees with the DSL is ignored.

Improvements

  • Lazy toolchain provisioning (#403) — every toolchain provider now resolves in doFirst, so an IDE sync or gradlew tasks no longer downloads a JDK.

Bug fixes

  • Survive GitHub API rate limits when resolving Community Edition (#403) — a pinned version ("25.0.2") now constructs the download URL directly instead of listing releases, making the documented pin-a-version workaround work offline; the native-image build steps pass GITHUB_TOKEN so the releases API call is authenticated. Floating versions ("25", "25i1") still need the API.
  • Decode Mach-O cpu_type in the file's own byte order (#402) — MH_CIGAM_64 is the byte-swapped magic that every little-endian macOS dylib starts with on disk, so cpu_type was read swapped and every thin dylib reported arch=UNKNOWN. Cross-checked against lipo on 57 real dylibs: 44 decoded wrong before, all 57 are correct now. Also recognizes FAT_MAGIC_64 alongside FAT_MAGIC, and hoists the path-plus-header merge into NativeLibArchDetector.detectEntry so the strip transform shares it.
  • Extract the target-arch native lib, not the first match (#401) — native libs whose JAR path carries an arch but no OS token were extracted for the wrong architecture: detectInfo discarded the path-detected arch whenever the OS was UNKNOWN, and the 64-byte header buffer was too small to reach the PE machine field. An ARM64 DLL could therefore win the flattening race on an x64 target and fail to load. detectInfo now merges path and header information field by field and reads 4096 header bytes. Fixes #399.

v2.1.6

Released: 2026-07-23

New features

  • Advanced obfuscation for native images (#389) — graalvm { advancedObfuscation = true } passes -H:AdvancedObfuscation= (Oracle GraalVM only, gated on the resolved toolchain and warning otherwise) so the symbol names baked into the binary — stack traces, heap dumps, Class#getName, strings — are obfuscated. Reflection and JNI names from the reachability metadata are preserved automatically, so it is JNI-safe by construction. -H:+UnlockExperimentalVMOptions is passed alongside it, and --enable-sbom=export keeps the SBOM as a build artifact instead of embedding it and re-leaking the dependency list obfuscation hides.
  • Obfuscate-safe ProGuard rules (#389) — when proguard { obfuscate = true }, a bundled nucleus-obfuscation-safety-rules.pro is injected automatically to preserve framework names (androidx.**, kotlinx.**) while still allowing shrinking and optimization, so the Compose and Kotlin runtimes survive renaming and only the app's own packages get obfuscated. Prevents ClassNotFoundException: androidx.compose.runtime.Composer. Not injected when obfuscation is off.
  • Desktop-appropriate default max heap for native images (#390) — native-image's Serial GC defaults the max heap to 80% of physical RAM, far above a desktop app's norm. Nucleus now bakes -R:MaximumHeapSizePercent=25 for parity with HotSpot's MaxRAMPercentage, configurable via graalvm { maxHeapSizePercent = N } or an absolute graalvm { maxHeapSize = "2g" } (which takes precedence). Both are defaults only, still overridable at runtime with -Xmx.
  • --enable-native-access=ALL-UNNAMED baked into native images (#390) — native modules call System.loadLibrary from the unnamed module, which since JDK 24 (JEP 472) emits a restricted-method warning and will be blocked in a future release. The JVM run path already passed the flag; the native binary now starts clean too.
  • Pause the render loop while the window is minimized (#384) — each platform scene host gates its frame body on window.isMinimized before the frame-clock tick, so Compose animations park instead of recording and presenting into a hidden surface. This matters most on Windows, where ANGLE's flip-model swapchain never reports occlusion and there is no vsync back-pressure while minimized; restore re-kicks a redraw explicitly.
  • Jewel 0.39 and IntelliJ icons 262 (#395) — bumps Jewel to 0.39.1-262.9437.29, adds the intellij-icons-api/impl dependencies that Jewel 0.39's IntUiTheme needs, and registers the build-time initialization and reflection entries required to avoid a Method.invoke segfault under SVM.

Bug fixes

  • Scope JNI local refs on permanently-attached upcall threads (#387) — object-creating upcalls on permanently attached threads never had their local frame popped, leaking local refs for the life of the process. The touch path was the worst: dispatch_touch allocated three long[] per event, so a sustained touch drag grew the JNI local reference table until it overflowed and aborted the JVM. Each such upcall body is now wrapped in env.with_local_frame(...), covering the Linux touch and drop paths, macOS deep links, and the macOS/Windows accessibility action trampolines.
  • Clear pending JNI exceptions after accessibility and deep-link upcalls (#385) — the accessibility and deep-link native-to-JVM callbacks invoked NativeTaoBridge.dispatch* without exception_check/exception_clear, unlike every other dispatch path. A throwing Kotlin handler left the exception pending on the long-lived callback thread (AT-SPI/zbus, UIA, AppKit), making the next JNI call on that thread undefined behavior and, under panic = "abort", a process abort with an unrelated-looking crash site. The guard is now applied to all 18 upcall sites.
  • Migrate -H:IncludeResources to reachability-metadata globs (#389) — the deprecated option warned at build time; the resource inclusion patterns moved into the module's reachability-metadata.json with identical semantics. The blanket font and icon globs are deliberately kept: they cover resources bundled inside library JARs, such as Jewel's SVG icons, which per-root autoIncludeResources does not reach.

Improvements

  • Shared scene drag-and-drop extracted into TaoSceneDnD (#386) — deduplicates the three platform scene hosts into one shared file, preserving the Linux-specific behavior where has_files reflects the presence of a text/uri-list target.
  • Jewel-specific native-image metadata moved into decorated-window-jewel (#395) — the Jewel build-time initialization and reflection entries ship only with Jewel consumers; graalvm-runtime keeps only the generic slf4j build-time init.

v2.1.5

Released: 2026-07-21

New features

  • Auto-include the project's own resources in native image (#379) — GraalVM native-image builds now bundle the application's own resources automatically, not just framework and Compose resources.
  • Apply dependencies' ProGuard consumer rules (#380) — ProGuard now applies the META-INF/proguard keep rules shipped inside dependency JARs, so libraries that provide their own rules work without manual configuration.

Bug fixes

  • Tao audit hardening (#378) — native memory and lifecycle fixes, expanded test coverage, a window-host refactor, and improved logging across the Tao backend.
  • Reimplement the Linux CSD drop shadow via a dedicated wl_shm subsurface (#381, #382) — replaces the 2.1.0 client-side-decoration drop shadow with a Wayland subsurface that renders correctly.

v2.1.4

Released: 2026-07-19

Bug fixes

  • Apply TitleBarStyle color overrides to caption buttons (#377) — the Tao backend now honors title bar color overrides on the window control (caption) buttons.

CI

  • Cache native builds, merge per-platform artifacts, and cancel superseded runs (#375).
  • Tiered Tao test infrastructure (#373) — an offscreen scene harness plus a headful window suite for decorated-window-tao.

v2.1.3

Released: 2026-07-18

Bug fixes

  • Load GTK with RTLD_LOCAL on Linux (#368) — stops GTK symbol interposition from clobbering SQLite in the Tao backend.
  • Own the app/runtime directories in RPM packages (#369) — the jpackage launcher now finds its .cfg file.
  • Run the Windows outside-click hook on a dedicated native thread (#370) — the WH_MOUSE_LL low-level mouse hook no longer shares a thread, fixing missed outside-click detection.

v2.1.2

Released: 2026-07-17

Bug fixes

  • Release resize-drag native memory on Windows (#365) — the Tao backend frees the native memory allocated for a resize drag when the drag ends.

v2.1.1

Released: 2026-07-17

Bug fixes

  • Use an @argfile on Windows for native-image compilation (#364) — avoids the Windows command-line length limit during GraalVM native builds.

v2.1.0

Released: 2026-07-17

Highlights

  • Oracle GraalVM is now the recommended and default toolchain. Nucleus downloads and caches it automatically (toolchain { } — Innovation by default, channel = GraalvmChannel.LTS for LTS), and the default Tao backend builds native images on it. Oracle GraalVM (the edition formerly called Enterprise) unlocks the advanced native-image features Nucleus builds on — Profile-Guided Optimization, -O3, and ML-inferred profiles — that the Community editions do not provide. Only the deprecated AWT backend still requires a local BellSoft Liberica NIK install. No setup-graalvm step; GRAALVM_HOME still takes precedence.
  • Compose Hot Reload works out of the box. Apply the org.jetbrains.compose.hot-reload plugin and run hotRun; Nucleus resolves the entry point from nucleus.application.mainClass, with no ComposeHotRun configuration. hotDev without -PclassName behaves like hotRun. Hot reload was not functional in 2.0.
  • Built-in Profile-Guided Optimization. Record a profile with runWithPgoInstrument, commit it, and later native builds apply it automatically (--pgo). Oracle GraalVM only.

New features

  • Compose Hot Reload on the Tao backend. The Hot Reload dev-tools sidecar now follows Tao-backed windows, not just AWT, via a reflective bridge driven by Tao window callbacks.
  • Type-safe march and optimization. march is now NativeImageMarch (NATIVE / COMPATIBILITY) with a per-platform default; optimization is NativeImageOptimization (QUICK_BUILD, NONE, LEVEL_1..LEVEL_3, SIZE). New allCharsets and mlProfileInference toggles.
  • Oracle GraalVM on macOS. Native images on the default Tao backend build on Oracle GraalVM on macOS (arm64); the deprecated AWT backend still requires BellSoft Liberica NIK. Intel Macs fall back to Liberica NIK.
  • CompressionLevel.Ultra. New compression level that additionally recompresses the macOS DMG with LZMA (ULMO, ~20% smaller) and the Linux .deb with xz -9e (~25% smaller). Maximum no longer runs these post-processing steps.
  • Themed clear color and Linux CSD drop shadow. Tao hosts paint a themed clear color; Linux decorated windows replicate the GTK client-side-decoration drop shadow.

Improvements

  • Smaller native images. optimization = NativeImageOptimization.SIZE (-Os) plus automatic executable stripping on Linux and macOS reclaim tens of MB.
  • --enable-native-access=ALL-UNNAMED by default. Added to the default JVM args (run task and packaged launcher) so JNI native access on JDK 24+ (JEP 472) no longer warns.
  • Auto-download the GraalVM toolchain removes the manual NIK install previously required for native builds.
  • Reachability metadata repository default bumped to 1.1.4 (from 0.10.6).
  • ProGuard default version bumped to 7.9.1.

Bug fixes

  • Align Compose Hot Reload version with the Compose-bundled release and harden the Tao bridge — a version skew now stops the sidecar for that window instead of crashing the app.
  • Drop the native shadow on macOS popup panels in the Tao backend.

v2.0.7

Released: 2026-07-14

Bug fixes

  • Default march to compatibility for portable binaries (#344) — GraalVM native images now target a baseline CPU by default instead of the build machine, so distributed binaries run on older hardware.

v2.0.6

Released: 2026-07-14

Bug fixes

  • Bundle libjsound in native image (#341) — Java Sound now works in GraalVM native-image builds.
  • Run Windows WinRT toasts on a dedicated MTA thread (#342) — fixes notification delivery on Windows.

v2.0.5

Released: 2026-07-14

Bug fixes

  • Dispatchers.Main works without a running Tao loop (#337) — coroutine main dispatch no longer requires an active Tao event loop.

v2.0.4

Released: 2026-07-13

Bug fixes

  • cleanupNativeLibs works for Kotlin Multiplatform projects (#335).

v2.0.3

Released: 2026-07-13

New features

  • dockIconFollowsWindows (#334) — control dock-icon visibility for menu-bar / tray apps on macOS.

v2.0.2

Released: 2026-07-13

Bug fixes

  • Apply org.jetbrains.compose alongside Nucleus (#331) — the Nucleus plugin no longer conflicts when the JetBrains Compose plugin is applied to the same project.

v2.0.1

Released: 2026-07-13

Bug fixes

  • Pre-Tahoe traffic lights + macOS menu ProGuard rules (#310) — fixes window traffic-light buttons on macOS versions before Tahoe and adds the missing ProGuard rules for the macOS menu.

v2.0.0

Released: 2026-05-14

Highlights

  • Plugin and namespace rename. id("dev.nucleusframework"), Maven group dev.nucleusframework, Kotlin root dev.nucleusframework.*. See migrate from 1.x.
  • nucleusApplication { } umbrella entry point. Single-instance lock, deep-link delivery, GraalVM init, AOT training, AutoLaunch and AUMID priming — all automatic.
  • Tao backend (decorated-window-tao). No-AWT path driven by the Rust tao crate. Wayland-native, multi-touch, pen pressure + tilt, native popups, drag-and-drop with diagnostics, embedded NativeView for any NSView / HWND / GtkWidget.
  • DecoratedWindow / DecoratedDialog as NucleusApplicationScope extensions — backend-agnostic dispatch, MaterialDecoratedWindow, JewelDecoratedWindow follow the same shape. CompositionLocals bridged across the Tao scene boundary.
  • macOS Liquid Glass via vtool patching. LC_BUILD_VERSION set to SDK 26 on the launcher so any JDK can opt into Liquid Glass at runtime — no Xcode 26-built JDK needed. Layered .icon directories supported on macOS 26+.
  • GraalVM Native Image: alpha. Static bytecode analyzer for reflection metadata, CleanupGraalvmMetadataTask, per-library L1 metadata with classpath-conditional filtering. End-to-end packaging pipeline (DMG, NSIS, DEB) for native images.
Was this page helpful?
Edit on GitHub

Last updated on