caelestia-niri/docs/PROGRESS.md
Jacob Ward ca79296fcd S005: launcher, utilities, OSD and session menu follow the original more closely
Launcher: the empty state per mode, >emoji (Unicode list, favourites,
frequencies) and >keybinds (niri binds, run with niri msg action).
Utilities: the recording delete modal and the inline screenshot prompt.
OSD: the microphone slider runs to maxVolume. The tick sound on the
Audio popout's output slider and the Keep Awake switch. Session buttons
carry their labels. ISSUES §3.28–§3.47.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-14 07:11:55 -06:00

13 KiB

Progress

One entry per session, newest last, ≤ 15 lines: done, verified how, not done, later.

S001 — Visualiser follows the sound (2026-11-13)

  • Cause: pw-record - writes an AU file (big-endian) to a pipe; we read little-endian, so cava saw noise. Fix: --raw, plus node.passive like the original. Beat (§1.3) was fed the same noise; fixed with it, and toggling the beat no longer restarts the tap.
  • Covered screens now let the visualiser fade (autoHide) before their background stops painting; before, the last bars froze in the gaps.
  • Zombies: Restart Shell's exec orphaned the old image's children (proved in nested niri: pw-record, pactl, swayidle Z); services::reap_inherited reaps them. pw-play sounds reaped (live shell had 470 Z). Tap child reaped on any exit (Rec).
  • Pause (user: bars stick where they were when Mulberry pauses): on pause playing flips the beat, which restarted the tap, and a new tap never sent zeros, so the old heights stayed. Now the beat is a flag and a new tap sends zeros first; pause test in nested (fake MPRIS + null sink) falls to rest.
  • Test: audio::tests::sine_lifts_its_own_bar (peak at the tone's bar, bars change), records_raw_samples.
  • Verified in nested niri: grim crops differ with a tone, match in silence; 6 forced tap restarts + Restart Shell leave no Z; dashboard toggles keep one tap. Only snapshot/nested-tested, not live.
  • Live checks for the batched restart: bars follow a browser video and system sounds on both monitors; dashboard Media ring moves; after Restart Shell, ps -o stat=,comm= --ppid $(pgrep -x caelestia-shell) shows no Z.
  • Not done: the live shell still holds 470 pw-play and 166 caelestia zombies until restart.
  • Later: caelestia (166) and wpctl zombies come from spawn(...) calls in wl.rs that never wait; old-image pactl subscribe etc. still run after an exec restart until they exit (S002 area).

S002 — Restart side effects: tray and the music player (2026-11-13)

  • Cause of both: the tray watcher took its name before serving its object; zbus drops calls in that gap unanswered. ksni items (Mulberry) call RegisterStatusNotifierItem holding their tray lock, so they went missing and Mulberry's UI froze on its next tray update until the shell exited (stand-in: 5.2 s blocks, live: for ever). Fix: serve first, queued name, re-scan item names, dedupe by owner+path, host re-registers with a new watcher; 2 s item / 1 s player call timeouts.
  • Chevron: it vanished with the items; hovering an empty tray no longer collapses it, so a list refilled under the pointer comes back expanded.
  • Zombies: fire-and-forget commands go through services::detach (wpctl, caelestia, udisksctl, autostart, notify-send); Restart Shell stops the last image's helpers (CAELESTIA_HELPER mark) and reaps each inherited child on its own thread (a long ddcutil held up the rest).
  • Verified on a private bus in nested niri, 2 ksni stand-ins (Mulberry-like) + 2 Gio items (one never re-registers) + Position probe: old build lost 1–3 items and froze both ksni stand-ins; new build 5 kill+start and 5 Restart Shell rounds, 4/4 items each, 0 freezes, Position ≤ 35 ms, no zombies. Tests tray::tests (4), cargo test --release green, fuzz 854 tried, 0 crashed. Not tested live.
  • Live checks for the batched restart: after the restart and after a Restart Shell, every tray icon is back (busctl --user list | grep StatusNotifierItem: Mulberry, equibop, Claude, ABDownloadManager) and each one's menu opens; Mulberry keeps playing and its window still responds to play/pause; ps -o stat=,comm= --ppid $(pgrep -x caelestia-shell) shows no Z and one pactl.
  • Note: the user has two Mulberry processes running (711560, 712208, started 11 s apart this morning), maybe a second start after a freeze.
  • Later: notifs.rs serves then requests its name on a plain connection (same race, smaller window: use the builder); current_exe() reads " (deleted)" after install replaces the binary, so Restart Shell's exec likely fails until a real restart; sync_idle's own swayidle kill is now redundant.

S026 — One motion pace, never under 30 fps; motion mode (2026-11-13)

  • Cause of the uneven pace: the bar bars had a 50 ms throttle (13.5 fps), the background waited for the next audio burst after its 25 ms gap (19 fps, so the desktop lyrics' 200 ms slide looked slow), and the lock drew on a 33 ms timer (24 fps). Lyric speeds already match the original.
  • pace.rs + appearance.motionMode (Nexus Appearance, "Motion"): Normal keeps each part's pace with a 25 ms floor, Smooth every frame callback, Performance 15 a second. A held-back part gets one loop wake (App::paced, D-021). The lock now draws on frame callbacks; Nexus flick steps by real time; shapes' dt cap 0.1 s; dashboard lyrics carry the position forward.
  • Nested niri (AUDIT, "Motion pace"): bars 35, background 33, dashboard 40, lock typing 38 in Normal; Smooth 33/42/65/46; Performance ≤ 14.8. Idle desktop and lock 0 frames; the dashboard Media tab spins its shape by design. CPU desktop with music 13% → 17% Normal (21% Smooth, 9% Performance). Mode reload is live.
  • Tests: pace::tests::modes_bound_each_pace, background::tests::bars_ease_alike_at_any_frame_rate; cargo test --release 98 passed; fuzz 857 tried, 0 crashed. Only nested-tested, not live.
  • Not proved: Performance-mode lock fps and game mode fps on a visible screen (the nested window kept scrolling out of view; hidden niri sends 1 callback a second). Game mode logic is proved nested: the tap stops and the background paints once in 5 s; one visible run read 38 background fps at 0.3 ms in game mode, not reproduced.
  • Live checks for the batched restart (or run live.sh in the S026 session scratchpad: it measures on the real screens with config copies and puts validated 17a7774 back): bar bars and the desktop visualiser look even with music on both monitors; desktop lyrics slide smoothly; typing on the lock is smooth; Nexus "Motion" Performance makes motion visibly choppier and Smooth smoother without a restart; game mode on: no visualiser frames (CAELESTIA_PROF=1 shows no bg rows) in all three modes.
  • Later: Media.qml's bar bars ease height over 50 ms (OutQuad) and park flat when paused or with animations off; ours draw the raw level, so Smooth gains nothing there. Slider drags apply at most every 40 ms (slide), so the knob moves at 25 fps.

S003 — Sweep: bar items and bar popouts (2026-11-13)

  • Compared every bar item and popout with a0bc311 (modules/bar/**); logged §3.1–§3.15 in ISSUES, 12 fixed, 3 open.
  • Fixed: media bars ease 50 ms OutQuad and park flat with animations off (S026's note); keep awake button pill, colours, autoHide read; power/show desktop right-click opens Nexus Session/Desktop; show desktop arrow turns; kb layout right-click menu; shortcuts and clock clicks toggle their popouts, shortcuts icon colour while open; status icons spread on hover; workspaces occupied strip and gap markers; popout inset padding.large; menu row hover radius 12.
  • Open (Later): §3.9 per-device Bluetooth icons (needs a live device feed), §3.13 cross-fade between popouts (needs an opacity layer), §3.14 bar.previewScale rows have no reader.
  • Verified: cargo test --release 99 passed (new ui::tests::media_bars_park_flat_without_animations), fuzz 857 tried, 0 crashed; snapshots of the bar on all four edges (full and user config) and every popout, looked at. Only snapshot-tested: no pointer was used.
  • Live checks for the batched restart: bar bars glide with music and lie flat with animations off; hover status icons (they spread), right-click power and show desktop (Nexus opens), right-click the kb layout pill if enabled; click the clock twice (closes, reopens); click shortcuts (toggles); keep awake on/off look.
  • Later: the clock's 150 ms hover delay; keep awake chip fade/scale; workspace strip and marker fades; vertical bar with every item on overlaps (too long for 900 px, no clipping).

S004 — Sweep: dashboard tabs (2026-11-13)

  • Compared every tab with a0bc311 (modules/dashboard/**, gpu.cpp); logged §3.16–§3.27, 8 fixed, 4 open, Wallhaven left out (no tab entry in the original).
  • Fixed: tab slide hit areas cut to the view (easing already DefaultSpatial); user card logo (distro logo or Caelestia logo in onPrimaryContainer) and fallback alpha; calendar middle click goes to today (dashboard and clock popout); GPU name from lspci -Dnn ("Radeon RX 6400/6500 XT/6500M", was "amdgpu GPU"); Weather tab hourly is the curve HourStrip (EmphasizedLarge glide); Notes audio Play/Pause (ffplay, SIGSTOP), Record/Stop (ffmpeg -f pulse → notes/audio/note-<id>.m4a), Upload for audio and image (copied into notes/); Terminal input 36 px with a primary border, mono 12 pt, output inset, plain echoed command.
  • New tool: --snapshot out.png --dashboard --tab A --switch-to B (frames + panel rect). Pixel check on 7 switches: 0 pixels outside the panel (bar row excluded).
  • Verified: cargo test --release 101 + 6 passed (new dashboard::tests::hits_stay_inside_the_view, dashdata::tests::lspci_names_the_card; ignored dashnotes::tests::audio_player_and_recorder passed on silence); snapshots of every tab before and after, looked at. No config or Nexus change, so no fuzz. Only snapshot-tested: no pointer, no live shell.
  • Live checks for the batched restart: Performance tab shows "GPU Radeon RX 6400/6500 XT/6500M"; dashboard user card shows the Arch logo; middle-click the dashboard calendar on another month (back to today); switch tabs and click just beside the panel during the slide (drawer closes, no hidden button fires); Weather tab: open Hourly, step the arrows (strip glides); Notes: new audio note, Record a few seconds, Stop, Play, Pause, Play (resumes), Upload an audio file and an image (both copied under ~/.local/state/caelestia/notes/); Terminal tab: border and prompt look.
  • Open (Later): §3.18 bubble slnt and two-line splash; §3.21 indeterminate bar; §3.23 Weather tab with hourly open is 892 px tall on a 900 px screen (original sizes; needs a decision); §3.25 "Paste image URL…".
  • Note: --notes-demo / --notes-kind snapshots write the real notes_tab.json unless XDG_STATE_HOME points elsewhere.

S005 — Sweep: launcher, sidebar, utilities, OSD and session menu (2026-11-14)

  • Compared modules/launcher/**, sidebar/**, utilities/**, osd/**, session/** with a0bc311; logged §3.28–§3.47 in ISSUES: 7 fixed, 9 open, 4 left out or kept on purpose.
  • Fixed: launcher empty state (icon beside title and hint, per mode); >emoji ported (Unicode emoji-test.txt, favourites heart → launcher.favouriteEmojis, emoji-frequencies.json; unicode-emoji added to the installer's Arch/Fedora tools); >keybinds ported (niri binds, Enter runs niri msg action); recording delete is the original's modal, screenshot delete asks inline; OSD mic slider runs to maxVolume; tick on the bar Audio popout's output slider release and the Keep Awake switch; session buttons carry their labels.
  • Open (Later): §3.31 >animations (curves are built in), §3.32 wallpaper filters/folder tabs, §3.33 window carousel (no thumbnails), §3.34 scheme/variant live preview, §3.35 mode cross-fade, §3.39 sidebar News tab + header, §3.44 OSD hover elevation, §3.45 OSD slider grow/fade; §3.36 >search is S017's.
  • Verified: cargo test --release 103 passed (new launcher::emoji::tests::{reads_unicode_and_text_lists, ranks_like_emojidb}); fuzz 857 tried, 0 crashed; snapshots before and after of every launcher mode, utilities (both delete prompts, new --confirm ROW), OSD, session, sidebar, looked at. Only snapshot-tested: no pointer, no live shell, no sound heard.
  • Live checks for the batched restart: >emoji with unicode-emoji installed (sudo pacman -S unicode-emoji; without it the list is empty), pick one (copied, toast), heart one (shell.json launcher.favouriteEmojis), reopen (it leads); >keybinds, Enter on a harmless bind (e.g. focus a workspace); >clipboard with history empty; utilities: delete a recording (modal, Cancel, then Delete) and a screenshot (inline); Keep Awake switch ticks; bar Audio popout volume drag ticks on release; OSD mic slider (if enabled) matches its level; session menu labels.

Later

  • S004: dashboard §3.18 (bubble slant, two-line splash), §3.21 (indeterminate bar), §3.23 (Weather tab height with hourly open on 900 px screens), §3.25 (image URL field).
  • S005: launcher §3.31 (animation presets need token-driven curves), §3.32 (wallpaper filters and folder tabs), §3.33 (window card carousel), §3.34 (scheme/variant preview), §3.35 (mode cross-fade); sidebar §3.39 (News tab and tab header); OSD §3.44 (hover elevation), §3.45 (slider grow/fade).