Skip to content

[release] Ryoku 1.1.0 - #884

Merged
neur0map merged 123 commits into
mainfrom
release/1.1.0
Nov 17, 2026
Merged

neur0map merged 123 commits into
mainfrom
release/1.1.0

Conversation

@neur0map

@neur0map neur0map commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Ryoku 1.1.0: the November contributor pull requests (Ethernet, VPN, DNS and IP settings in Connections, per-display tiling, the lock screen password retry switch, fingerprint on admin prompts with polkit 128, DNS under systemd-resolved, Wi-Fi profile fixes, dual-battery readouts, tray names, Thunar's terminal, music widget memory, icon loads and the QML collector), the fixes for the issues filed against 1.0.9 (keyboard layouts on the lock and sign-in screens, update notification choice, doctor dismissals, brightness on external monitors, Bluetooth journal noise, matugen paths, the Python bar palette, Rashin chats and agents, screen recording above the main display, the store's rice routing and MangoHud crash), Game Mode pausing the live wallpaper, Shima's weather matching the launcher, and the Void package pin moved past Void's tar and libtheora rebuilds so the Void repository publishes again. VERSION is already 1.1.0 on unstable-dev, so this carries no bump commit.

kiosvantra and others added 30 commits November 10, 2026 15:12
Keep optional authentication retries disabled by default. Retry a waiting password conversation on deliberate input without overriding typed passwords or security-key ownership.

Note: New: optionally retry a waiting lock password prompt
Only the local video scan made the small preview clip, so Wallpaper
Engine video cards never animated. Clips run on the thumbnail job pool
and are skipped while video previews are off.

