Medlar/docs/HANDOFF.md
2026-11-27 07:59:55 -06:00

4.5 KiB

Handoff (2026-11-26, after 0.1.0 and the 0.1.1 fixes)

Goal: Medlar 0.1.1 with the user's fixes, installed on this PC through pacman, then a bug hunt. Releases on Astar Hub only after the user's yes.

Phase: version 1 done; 0.1.0 released (AppImage, tar.gz, Arch package, SHA256SUMS). Category 10 Distribution in progress. Work happens on branch claude/orchestrate-019859 (worktree .claude/worktrees/orchestrate-019859); main is fast-forwarded after each finished category or release (D-014/D-052).

Done

  • S045: installer.sh, packaging/arch/PKGBUILD (medlar-bin), tools/package.sh builds the Arch package.

  • S046 (0.1.1, check its INDEX line): sender names like output.bin give way to the server's name; arrivals raise the window (Focus + RequestUserAttention); Ctrl+C/Ctrl+A go to focused text fields; speed number smoothed and held ~1 s; Appearance setting "Progress bar: One bar / One per part"; snail mode capped at 8 kB/s (old 32 KiB default migrated) with a drawn snail button bottom right. Builds in dist/ (git-ignored).

  • S048: server farms (romsgames.net): same-size replies with other dates/tags proven by 64 KiB of bytes, no If-Range, tasks.farm (migration 007). Packages rebuilt in ~/Projects/Medlar/dist/ (0.1.1).

  • User's niri: ~/.config/niri/caelestia-windowrules.kdl has a Medlar rule (open-focused true; backup .bak-medlar). Arrival focus on niri needs S049 (IPC FocusWindow).

  • After S048: eframe clipboard feature enabled (paste/copy were dead everywhere); Ctrl+Q sets quitting; on Wayland close quits (shell.rs hides_on_close) until S047 brings real close-to-tray. Packages in ~/Projects/Medlar/dist/ (0.1.1), not launched.

  • Stopped 2026-11-27 at weekly 89 %. User asked: keep going until done when credits refresh (they are asleep), take the recommended choices. Ctrl+V on the list (no field focused) should open Add with the link: check in a hidden run.

  • 2026-11-27: S047 (close to tray on Wayland, App outlives the window), S049 (niri FocusWindow on arrival), 0.1.1 published on Astar Hub (4 files, sizes checked), S050 partly (flood test fixed, tray tooltip calm, dialog height tolerance). Full suite after S050: 37 test binaries ok. Stopped at weekly 95 %.

Next three (old list below is done except where noted)

  1. Finish S050: idle CPU with the Add dialog open and after a download ends (measure with tools/hidden.sh), snail overlap screenshot at 480x360.
  2. Live check on niri: a Nacre push focuses Medlar (S049), close to tray with caelestia's tray.
  3. Next version (0.1.2) with S050 fixes after the user's yes.

Old next three

  1. S047 (Plans/10 Distribution/S047-close-to-tray-wayland.md, Opus): close to tray on Wayland via eframe run_and_return and a session owned by main.
  2. Rebuild 0.1.1 packages after S047; give the user sudo pacman -U ~/Projects/Medlar/dist/Medlar-0.1.1-arch-x86_64.pkg.tar.zst (sudo needs their password; never type it); tell them to quit the running AppImage first. Ask yes/no for publishing 0.1.1 (version, contents, known bugs).
  3. Bug hunt: write a plan (S048) that walks every screen and flow the user uses (Nacre hand-off, settings, modes, snail, tray) and fixes what it finds.

Known bugs and gaps

  • control::connector_flood_15 fails (40 ok, 0 busy), cause not found (KNOWN BUG). CPU 160 % right after a download ended; idle not re-measured.
  • Tunal (other session): origin/main still has a commit with 65 MB of dist/; the force-push waits for the user.
  • From S046: snail button covers the last row's pause icon at 480x360; idle CPU 11 % with the Add dialog open (check what animates); tray tooltip speed not smoothed; a mirror timing test flaky under load; server names like data-1.bin count as placeholders. Put these in S048 (bug hunt).
  • dist/ now holds only 0.1.1 builds (package.sh wipes it); the 0.1.0 files are in releases/v0.1.0/.
  • Binary needs glibc 2.44; no .deb/.rpm (user chose Arch + installer only).
  • Not run: many MED screen and motion checks, real yt-dlp through the manager, pacman -U, real sudo --system install.
  • yt-dlp gets no cookies or global limit; playlist task named after its last file; soak memory 50 → 63 MB over 52 restarts.

Commands: nice cargo test -j 2 (absolute TMPDIR), nice cargo build --release -j 2 (never both), tools/hidden.sh, tools/package.sh (ARCH_ONLY=1 for the package only).

Decisions: the user's Medlar runs on 17616 from the 0.1.0 AppImage: tests use a spare port and throwaway home. The browser (Nacre) sends filename at click time, so it is only a hint.

Open questions: none.