Note: Fixed: Wallpaper Engine video cards animate in the picker (#807)
beta.23 draws broken geometry in some Wallpaper Engine scenes that
beta.29 renders correctly. Its text renderer links FreeType, which the
upstream package metadata leaves out, so every edition now requires it.

Note: Fixed: Wallpaper Engine scenes no longer draw broken black shapes
skwd-paper 1.0.0-beta.29 retired its second video engine along with the
engine and frame_rate source fields. Ryogami never set them.
The desktop surface sits above the scene and takes every pointer event,
so parallax and mouse effects never moved. The shell reports hover
positions and ryogami writes them to the scene renderer's stdin.

Note: Fixed: Wallpaper Engine scenes follow the cursor over the desktop (#808)
The beta.29 bump rewrote the Fedora source manifest and dropped the FFmpeg 9.0.1 line, so prepare-srpms refused the tarball and the Fedora publish failed.
A card that changed restarted the grid's 16 ms lay timer, so a page whose
cards fill in from a burst of backend replies kept postponing the lay
and its cards sat stacked over each other until the burst ended. Start
the timer only when idle instead: the grid lays within a frame of the
first change and again for whatever arrived during it.

Add `settled`, true once no lay is pending and none has run for 48 ms,
so a host that shows a page only when its cards stand still can wait on
it instead of watching their geometry.
A section switch showed both pages at once and then snapped:

- Pages paint no background, so the outgoing page stayed drawn under the
  incoming one through its slide, then vanished in a single frame.
- On a framed to full-width switch the outgoing page took the incoming
  page's frame before it left.
- The incoming page appeared before its card grids had laid out, so its
  cards sat stacked over each other for several frames.

Hide the outgoing page as the incoming one slides in, and keep the frame
of the page on screen until the switch completes. Reveal a fresh page
once every CardColumns on it reports `settled` and the page is not still
fetching (`loading`, which Graphics & Power now exposes for its first
backend reads), capped at 250 ms. The waiting page stays visible at
opacity 0 and takes no input, because Qt lays out only visible items: a
page hidden while it waited reported settled cards that re-laid the
moment it appeared.

Measured at 120 fps on this branch: stock showed both pages for about
170 ms on each switch and the Animations page stacked for 20 frames; now
no frame shows two pages or stacked cards.

Note: Fixed: switching Hub sections no longer flashes both pages
Every section switch loaded the page fresh: two loaders took turns, so
going back to the page just left meant a new async load, and a page
whose cards take a while to lay (Input, Animations, Graphics & Power)
held the switch for a few hundred ms each time.

Give each page its own loader and keep a left page loaded for 20 s, up
to five, so switching back reveals it at once. Pages read their data
when they load and some poll while loaded, so the window is short and
a page left longer is unloaded and reloads fresh. A hidden page is not
visible, so polling gated on visibility pauses while it waits.

Measured at 120 fps: a revisit shows the new page in 100 to 133 ms and
finishes in 200 to 250 ms (stock: 112 ms and 379 ms medians, with both
pages on screen in between). The Hub holds about 130 MB more while five
pages are kept.

Update the page-swap notes in Hub.qml and docs/ui-ux.md, which still
described two loaders and a crossfade.

Note: New: going back to a Hub section you just left is instant
polkit 128 ships its PAM stack only as /usr/lib/pam.d/polkit-1 and no
longer installs /etc/pam.d/polkit-1. PAM reads the vendor file whenever
/etc has none, but `ryoku-host auth fingerprint` read only /etc, so the
Hub's switch for the admin pop-up failed with "read
/etc/pam.d/polkit-1: no such file or directory".

Read a service's stack from /etc, or from the vendor directory when /etc
has no file of that name. Turning fingerprint on seeds /etc from the
vendor stack with the fingerprint line on top; PAM prefers /etc, so the
copy changes nothing else. Turning it off removes the /etc copy again
when it is the vendor stack once the line is gone, so the service
follows the vendor file through package updates; a copy with local
edits stays. Status reads the same way, and VendorPAMDir (default
/usr/lib/pam.d) keeps the tests off the host.

Note: Fixed: fingerprint for the admin pop-up can be turned on with polkit 128
wifiForget, wifiSetAutoconnect, ssidSaved and ssidAutoconnect each took
the first saved profile whose SSID matched. NetworkManager names a
second profile for an SSID "<ssid> 1", and an imported one can carry
any name, so Forget in the bar popout, the sidebar Wi-Fi card or
orpheus left the others behind and the network still read as saved,
and turning auto-reconnect off left them rejoining.

Collect every stored profile that joins the SSID (wifiProfiles), leaving
out a hotspot (mode ap) that shares the name, which savedConn now
records. Forget deletes all of them, the autoconnect toggle flips all of
them, and the network reads as autoconnecting while any one does. Hub
Connections already matches profiles by SSID.

Note: Fixed: Forget in the bar removes every saved profile of a Wi-Fi network
The shell daemon already switches WireGuard tunnels and NetworkManager
VPN profiles and sets the system DNS, and the bar's menus use it, but
the Hub had no place for either, so people reached for nmcli.

Add two Connections tabs, each in its own file beside Phone:

- VPN lists the saved WireGuard tunnels with on/off, import from a
  .conf (the system file dialog) and remove behind a confirming second
  tap, and the NetworkManager VPN profiles with on/off, their plugin and
  their address once connected.
- DNS picks the resolver: DHCP, Cloudflare, Google or custom servers,
  showing the servers in use and the daemon's error when a change is
  refused.

Both read the daemon `network` topic and call `network.*` through a new
NetworkTopic singleton, two sockets like Settings, so the Hub and the
bar never disagree. `ryoku-shell hub open vpn` and `dns` open the tab,
as `phone` already did.

Note: New: Hub Connections has VPN and DNS tabs
ryoku-dns wrote NetworkManager [global-dns] and reloaded it. NetworkManager
stores that, but with its systemd-resolved backend it keeps pushing each
connection's own DNS to resolved and never the global servers, so the
bar's DNS picker changed nothing: with Cloudflare chosen, resolved still
sent every query to the router (checked with resolved's debug log).

When systemd-resolved is running, also write a resolved drop-in that
makes the servers its global DNS for every domain (Domains=~.), set
dns=none so NetworkManager stops pushing connection DNS, and revert the
links so what it already pushed goes. dhcp removes both files and
NetworkManager pushes connection DNS again. [global-dns] is still
written, so the daemon keeps reading the choice back; without resolved
nothing changes.

Live, with resolved's log: Cloudflare sent queries to 1.1.1.1, Google
to 8.8.8.8, custom 9.9.9.9 to 9.9.9.9, and dhcp back to the router.
tests/ryoku-dns.sh covers both backends, the reload order and a refused
server.

Note: Fixed: choosing a DNS provider now changes the DNS the system uses
Add network.ipGet and network.ipSet for the IPv4 part of a saved
profile: DHCP, or a manual address, gateway and DNS servers. DNS, when
set, replaces what DHCP hands out (ignore-auto-dns) and is written both
as dns-data and as the older packed array, so every NetworkManager
release reads the same servers; the deprecated address mirrors are
dropped as the other profile edits already do.

On a connection that is up, ipSet reapplies the device and puts the old
ipv4 settings back after 20 s unless network.ipConfirm keeps the new
ones; network.ipRevert undoes at once. A wrong address or gateway that
cuts the machine off, or a Hub closed mid-change, therefore undoes
itself. A change on a connection that is down waits for its next
connect.

Tests cover reading manual, DHCP and legacy-DNS profiles, writing manual
settings and switching back to DHCP, and refusing a bad address, a
gateway outside the subnet and an IPv6 DNS server. Live on a dummy
interface: the address changed, reverted after 20 s unconfirmed, held
when confirmed, and undid at once on ipRevert.
Note: Fixed: Exo terminal launches follow the Hub-selected terminal.
A saved Wi-Fi network's IP settings take nmcli to change. An IP settings
button beside Auto-reconnect opens a box under the network: DHCP or a
manual address and gateway, and DNS servers, through the shell daemon's
network.ip* calls. A change on the network in use reverts after 20
seconds unless Keep is pressed; Revert now undoes it at once.

The Wi-Fi list rebuilds its rows on every scan update, so the box keeps
its edits not applied yet, the field being typed in and a running revert
in NetworkTopic and picks them up when it is rebuilt. Opening it anew
starts from the saved settings.

Note: New: change a saved Wi-Fi network's IP address, gateway and DNS in Connections
The network topic now lists each wired adapter (state, speed, address and
the profile in use) and the saved Ethernet profiles, and
network.ethernetConnect, ethernetDisconnect and ethernetSetAutoconnect act
on them. A wired call refuses a Wi-Fi or VPN profile and any adapter that
is not wired, so it can never switch the wrong link.
Wired adapters had no place in the Hub. Each adapter now gets a card
with its link (profile, speed and address, or No cable), Connect or
Disconnect, the saved profile to use when there are several,
Auto-connect, and the profile's IP settings, always shown and the same
box a saved Wi-Fi network has. It reads the daemon network topic and
calls network.ethernet* through NetworkTopic; ryoku-shell hub open
ethernet opens the tab. Each visit starts from the saved settings.

Note: New: an Ethernet tab in Connections to connect a wired adapter and set its IP address
A WireGuard tunnel or VPN profile could only be switched and removed.
network.vpnGet reads its details (a tunnel's peers, address and, while
up, traffic); network.vpnSetAutoconnect flips auto-connect;
network.wgEdit changes a tunnel's name and a peer's endpoint, allowed
IPs and keepalive, reapplied to a tunnel that is up; network.wgExport
writes the tunnel as a .conf, mode 0600 under the runtime dir since it
holds the private key; network.wgReplace loads an edited .conf back in
its place, keeping the name and auto-connect, and a file nmcli refuses
leaves the tunnel as it was. Each refuses a profile that is not a VPN.
NetworkManager keeps a tunnel's stored keys across these updates.
Each WireGuard tunnel and VPN profile row gets a Settings button that
opens its settings under it: auto-connect and what it connects to, and
for a tunnel its traffic while up, its name, endpoint, allowed IPs and
keepalive, its address and DNS (the IP settings box, which gains a
tunnel mode without DHCP or a gateway), and Open .conf, which opens the
tunnel in the text editor, with Load changes to load the edited file
back. NetworkTopic now replaces a list only when its content changed, so
rows are not rebuilt, and a half-typed form lost, on every unrelated
network update.

Note: New: VPN tunnels in Connections have settings: auto-connect, peer and address edits, and the .conf in your editor
Three Connections tabs used part of the page while the others span it:
Wi-Fi was a 720 px column centred in the page (it was centred once the
poster beside it went), Bluetooth was capped at 720 px and anchored left
with its device list at 640 px, and the Hotspot form was capped at 600 px.
They now fill the page like the others; the Hotspot form keeps the
scroll-rail gutter the scrolling tabs have so its edge lines up with
theirs.

Note: Fixed: the Wi-Fi, Bluetooth and Hotspot tabs in Connections use the whole page width
nmcli saves an imported tunnel with auto-connect on and brings it up at
once, so a tunnel that routes everything took over the machine's traffic
the moment it was imported, from the Hub or the bar. network.wgImport now
turns auto-connect off and takes the tunnel down after the import; it
waits to be switched on. The import itself moves to wgImportFile, which
network.wgReplace shares.

Note: Fixed: importing a WireGuard tunnel no longer connects it straight away
An Ethernet card's IP settings sit in the card without a second border,
as a tunnel's do. A tunnel's Remove moves from its row, beside Settings
and the switch, into its settings, still behind a confirming second tap.
Add a tunnel says an imported tunnel starts switched off.
On a two-battery laptop the first battery UPower lists can sit parked by
its controller at 99% "Not charging" / 0 W for hours while the second pack
carries the machine. Every battery surface bound to that first pack:
the shared shell Battery singleton (nacre and qsbar bar glyphs, the
battery popout) froze at "99% On AC · Full" forever, and the stage
Battery singleton drove the low-battery warnings and automatic suspend
off the same pack whose isFullyCharged state read as "plugged in", so
the alerts never armed and the machine could drain to zero silently.

Level and charge state now follow UPower's aggregate display device,
falling back to the active (charging or discharging) physical pack and
then to the first-battery pick where a UPower version's synthetic device
loses ready/isLaptopBattery metadata. Presence, health and the
charge-limit sysfs path stay on the physical pick. isPluggedIn no longer
treats "fully charged" as evidence of a charger; the AC line is the plug
signal, matching the principle the service already documents for charge
limits. The popout label only prefixes "On AC" when onAc is true.

Note: Fixed: On two-battery laptops the battery widget, popout and
low-battery alerts no longer freeze at 99% Full; they follow the
aggregate charge and only say On AC when a charger is attached.

Fixes #845
Review follow-ups on the aggregate pick: gate deviceReady on the
selected level device so an unreported active pack cannot drive
warnings or suspend with cold-start values, keep the popout capacity
on the physical battery (the synthetic device lacks that metadata),
and reduce isPluggedIn to the AC line alone - PendingCharge and
FullyCharged describe the pack, not the charger.

Fixes part of #845
Note: Fixed: Music widgets use less memory for artwork and local GIFs.
Note: Fixed: Avoid the Qt theme icon provider in remaining shell image loaders
Drives the shim in an isolated Quickshell with a prompting stack: retry
off keeps empty submit answering PAM, retry on restarts quietly.
The retry was reachable only by hand-writing a file. The Lockscreen page
now flips it beside the other sign-in settings; it stays off by default.

Note: New: Hub switch to retry a waiting lock screen password prompt
A tap handler on the wrapper never saw a press the skin's own full-size
mouse area took, such as Orbital's. Watch the press from a mouse area
that passes it on, and count anything with a clicked signal as a control.
Orbital took every Return, so an empty one never got past the field and
the retry the README promises only worked from the keypad Enter.
The pairing agent ran an interactive bluetoothctl whose stdout went to the
journal, so every advertising packet during a scan became a line (#869). A
shared helper now filters it for both the systemd unit and the runit service.

Note: Fixed: the Bluetooth pairing agent no longer floods the system journal while a scan runs
Quickshell ignores a discovering write equal to the last confirmed state, so
a stop sent before BlueZ confirmed the start was lost and the scan ran until
the shell restarted (#869). The shared owner now re-issues the stop once the
start lands, the Python bar popup uses it, the Hub scan timer starts from the
confirmed state, and the adapter probe is paced during a scan.

Note: Fixed: a Bluetooth scan opened from the bar or Settings no longer stays on after the panel closes
WirePlumber flips a Bluetooth headset to the mono call profile whenever an app
opens a mic, and has no per-device switch for it (#878). ryoku-bt-audio mic
saves the global setting through wpctl, and the drop-in comments no longer
promise a per-device pin that does not exist.

Note: New: `ryoku-bt-audio mic off` keeps Bluetooth headsets in stereo when an app opens a microphone
The daemon listed ~/.local/lib/qt6/qml ahead of the system dirs for the
picker. A home copy of Ryoku.Ui left from an older deploy then hid the
packaged one, which has UiPreferences, and the masthead tabs failed with
"UiPreferences is not defined" (#818). The home dir only goes first now
when it holds a built Ryoku.Ryogami, the dev loop.

Note: Fixed: the wallpaper picker's tabs load after an update even with an older Ryoku.Ui in the home folder
Hyprland answers a capture request for a window it already freed by
dropping the frame id (ToplevelExport.cpp captureToplevel returns early),
and quickshell's next request on that id kills the connection with
"invalid object N" (#879). That is Hyprland's to fix, so this lowers our
exposure: Window previews in the dock settings turns the strip off, tiles
are keyed by window id so title updates no longer open and close every
capture, and the tile's close button freezes its capture before closing.

Note: New: Window previews switch in the dock settings (Ryoku design); fewer shell exits when closing windows with previews open
The keymap switch-key change and the new window-manager capability both
reach the bootstrap binary, so the committed copy and its checksum move
with them.
The headset call-mode choice only existed as a command (#878). The
Connections Bluetooth tab now has one row for it, read and written through
ryoku-bt-audio mic, on by default and disabled with a reason when WirePlumber
or wpctl is missing.

Note: New: Settings > Connections > Bluetooth can keep headsets in stereo when an app opens a microphone
The python launcher and wellbeing pages still built image://icon/ urls,
the same Qt icon provider path the dock fix avoids.

Note: Fixed: Python bar launcher and wellbeing app icons no longer go through Qt's icon provider
Check env errors in the new test, shorten the comments and the
changelog entries.
Qt's video initialization can crash inside a session-wide MangoHud layer.
Keep the opt-out on the store process and leave games alone.

Note: Fixed: RyoStore opens without loading a session-wide MangoHud overlay
The brightness change dropped the shown hooks, so the card never started
its display probes or the power profile watch.
A Wallpaper Engine scene kept rendering behind a fullscreen game. Game
Mode now asks the ryogami daemon to re-check its pause rules, and the
daemon holds playback paused while the request file exists. Ending Game
Mode resumes only when no manual pause or other rule still applies.
"Pause in Game Mode" in Playback settings (on by default) opts out.

Note: New: Game Mode pauses the live wallpaper and resumes it when it ends
Void moved tar to a build patched for acl 2.4.0, so the pinned template's
tar 1.35_1 had no binary left and its source build failed on acl's
renamed *_at helpers, which stopped every XBPS publish since 2026-11-17.

@neur0map neur0map left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 mika reviewed this change; details in the walkthrough comment.

🧹 Nitpicks (2) — optional, not blocking
  1. ryoku/shell/ipc/network_ip.go:275-278 — Suggestion: bug — Preserve existing static IPv4 routes

    Suggested change

out := copyGroup(g)
for _, k := range []string{"addresses", "address-data", "gateway", "dns", "dns-data", "ignore-auto-dns"} {
  delete(out, k)
}
  1. ryoku/shell/ipc/network_ip.go:323-327 — Suggestion: bug — Avoid sending unsupported DNS settings

    Suggested change

if len(data) > 0 {
  out["dns"] = dbus.MakeVariant(packed)
  out["ignore-auto-dns"] = dbus.MakeVariant(true)
}

@neur0map

neur0map commented Nov 17, 2026 •

Copy link
Copy Markdown
Member Author

🦊 mika's review

Incremental review: new commits since the last checkpoint.

Summary

  • Expand Connections with Ethernet, VPN, DNS, and IP settings.
  • Add per-display tiling and improve Hub page transitions.
  • Fix keyboard layouts, fingerprint PAM, doctor findings, and application routing.
  • Update wallpaper renderer packaging and add focused regression coverage.

Change diagram

flowchart LR
  Hub["Hub Connections"] --> Topic["NetworkTopic IPC"]
  Topic --> Daemon["Shell network daemon"]
  Daemon --> Network["NetworkManager and DNS"]
  Tiling["Hub display tiling"] --> WM["WM capability and event stream"]
  Installer["Installer and keyboard CLI"] --> Greeter["System keymap and greeter"]
  Doctor["Doctor"] --> State["Dismissal state"]
  Ryostore["Ryostore"] --> Picker["Ryogami picker"]
Loading

Estimated review effort: 2/5 · risk: medium

📁 Walkthrough details

VERSION

  • Set the release version to 1.1.0.
    • Bumped from 1.0.9.

ryoku/hub/quickshell/Singletons/NetworkTopic.qml

  • Adds the Hub's network subscription and control interface to the shell daemon.
    • Tracks DNS, VPN, WireGuard, Ethernet, and IP drafts.
    • Handles asynchronous replies, timeouts, and subscription reconnects.

ryoku/hub/quickshell/pages/ConnectionsDnsTab.qml

  • Adds system DNS provider selection through the daemon network topic.
    • Offers DHCP, Cloudflare, Google, and custom servers.
    • Reports daemon errors and rejects empty custom server lists.

ryoku/hub/quickshell/Hub.qml

  • Routes connection deep links and replaces page swaps with settled, cached loaders.
    • Keeps the outgoing frame until the incoming page is ready.
    • Retains recently visited pages for up to 20 seconds.

ryoku/hub/quickshell/OutputTabs.qml

  • Adds linked and per-output selection controls for display-scoped settings.
    • Preserves output names as selection identities.

ryoku/hub/quickshell/SchemaPage.qml

  • Allows schema pages to provide controls above their category tabs.
    • Adds the optional headerExtra component.

ryoku/cli/wm.go

  • Adds ryoku wm watch to stream provider state frames as JSON.
    • Accepts frame kinds and reports the command in usage.

ryoku/cli/internal/doctor/dismissals.go

  • Persists acknowledgements for current warnings and proposed repairs.
    • Matches status, detail, and remedy while ignoring whitespace.
    • Skips matching repairs and never dismisses errors.

ryoku/cli/internal/doctor/doctor.go

  • Integrates dismissal actions and status into doctor execution and output.
    • Adds --dismiss, --restore, and --dismissed.
    • Reports unreadable dismissal state without hiding other findings.

ryoku/cli/internal/doctor/reconcile_manifest.go

  • Reports a converged release manifest as healthy in read-only checks.
    • Retains a proposed repair when the baseline or packages are missing.

ryoku/cli/internal/host/auth.go

  • Supports fingerprint PAM configuration when the service stack exists only in the vendor directory.
    • Seeds an /etc copy when enabled.
    • Removes an unchanged copy on disable while preserving local edits.

ryoku/cli/internal/host/system.go

  • Applies complete keyboard layout lists to the login screen.
    • Keeps only the primary layout for the runit console.
    • Writes validated X11 layout, variant, and options on runit.

ryoku/cli/internal/keyboard/keyboard.go

  • Passes all configured layouts and their options through the host keymap seam.
    • Removes blank layout entries before applying the configuration.

ryoku-shell-installer/engine.go

  • Gives carried multi-layout configurations an Alt+Shift switch when none is configured.
    • Preserves existing XKB options and switch keys.

ryoku/hub/backend/rice_capture.go

  • Protects saved rices from accidental replacement by command-line capture.
    • Requires --force to overwrite and rejects unknown options.

ryoku/apps/ryostore/backend/routing.go

  • Routes rice management to Ryogami and disables MangoHud for store startup.
    • Opens the picker's Rices tab instead of a missing Hub page.

ryoku/apps/ryovm/bin/ryovm

  • Cleans newly created partial VM directories after failed downloads or configuration.
    • Preserves existing directories, symlinks, and directories containing disks.

ryoku/hub/backend/voxtype.go

  • Derives the dictation preset from the active configuration rather than a stale marker.
    • Recognizes custom configurations and preserves them when toggling dictation.

ryoku/hub/backend/matugen.go

  • Expands shipped Matugen paths against the active XDG directories before rendering.
    • Generates expanded core and application configurations in the cache.

release/packages/skwd-paper-bin/PKGBUILD

  • Updates the Arch wallpaper renderer package to 1.0.0-beta.29.
    • Pins the new upstream asset and checksum.
    • Adds the linked freetype2 runtime dependency.

Findings

Severity Category Fix effort File Issue
🟡 minor correctness low ryoku/hub/backend/matugen.go Possible Bug — The new cached core config write ignores errors and then runs Matugen against that path. If the cache is full or unwritable, a theme update can silently fail or use a stale config; report the write failure and skip the i…
🟡 minor correctness low ryoku/hub/quickshell/pages/ConnectionsIpEditor.qml Bug — When an editor switches profiles during a revert countdown, the old timer continues against the new uuid. It can clear the new profile's draft and reload it when the old countdown expires. Stop and reset the countdown…
🟡 minor correctness low ryoku/shell/ryogami/daemon/scene_pointer.go Bug — Clear pending positions and stop their timers when workers change. Otherwise, a position queued for the old wallpaper can be delivered to the replacement after it starts.

1 nitpick listed in this review

⚡ Quick fixes by effort

Low effort (apply from the diff):

  • ryoku/hub/backend/matugen.go:303 — Possible Bug — The new cached core config write ignores errors and then runs Matugen against that path. If the cache is full or unwritable, a theme update can silently fail or use a stale config; report the write failure and skip the i…
  • ryoku/hub/quickshell/pages/ConnectionsIpEditor.qml:68 — Bug — When an editor switches profiles during a revert countdown, the old timer continues against the new uuid. It can clear the new profile's draft and reload it when the old countdown expires. Stop and reset the countdown…
  • ryoku/shell/ryogami/daemon/scene_pointer.go:71 — Bug — Clear pending positions and stop their timers when workers change. Otherwise, a position queued for the old wallpaper can be delivered to the replacement after it starts.
🤖 Prompt for AI agents (click, copy, paste into Claude/Codex)
Fix the following issues found by mika-agent on Ryoku-dev/ryoku#884 (branch release/1.1.0):

- ryoku/hub/backend/matugen.go:303-305 — Possible Bug (minor severity, low effort): The new cached core config write ignores errors and then runs Matugen against that path. If the cache is full or unwritable, a theme update can silently fail or use a stale config; report the write failure and skip the i…
- ryoku/hub/quickshell/pages/ConnectionsIpEditor.qml:68-73 — Bug (minor severity, low effort): When an editor switches profiles during a revert countdown, the old timer continues against the new `uuid`. It can clear the new profile's draft and reload it when the old countdown expires. Stop and reset the countdown…
  suggested fix:

function begin() {
if (ed.shownUuid.length && ed.shownUuid !== ed.uuid) {
ed.stash(ed.shownUuid);
countdown.stop();
ed.revertUntil = 0;
ed.revertLeft = 0;
}
ed.shownUuid = ed.uuid;
if (!ed.uuid.length)
return;

- ryoku/shell/ryogami/daemon/scene_pointer.go:71-77 — Bug (minor severity, low effort): Clear pending positions and stop their timers when workers change. Otherwise, a position queued for the old wallpaper can be delivered to the replacement after it starts.
suggested fix:

func (f *scenePointerFeed) invalidate() {
f.mu.Lock()
f.sinks = map[string]scenePointerSink{}
f.resolvedAt = time.Time{}
f.last = map[string][2]uint16{}
for _, timer := range f.timers {
timer.Stop()
}
f.timers = map[string]*time.Timer{}
f.pending = map[string][2]uint16{}
f.mu.Unlock()
}


For each: verify it is real in the current code, apply the smallest correct fix, and run the repo's tests. Skip anything already resolved and say why.
🛠 Deterministic checks run
  • golangci-lint: not installed (skip)
  • shellcheck: not installed (skip)
  • actionlint 1.7.12: 0 finding(s)

🚦 Merge recommendation: needs_review


🦊 Generated by Mika — the Ryoku org's self-hosted AI code reviewer. Machine findings: verify before merging.

@neur0map neur0map added area:ryoku Ryoku project area type:bug A reported problem labels Nov 17, 2026

@neur0map neur0map left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 Review findings — 8 blocking issue(s): see the inline comments and the walkthrough for details.

🧹 Nitpicks (3) — optional, not blocking
  1. ryoku/shell/ipc/matugen.go:1150-1156 — Suggestion: bug — Escape XDG paths in TOML

    Suggested change

func expandMatugenHome(toml string) string {
  escape := func(path string) string {
    return strings.NewReplacer(`\`, `\\`, `"`, `\"`).Replace(path)
  }
  return strings.NewReplacer(
    "~/.config/", escape(matugenConfigHome())+"/",
    "~/.cache/", escape(matugenCacheHome())+"/",
    "~/.local/share/", escape(matugenDataHome())+"/",
  ).Replace(toml)
}
  1. ryoku/shell/ipc/network_ip.go:275-278 — Suggestion: bug — Preserve existing static routes

    Suggested change

out := copyGroup(g)
for _, k := range []string{"addresses", "address-data", "gateway", "dns", "dns-data", "ignore-auto-dns"} {
  delete(out, k)
}
  1. ryoku/shell/ipc/network_vpn.go:211-216 — Suggestion: bug — Reject zero-port WireGuard endpoints

    Suggested change

endpoint := strings.TrimSpace(a.Endpoint)
if endpoint != "" {
  addrPort, err := netip.ParseAddrPort(endpoint)
  if (err == nil && addrPort.Port() == 0) || (err != nil && !validHostPort(endpoint)) {
    return fmt.Errorf("enter the endpoint as host:port, like vpn.example.com:51820")
  }
}

Comment on lines +250 to +255
func expandMatugenHome(toml string) string {
return strings.NewReplacer(
"~/.config/", configHome()+"/",
"~/.cache/", cacheHome()+"/",
"~/.local/share/", dataHome()+"/",
).Replace(toml)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 minor · Possible Bug · fix: medium effort

XDG paths are substituted directly into TOML string literals. A valid configuration directory containing a quote or backslash produces invalid or incorrectly escaped TOML, so Matugen cannot render the affected templates; encode substituted paths as TOML strings.

Reply here to discuss, say it's fixed, or explain why it's intended — no mention needed.

Comment on lines +2 to +5
import QtQuick
import Ryoku.Ui
import Ryoku.Ui.Singletons
import "../Singletons"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 minor · Bug · fix: low effort

openConf() uses Spawn, but this file does not import Quickshell, where it is provided. Add the import so opening a tunnel configuration can launch the editor.

Suggested change

Suggested change
import QtQuick
import Ryoku.Ui
import Ryoku.Ui.Singletons
import "../Singletons"
import QtQuick
import Quickshell
import Ryoku.Ui
import Ryoku.Ui.Singletons
import "../Singletons"

💡 Related suggestion (bug)

Import Quickshell for editor launching

Suggested change

Suggested change
import QtQuick
import Ryoku.Ui
import Ryoku.Ui.Singletons
import "../Singletons"
import QtQuick
import Quickshell
import Ryoku.Ui
import Ryoku.Ui.Singletons
import "../Singletons"

Reply here to discuss, say it's fixed, or explain why it's intended — no mention needed.

Comment on lines +147 to +152
// a tunnel that is up reports its traffic
Timer {
interval: 2000
repeat: true
running: panel.wireguard && panel.info.active === true
onTriggered: panel.load(false)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 minor · Performance · fix: low effort

An active tunnel keeps polling every two seconds when its details are hidden with a cached Hub page. Gate the timer on panel.visible so hidden pages stop polling.

Suggested change

Suggested change
// a tunnel that is up reports its traffic
Timer {
interval: 2000
repeat: true
running: panel.wireguard && panel.info.active === true
onTriggered: panel.load(false)
Timer {
interval: 2000
repeat: true
running: panel.visible && panel.wireguard && panel.info.active === true
onTriggered: panel.load(false)
}

💡 Related suggestion (performance)

Stop polling hidden tunnel details

Suggested change

Suggested change
// a tunnel that is up reports its traffic
Timer {
interval: 2000
repeat: true
running: panel.wireguard && panel.info.active === true
onTriggered: panel.load(false)
Timer {
interval: 2000
repeat: true
running: panel.visible && panel.wireguard && panel.info.active === true
onTriggered: panel.load(false)
}

Reply here to discuss, say it's fixed, or explain why it's intended — no mention needed.

return strings.Join(out, "\n")
}

// expandMatugenHome resolves the shipped ~/.config, ~/.cache and ~/.local/share

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 minor · Bug · fix: low effort

XDG directory names can contain quotes or backslashes, which are inserted unescaped into TOML strings and can make the staged config invalid. Escape these characters before substituting the paths.

Suggested change

Suggested change
// expandMatugenHome resolves the shipped ~/.config, ~/.cache and ~/.local/share
func expandMatugenHome(toml string) string {
escape := func(path string) string {
return strings.NewReplacer(`\`, `\\`, `"`, `\"`).Replace(path)
}
return strings.NewReplacer(
"~/.config/", escape(matugenConfigHome())+"/",
"~/.cache/", escape(matugenCacheHome())+"/",
"~/.local/share/", escape(matugenDataHome())+"/",
).Replace(toml)
}

Reply here to discuss, say it's fixed, or explain why it's intended — no mention needed.

"os"
"os/exec"
"path/filepath"
"regexp"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 minor · Possible bug · fix: low effort

nmcli localizes its success message, so non-English locales can change the UUID's surrounding format and make a successful import appear to fail. Force the command's output to a known locale before parsing it.

Suggested change

Suggested change
"regexp"
var importedUuid = regexp.MustCompile(`\(([0-9a-f-]{36})\)`)
// wgImportFile runs nmcli's WireGuard config importer, as the reference does
// (contract 06 sec 4), and returns the new profile's UUID.
func wgImportFile(path string) (string, error) {
if path == "" {
return "", fmt.Errorf("empty path")
}
cmd := exec.Command("nmcli", "connection", "import", "type", "wireguard", "file", path)
cmd.Env = append(os.Environ(), "LC_ALL=C")
out, err := cmd.CombinedOutput()

Reply here to discuss, say it's fixed, or explain why it's intended — no mention needed.

Comment on lines +286 to +289
}
if !usableIPv4(prefix.Addr()) {
return nil, fmt.Errorf("%s cannot be this connection's address", prefix.Addr())
}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 minor · Bug · fix: low effort

Preserve routes when editing IPv4 settings. Removing it silently deletes legacy static routes, which can make networks unreachable after an otherwise unrelated edit.

Suggested change

Suggested change
}
if !usableIPv4(prefix.Addr()) {
return nil, fmt.Errorf("%s cannot be this connection's address", prefix.Addr())
}
out := copyGroup(g)
for _, k := range []string{"addresses", "address-data", "gateway", "dns", "dns-data", "ignore-auto-dns"} {
delete(out, k)
}

Reply here to discuss, say it's fixed, or explain why it's intended — no mention needed.

Comment on lines +218 to +223
for _, raw := range a.AllowedIPs {
raw = strings.TrimSpace(raw)
if raw == "" {
continue
}
p, err := netip.ParsePrefix(raw)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 minor · Bug · fix: low effort

Reject port zero for numeric IP endpoints as well as hostnames. netip.ParseAddrPort accepts port zero, but it is not a usable WireGuard endpoint.

Suggested change

Suggested change
for _, raw := range a.AllowedIPs {
raw = strings.TrimSpace(raw)
if raw == "" {
continue
}
p, err := netip.ParsePrefix(raw)
endpoint := strings.TrimSpace(a.Endpoint)
if endpoint != "" {
addrPort, err := netip.ParseAddrPort(endpoint)
if (err == nil && addrPort.Port() == 0) || (err != nil && !validHostPort(endpoint)) {
return fmt.Errorf("enter the endpoint as host:port, like vpn.example.com:51820")
}
}

Reply here to discuss, say it's fixed, or explain why it's intended — no mention needed.

Comment on lines +4 to +6
tmp="$(mktemp -d)"
trap 'kill "${srv:-0}" 2>/dev/null || true; rm -rf "$tmp"' EXIT
mkdir -p "$tmp/bin" "$tmp/runtime" "$tmp/imports/Ryoku"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 minor · Bug · fix: low effort

If setup fails before srv is assigned, kill 0 signals every process in the current process group, potentially terminating the invoking shell or CI job. Only signal the server when its PID is set.

Suggested change

Suggested change
tmp="$(mktemp -d)"
trap 'kill "${srv:-0}" 2>/dev/null || true; rm -rf "$tmp"' EXIT
mkdir -p "$tmp/bin" "$tmp/runtime" "$tmp/imports/Ryoku"
tmp="$(mktemp -d)"
trap 'if [[ -n ${srv:-} ]]; then kill "$srv" 2>/dev/null || true; fi; rm -rf "$tmp"' EXIT
mkdir -p "$tmp/bin" "$tmp/runtime" "$tmp/imports/Ryoku"

💡 Related suggestion (bug)

Guard cleanup against an unset server PID

Suggested change

Suggested change
tmp="$(mktemp -d)"
trap 'kill "${srv:-0}" 2>/dev/null || true; rm -rf "$tmp"' EXIT
mkdir -p "$tmp/bin" "$tmp/runtime" "$tmp/imports/Ryoku"
tmp="$(mktemp -d)"
trap 'if [[ -n ${srv:-} ]]; then kill "$srv" 2>/dev/null || true; fi; rm -rf "$tmp"' EXIT
mkdir -p "$tmp/bin" "$tmp/runtime" "$tmp/imports/Ryoku"

Reply here to discuss, say it's fixed, or explain why it's intended — no mention needed.

Void moved libtheora to 1.2.0 and rebuilt ffmpeg6, mpv and the libcdio
users on 2026-11-16, so the pinned ffmpeg6 6.1.6_3 asked for a
libtheoradec.so.1 the repository no longer has and Ryotunes could not
install its build dependencies.

@neur0map neur0map left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 Review findings — 9 blocking issue(s): see the inline comments and the walkthrough for details.

🧹 Nitpicks (5) — optional, not blocking
  1. ryoku/cli/internal/host/auth.go:72-76 — Suggestion: bug — Honor fingerprint lines in vendor stacks

    Suggested change

if vendor && !enabled && !strings.Contains(string(body), "pam_fprintd_grosshack") {
  fmt.Fprintln(a.cfg.Stdout, target)
  return ExitOK
}
  1. ryoku/cli/internal/host/system.go:228-235 — Suggestion: bug — Validate options before changing console settings

    Suggested change

if !x11OptionPattern.MatchString(variant) || !x11OptionPattern.MatchString(options) {
  return a.failf("set the login screen keymap: invalid variant or options")
}
console, _, _ := strings.Cut(layout, ",")
if err := writeKeymap(a.cfg.RCConfPath, console); err != nil {
  return a.failf("set the console keymap: %v", err)
}
if err := writeX11Keymap(a.cfg.X11KeymapPath, layout, variant, options); err != nil {
  return a.failf("set the login screen keymap: %v", err)
}
return ExitOK
  1. ryoku/hub/backend/matugen.go:302-306 — Suggestion: bug — Avoid rendering a stale cached configuration

    Suggested change

if core, err := os.ReadFile(filepath.Join(matugenDir, "config.toml")); err == nil {
  activeCore := filepath.Join(cacheDir, "active-config.toml")
  if err := os.WriteFile(activeCore, []byte(expandMatugenHome(string(core))), 0o644); err == nil {
    runMatugen(activeCore, carrierPath)
  }
}
  1. ryoku/shell/ipc/network.go:1075-1088 — Suggestion: bug — Force predictable import output

    Suggested change

func wgImportFile(path string) (string, error) {
  if path == "" {
    return "", fmt.Errorf("empty path")
  }
  cmd := exec.Command("nmcli", "connection", "import", "type", "wireguard", "file", path)
  cmd.Env = append(os.Environ(), "LC_ALL=C")
  out, err := cmd.CombinedOutput()
  if err != nil {
    return "", fmt.Errorf("wireguard import failed: %s", strings.TrimSpace(string(out)))
  }
  m := importedUuid.FindStringSubmatch(string(out))
  if m == nil {
    return "", fmt.Errorf("wireguard import gave no profile: %s", strings.TrimSpace(string(out)))
  }
  return m[1], nil
}
  1. ryoku/shell/ryogami/daemon/surface.go:129-132 — Suggestion: bug — Enable pointer events when committing previews

    Suggested change

func (w *wallSurface) showEntry(pic, fit string, tr interface{}, live, isVideo, preview, pointer bool, clip videoClip) {
  w.mu.Lock()
  defer w.mu.Unlock()
  if commitMatchingPreview(&w.def, pic, fit, live, isVideo, preview, clip) {
    w.def.Pointer = pointer

Comment on lines +76 to +80
var keepalive = parseInt(keepaliveField.text.trim() || "0", 10);
if (isNaN(keepalive) || keepalive < 0 || keepalive > 65535) {
panel.error = I18n.tr("Keepalive is a number of seconds, 0 to turn it off.");
return;
}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 minor · Bug · fix: low effort

parseInt accepts trailing characters and decimal values, so inputs such as 12abc or 1.5 are silently saved as different values. Validate the entire field before converting it.

Suggested change

Suggested change
var keepalive = parseInt(keepaliveField.text.trim() || "0", 10);
if (isNaN(keepalive) || keepalive < 0 || keepalive > 65535) {
panel.error = I18n.tr("Keepalive is a number of seconds, 0 to turn it off.");
return;
}
var keepaliveText = keepaliveField.text.trim() || "0";
var keepalive = Number(keepaliveText);
if (!/^\d+$/.test(keepaliveText) || keepalive > 65535) {
panel.error = I18n.tr("Keepalive is a number of seconds, 0 to turn it off.");
return;
}

💡 Related suggestion (bug)

Validate the entire keepalive input

Suggested change

Suggested change
var keepalive = parseInt(keepaliveField.text.trim() || "0", 10);
if (isNaN(keepalive) || keepalive < 0 || keepalive > 65535) {
panel.error = I18n.tr("Keepalive is a number of seconds, 0 to turn it off.");
return;
}
var keepaliveText = keepaliveField.text.trim() || "0";
var keepalive = Number(keepaliveText);
if (!/^\d+$/.test(keepaliveText) || keepalive > 65535) {
panel.error = I18n.tr("Keepalive is a number of seconds, 0 to turn it off.");
return;
}

Reply here to discuss, say it's fixed, or explain why it's intended — no mention needed.

Comment on lines +41 to +46
locked() {
mkdir -p "$(dirname "$state")"
exec 9>"$lock"
flock -x 9
"$@"
}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 minor · Maintainability · fix: low effort

locked leaves file descriptor 9 open after returning, so start_watch launches a watcher while the lock is still held. More importantly, the watcher invokes restore, which can block on that lock until the parent exits; run the locked operation in a subshell so the descriptor is always released immediately afterward.

Suggested change

Suggested change
locked() {
mkdir -p "$(dirname "$state")"
exec 9>"$lock"
flock -x 9
"$@"
}
locked() (
mkdir -p "$(dirname "$state")"
exec 9>"$lock"
flock -x 9
"$@"
)

💡 Related suggestion (maintainability)

Release the state lock after each operation

Suggested change

Suggested change
locked() {
mkdir -p "$(dirname "$state")"
exec 9>"$lock"
flock -x 9
"$@"
}
locked() (
mkdir -p "$(dirname "$state")"
exec 9>"$lock"
flock -x 9
"$@"
)

Reply here to discuss, say it's fixed, or explain why it's intended — no mention needed.

Comment on lines +19 to +27
while unlinked; do
while IFS= read -r frame; do
case $(jq -r '.kind // empty' <<<"$frame" 2>/dev/null) in
workspaces|outputs)
unlinked || exit 0
ryoku-output-tiling restore >/dev/null 2>&1 || true
;;
esac
done < <(ryoku wm watch workspaces outputs 2>>"$log" 8>&-)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 minor · Bug · fix: low effort

ryoku wm watch is started through process substitution and can remain blocked after the watcher exits on relinking, leaving an orphaned subscriber. Run the stream as a coprocess and terminate it when the read loop ends.

Suggested change

Suggested change
while unlinked; do
while IFS= read -r frame; do
case $(jq -r '.kind // empty' <<<"$frame" 2>/dev/null) in
workspaces|outputs)
unlinked || exit 0
ryoku-output-tiling restore >/dev/null 2>&1 || true
;;
esac
done < <(ryoku wm watch workspaces outputs 2>>"$log" 8>&-)
while unlinked; do
coproc WM_WATCH { ryoku wm watch workspaces outputs 2>>"$log" 8>&-; }
watch_pid=$WM_WATCH_PID
while IFS= read -r frame; do
case $(jq -r '.kind // empty' <<<"$frame" 2>/dev/null) in
workspaces|outputs)
if ! unlinked; then
kill "$watch_pid" 2>/dev/null || true
wait "$watch_pid" 2>/dev/null || true
exit 0
fi
ryoku-output-tiling restore >/dev/null 2>&1 || true
;;
esac
done <&"${WM_WATCH[0]}"
wait "$watch_pid" 2>/dev/null || true

💡 Related suggestion (bug)

Stop the event stream on exit

Suggested change

Suggested change
while unlinked; do
while IFS= read -r frame; do
case $(jq -r '.kind // empty' <<<"$frame" 2>/dev/null) in
workspaces|outputs)
unlinked || exit 0
ryoku-output-tiling restore >/dev/null 2>&1 || true
;;
esac
done < <(ryoku wm watch workspaces outputs 2>>"$log" 8>&-)
while unlinked; do
coproc WM_WATCH { ryoku wm watch workspaces outputs 2>>"$log" 8>&-; }
watch_pid=$WM_WATCH_PID
while IFS= read -r frame; do
case $(jq -r '.kind // empty' <<<"$frame" 2>/dev/null) in
workspaces|outputs)
if ! unlinked; then
kill "$watch_pid" 2>/dev/null || true
wait "$watch_pid" 2>/dev/null || true
exit 0
fi
ryoku-output-tiling restore >/dev/null 2>&1 || true
;;
esac
done <&"${WM_WATCH[0]}"
wait "$watch_pid" 2>/dev/null || true

Reply here to discuss, say it's fixed, or explain why it's intended — no mention needed.

Comment on lines +16 to +19
command: ["bash", "-c", "[[ -r $1 && -f $1 ]] && head -c 64 -- \"$1\"", "qylock-auth-retry", root.path]
stdout: StdioCollector {
onStreamFinished: root.apply(text, true)
}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 minor · Bug · fix: low effort

Reading only the first 64 bytes accepts a file containing on followed by enough whitespace and then other content, although that file should disable retry. Read one extra byte and reject oversized content before applying the flag.

Suggested change

Suggested change
command: ["bash", "-c", "[[ -r $1 && -f $1 ]] && head -c 64 -- \"$1\"", "qylock-auth-retry", root.path]
stdout: StdioCollector {
onStreamFinished: root.apply(text, true)
}
command: ["bash", "-c", "[[ -r $1 && -f $1 ]] && head -c 65 -- \"$1\"", "qylock-auth-retry", root.path]
stdout: StdioCollector {
onStreamFinished: root.apply(text, text.length <= 64)
}

💡 Related suggestion (bug)

Reject truncated retry flag contents

Suggested change

Suggested change
command: ["bash", "-c", "[[ -r $1 && -f $1 ]] && head -c 64 -- \"$1\"", "qylock-auth-retry", root.path]
stdout: StdioCollector {
onStreamFinished: root.apply(text, true)
}
command: ["bash", "-c", "[[ -r $1 && -f $1 ]] && head -c 65 -- \"$1\"", "qylock-auth-retry", root.path]
stdout: StdioCollector {
onStreamFinished: root.apply(text, text.length <= 64)
}

Reply here to discuss, say it's fixed, or explain why it's intended — no mention needed.

Comment on lines +275 to +279
out := copyGroup(g)
for _, k := range []string{"addresses", "routes", "address-data", "gateway", "dns", "dns-data", "ignore-auto-dns"} {
delete(out, k)
}
switch cfg.Method {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 minor · Bug · fix: low effort

Preserve routes when editing IPv4 settings. The Hub does not expose static routes, so deleting them silently removes existing network configuration when a user saves an address or DNS change.

Suggested change

Suggested change
out := copyGroup(g)
for _, k := range []string{"addresses", "routes", "address-data", "gateway", "dns", "dns-data", "ignore-auto-dns"} {
delete(out, k)
}
switch cfg.Method {
func applyIPv4(g map[string]dbus.Variant, cfg ipConfig) (map[string]dbus.Variant, error) {
out := copyGroup(g)
for _, k := range []string{"addresses", "address-data", "gateway", "dns", "dns-data", "ignore-auto-dns"} {
delete(out, k)
}

💡 Related suggestion (bug)

Preserve static routes during IPv4 edits

Suggested change

Suggested change
out := copyGroup(g)
for _, k := range []string{"addresses", "routes", "address-data", "gateway", "dns", "dns-data", "ignore-auto-dns"} {
delete(out, k)
}
switch cfg.Method {
func applyIPv4(g map[string]dbus.Variant, cfg ipConfig) (map[string]dbus.Variant, error) {
out := copyGroup(g)
for _, k := range []string{"addresses", "address-data", "gateway", "dns", "dns-data", "ignore-auto-dns"} {
delete(out, k)
}

Reply here to discuss, say it's fixed, or explain why it's intended — no mention needed.

Comment on lines +60 to +65
Component.onCompleted: {
root.sent = "";
connected = true;
}
// a refused connect fails while the Loader is still activating
onConnectionStateChanged: if (!connected) Qt.callLater(root.dropLink)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 minor · Bug · fix: low effort

After the daemon reconnects, the current pointer position is not sent until the pointer moves again. Send it when the socket connects so the scene receives the current position immediately.

Suggested change

Suggested change
Component.onCompleted: {
root.sent = "";
connected = true;
}
// a refused connect fails while the Loader is still activating
onConnectionStateChanged: if (!connected) Qt.callLater(root.dropLink)
Component.onCompleted: {
root.sent = "";
connected = true;
}
// a refused connect fails while the Loader is still activating
onConnectionStateChanged: {
if (connected)
root.send();
else
Qt.callLater(root.dropLink);
}

💡 Related suggestion (bug)

Send pointer position after reconnecting

Suggested change

Suggested change
Component.onCompleted: {
root.sent = "";
connected = true;
}
// a refused connect fails while the Loader is still activating
onConnectionStateChanged: if (!connected) Qt.callLater(root.dropLink)
Component.onCompleted: {
root.sent = "";
connected = true;
}
// a refused connect fails while the Loader is still activating
onConnectionStateChanged: {
if (connected)
root.send();
else
Qt.callLater(root.dropLink);
}

Reply here to discuss, say it's fixed, or explain why it's intended — no mention needed.

Comment on lines +88 to +95
if wait := scenePointerInterval - f.now().Sub(f.sent[output]); wait > 0 {
f.pending[output] = pos
if f.timers[output] == nil {
f.timers[output] = time.AfterFunc(wait, func() { f.flush(output) })
}
return
}
f.sendLocked(output, pos)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 minor · Bug · fix: low effort

A pending timer can be delayed past its interval; a newer move is then sent immediately, but the timer later sends the older pending position and moves the scene backwards. Clear the pending position before the immediate send.

Suggested change

Suggested change
if wait := scenePointerInterval - f.now().Sub(f.sent[output]); wait > 0 {
f.pending[output] = pos
if f.timers[output] == nil {
f.timers[output] = time.AfterFunc(wait, func() { f.flush(output) })
}
return
}
f.sendLocked(output, pos)
if wait := scenePointerInterval - f.now().Sub(f.sent[output]); wait > 0 {
f.pending[output] = pos
if f.timers[output] == nil {
f.timers[output] = time.AfterFunc(wait, func() { f.flush(output) })
}
return
}
delete(f.pending, output)
f.sendLocked(output, pos)

💡 Related suggestion (bug)

Discard stale pending pointer positions

Suggested change

Suggested change
if wait := scenePointerInterval - f.now().Sub(f.sent[output]); wait > 0 {
f.pending[output] = pos
if f.timers[output] == nil {
f.timers[output] = time.AfterFunc(wait, func() { f.flush(output) })
}
return
}
f.sendLocked(output, pos)
if wait := scenePointerInterval - f.now().Sub(f.sent[output]); wait > 0 {
f.pending[output] = pos
if f.timers[output] == nil {
f.timers[output] = time.AfterFunc(wait, func() { f.flush(output) })
}
return
}
delete(f.pending, output)
f.sendLocked(output, pos)

Reply here to discuss, say it's fixed, or explain why it's intended — no mention needed.

// committed: no assignment, count, or applied event backs it, so
// downstream readers must not treat the entry as the wallpaper.
Preview bool `json:"preview,omitempty"`
Preview bool `json:"preview,omitempty"`

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 minor · Bug · fix: low effort

When a scene matches a preview, commitMatchingPreview takes the early-return path before Pointer is assigned, so the committed scene never receives pointer events. Set the flag on that path too.

Suggested change

Suggested change
Preview bool `json:"preview,omitempty"`
func (w *wallSurface) showEntry(pic, fit string, tr interface{}, live, isVideo, preview, pointer bool, clip videoClip) {
w.mu.Lock()
defer w.mu.Unlock()
if commitMatchingPreview(&w.def, pic, fit, live, isVideo, preview, clip) {
w.def.Pointer = pointer

Reply here to discuss, say it's fixed, or explain why it's intended — no mention needed.

Comment on lines +38 to +43
if [[ ${1:-} == --filter ]]; then
filter
exit
fi

tail -f /dev/null | bluetoothctl --agent KeyboardDisplay 2>&1 | filter

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 minor · Bug · fix: low effort

Without pipefail, the pipeline reports the filter's exit status even if bluetoothctl fails. The systemd unit uses Restart=on-failure, so an agent failure can leave pairing unavailable until the service is manually restarted.

Suggested change

Suggested change
if [[ ${1:-} == --filter ]]; then
filter
exit
fi
tail -f /dev/null | bluetoothctl --agent KeyboardDisplay 2>&1 | filter
if [[ ${1:-} == --filter ]]; then
filter
exit
fi
set -o pipefail
tail -f /dev/null | bluetoothctl --agent KeyboardDisplay 2>&1 | filter

Reply here to discuss, say it's fixed, or explain why it's intended — no mention needed.

Shima's weather panel asked wttr.in first and only used Open-Meteo when that
failed, so it could show a reading hours old and several degrees off the
launcher's. Open-Meteo is now first, wttr.in the fallback, readings round to
whole degrees and visibility shows in km or mi.

Note: Fixed: Shima's weather panel shows the same temperature as the launcher

@neur0map neur0map left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 Review findings — 3 blocking issue(s): see the inline comments and the walkthrough for details.

🧹 Nitpicks (1) — optional, not blocking
  1. ryoku/shell/ipc/network.go:1075-1088 — Suggestion: bug — Fix locale-dependent WireGuard import parsing

    Suggested change

func wgImportFile(path string) (string, error) {
  if path == "" {
    return "", fmt.Errorf("empty path")
  }
  cmd := exec.Command("nmcli", "connection", "import", "type", "wireguard", "file", path)
  cmd.Env = append(os.Environ(), "LC_ALL=C")
  out, err := cmd.CombinedOutput()
  if err != nil {
    return "", fmt.Errorf("wireguard import failed: %s", strings.TrimSpace(string(out)))
  }
  m := importedUuid.FindStringSubmatch(string(out))
  if m == nil {
    return "", fmt.Errorf("wireguard import gave no profile: %s", strings.TrimSpace(string(out)))
  }
  return m[1], nil
}

Comment on lines +303 to +305
activeCore := filepath.Join(cacheDir, "active-config.toml")
_ = os.WriteFile(activeCore, []byte(expandMatugenHome(string(core))), 0o644)
runMatugen(activeCore, carrierPath)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 minor · Possible Bug · fix: low effort

The new cached core config write ignores errors and then runs Matugen against that path. If the cache is full or unwritable, a theme update can silently fail or use a stale config; report the write failure and skip the invocation.

Reply here to discuss, say it's fixed, or explain why it's intended — no mention needed.

Comment on lines +68 to +73
}
function begin() {
if (ed.shownUuid.length && ed.shownUuid !== ed.uuid)
ed.stash(ed.shownUuid);
ed.shownUuid = ed.uuid;
if (!ed.uuid.length)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 minor · Bug · fix: low effort

When an editor switches profiles during a revert countdown, the old timer continues against the new uuid. It can clear the new profile's draft and reload it when the old countdown expires. Stop and reset the countdown after stashing the old profile; begin() will restore it if the new profile has one.

Suggested change

Suggested change
}
function begin() {
if (ed.shownUuid.length && ed.shownUuid !== ed.uuid)
ed.stash(ed.shownUuid);
ed.shownUuid = ed.uuid;
if (!ed.uuid.length)
function begin() {
if (ed.shownUuid.length && ed.shownUuid !== ed.uuid) {
ed.stash(ed.shownUuid);
countdown.stop();
ed.revertUntil = 0;
ed.revertLeft = 0;
}
ed.shownUuid = ed.uuid;
if (!ed.uuid.length)
return;

💡 Related suggestion (bug)

Reset the countdown when switching profiles

Suggested change

Suggested change
}
function begin() {
if (ed.shownUuid.length && ed.shownUuid !== ed.uuid)
ed.stash(ed.shownUuid);
ed.shownUuid = ed.uuid;
if (!ed.uuid.length)
function begin() {
if (ed.shownUuid.length && ed.shownUuid !== ed.uuid) {
ed.stash(ed.shownUuid);
countdown.stop();
ed.revertUntil = 0;
ed.revertLeft = 0;
}
ed.shownUuid = ed.uuid;
if (!ed.uuid.length)
return;

Reply here to discuss, say it's fixed, or explain why it's intended — no mention needed.

Comment on lines +71 to +77
func (f *scenePointerFeed) invalidate() {
f.mu.Lock()
f.sinks = map[string]scenePointerSink{}
f.resolvedAt = time.Time{}
f.last = map[string][2]uint16{}
f.mu.Unlock()
}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 minor · Bug · fix: low effort

Clear pending positions and stop their timers when workers change. Otherwise, a position queued for the old wallpaper can be delivered to the replacement after it starts.

Suggested change

Suggested change
func (f *scenePointerFeed) invalidate() {
f.mu.Lock()
f.sinks = map[string]scenePointerSink{}
f.resolvedAt = time.Time{}
f.last = map[string][2]uint16{}
f.mu.Unlock()
}
func (f *scenePointerFeed) invalidate() {
f.mu.Lock()
f.sinks = map[string]scenePointerSink{}
f.resolvedAt = time.Time{}
f.last = map[string][2]uint16{}
for _, timer := range f.timers {
timer.Stop()
}
f.timers = map[string]*time.Timer{}
f.pending = map[string][2]uint16{}
f.mu.Unlock()
}

💡 Related suggestion (bug)

Clear queued positions on worker changes

Suggested change

Suggested change
func (f *scenePointerFeed) invalidate() {
f.mu.Lock()
f.sinks = map[string]scenePointerSink{}
f.resolvedAt = time.Time{}
f.last = map[string][2]uint16{}
f.mu.Unlock()
}
func (f *scenePointerFeed) invalidate() {
f.mu.Lock()
f.sinks = map[string]scenePointerSink{}
f.resolvedAt = time.Time{}
f.last = map[string][2]uint16{}
for _, timer := range f.timers {
timer.Stop()
}
f.timers = map[string]*time.Timer{}
f.pending = map[string][2]uint16{}
f.mu.Unlock()
}

Reply here to discuss, say it's fixed, or explain why it's intended — no mention needed.

@neur0map
neur0map merged commit 0bf1174 into main Nov 17, 2026
54 of 58 checks passed
@neur0map
neur0map deleted the release/1.1.0 branch November 17, 2026 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ryoku Ryoku project area type:bug A reported problem

Projects

None yet

Development

Successfully merging this pull request may close these issues.