Compare commits

..
Author SHA1 Message Date
2caff86bf1 Handoff and status after 0.1.1 release
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 07:59:55 -06:00
4f5d07d0fe S050: partial results, test file, PROGRESS
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 07:52:16 -06:00
6d56d3f58e S050: tray speed uses the held value; dialog height drift no longer repaints every frame
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 07:52:11 -06:00
ff1b1a06a9 S050: connector flood test fires in parallel so the limit shows
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 07:51:02 -06:00
2d79478ffc S050: bug hunt plan
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 07:50:26 -06:00
3dc4b04abe 0.1.1: release notes complete, package sums
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 07:48:57 -06:00
f560275327 S049: take focus on niri over IPC when a download arrives
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 07:44:25 -06:00
62147e743a S047: close to tray on Wayland: window reopens, hidden runs tested, tools/tray-check
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 07:33:47 -06:00
451f153925 S047: the app outlives its window; close to tray reopens through run_native_ext with one context
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 07:08:05 -06:00
fa00568641 Package sums for the quit fix build; handoff at weekly 89 %
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 22:15:52 -06:00
02d37f61a7 Ctrl+Q quits even with close to tray; on Wayland closing quits (no hiding there) until S047
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 22:12:18 -06:00
7d017c96ae package.sh pins the tar.gz sum it builds in PKGBUILD and .SRCINFO
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 18:28:57 -06:00
b057c86abc Enable egui clipboard: copy and paste in every text field and Ctrl+V on the list
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 18:20:30 -06:00
0d5b4a89d5 S049: plan for focus on niri through its IPC
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 18:07:00 -06:00
e6b089b609 Handoff: S048 done, open items
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 17:37:01 -06:00
4d95d6d98c S048: test file, release notes, packaging fixes, progress
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 17:36:34 -06:00
3500a4c25b S048: farm rule only over HTTP (FTP keeps mtime as proof of change); http test builds
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 14:28:22 -06:00
9f38019b14 S048: prove until the triggering version is sure; parts check counts three starts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 14:17:46 -06:00
fc7f04ac03 S048: per-version proof against a known sample, farm tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 14:13:53 -06:00
ed2f7c67e5 S048: farms with differing validators: byte proof, no If-Range, stored flag; testserver farm and liar modes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 13:58:03 -06:00
f6c8a5c57a S048: plan for server farms with differing validators (romsgames.net)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 13:52:23 -06:00
63f0046965 S046: tick plan boxes; handoff for the next session
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 13:18:32 -06:00
cfa789dce8 S046: packages, results, progress
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 13:18:00 -06:00
7d0587e424 S046: version 0.1.1, settings row key fix, release notes, test file
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 13:05:38 -06:00
7831445a6c S047: plan for close to tray on Wayland
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 12:51:01 -06:00
fdbb007f53 S046: snail test 2026-11-26 12:46:13 -06:00
6f06b10792 S046: readable speed, one-bar setting, snail button and 8 kB cap 2026-11-26 12:44:21 -06:00
8ffed89259 S046: tests fixed 2026-11-26 12:35:50 -06:00
a8c38788e1 S046: placeholder names give way to the server's, raise on arrival, copy in fields 2026-11-26 12:34:22 -06:00
51dc36f519 S046: plan for 0.1.1 fixes (server names, raise on arrival, copy in fields)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 12:32:46 -06:00
e02f5244a2 S045: GUI libraries in depends, uninstall removes empty folders and mimeapps line
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 12:24:36 -06:00
391a5d3a7d S045: installer.sh, Arch package (medlar-bin), package.sh builds it, README, test file
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 12:23:55 -06:00
7447e43cb9 S045: plan for installer.sh and Arch package
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 12:22:27 -06:00
c7dc0af2bb S039: 0.1.0 released on Astar Hub, status and handoff
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 12:21:28 -06:00
930c3d58ac Handoff after overnight run: S039 waits for the user's yes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 03:18:25 -06:00
95658dfd8d S039: package script, install scripts, README, release notes 0.1.0, test file; builds smoke-tested, nothing in releases/
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 03:17:40 -06:00
c5ab0c68e7 S039: connector test waits for the arrival instead of racing the answer; full suite green after S044
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 03:08:06 -06:00
e2ee4c082f S037: tick journeys (engine level) and INDEX after S044
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 02:57:26 -06:00
77b242b644 S044: video wired and tested, frame cost with 50 active, results and progress
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 02:56:59 -06:00
37d38770ba S044: video tests: manager with stub yt-dlp, Add dialog choices, add-video shots scene
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 02:46:13 -06:00
1ec26bdb7f S044: video tasks run through yt-dlp in the manager; Add dialog shows the video page for site links
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 02:41:47 -06:00
121df632bb S044: results, test report and progress; video wiring not done
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 02:36:15 -06:00
4218e15a16 S044: own copies skipped by a pure check with a test; live clipboard probe
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 02:28:20 -06:00
9a4c22d06e S044: links from outside: medlar: link, fresh link continues or is refused, Nacre body
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 02:21:15 -06:00
ff450e5e38 S044: details panel and when-done power tests; Power injected into the when-done picker
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 02:20:19 -06:00
d70d25e1ed S044: fix plan for open HIGH checks before packaging
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 00:57:28 -06:00
b84c6f632d S037: soak, load and hidden-run results, clipboard first-copy fix, features check
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 00:56:47 -06:00
83a3c22974 S037: security fixes (busy answer over 16 connections, DASH period cap and overflow), fuzz of parsers, soak and load tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 00:24:29 -06:00
b42bb0bd9a S043: tick last plan box
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 00:17:04 -06:00
adaee67bc5 S043: tests of video, tray, notifications, screens; fixes (region text, all-done after pause, arrow glyph, control tabs)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 00:16:01 -06:00
c50048bf21 S041: release build and hidden start checked, screen results, plan boxes ticked
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-25 23:59:24 -06:00
1e5d2e1109 S041: tests of control and connector, fixes (rules OR, settings rows, send icon), results
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-25 23:48:13 -06:00
53f09d3d84 S034: motion and look pass: drop overlay fade, queue card glide, rules empty state and copy, test file
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 22:53:25 -06:00
4ac8cd9379 S033: tray, notifications, launcher progress, autostart, metainfo, test file
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-25 22:49:31 -06:00
8e00dcd6cc S027: rules engine, clipboard watcher, drops, drop target, rules and clipboard pages, test file
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-25 22:45:54 -06:00
b01c24244f S025: yt-dlp video sites: finder, probe, run, error kinds, video page, test file
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-25 22:40:06 -06:00
f90076e76a S024: tick plan boxes, note fix
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-25 21:58:41 -06:00
b8ebadb4ba S024: tick plan boxes
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-25 21:58:34 -06:00
7a4ba45c9d S024: hand-off flow: browser links to the Add window or a continued download, single instance, connector page
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-25 21:58:04 -06:00
fe012decc0 S023: browser port on loopback with Host, Origin, type and preflight guards, link checks, sender log
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 21:54:37 -06:00
6fa8330b4f S022: control screens: modes, limit dial, queues, week grid, done action
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-25 21:29:37 -06:00
4407404b85 S021: queue schedules, pause and limits, dependencies, power actions
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-25 21:23:13 -06:00
156 changed files with 11083 additions and 302 deletions

View file

@ -69,6 +69,7 @@ Never modify: everything outside this folder. `~/Projects/*` is read-only refere
| `python3 tools/gen_assets.py icons` | adds icons: put the name in `tools/icons.txt` first | S003 |
| `nice cargo build --release -j 2` | release build (never at the same time as the tests) | 01 Foundation |
| `nice cargo test -j 2 -p medlar-testserver` / `cargo run -p medlar-testserver -- [--port N] [--tls] [--media] [--proxies]` | local server with faults and proxy stubs; API in the `crates/testserver/src/lib.rs` header | S002 |
| `PORT=… TS=… tools/tray-check/run.sh <name> <driver> [tray] [second]` | close to tray in a hidden niri with a fake tray host (drivers `tray.sh`, `notray.sh`, `min.sh`); testserver on `$TS` | S047 |
| `ssh root@192.168.1.71 hub-release` | release notes on Astar Hub (release only, after the user's yes) | now |
Don't assume a tool exists: check first. When your plan creates a tool, add its row here.

155
Cargo.lock generated
View file

@ -714,18 +714,42 @@ dependencies = [
"thiserror 1.0.69",
]
[[package]]
name = "calloop"
version = "0.14.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "43b32313e937c8721c9d17ee9bf60699a6402b4b7c2cb6ac1bee0ffcaa4b4e5e"
dependencies = [
"bitflags 2.13.2",
"polling",
"rustix 1.1.6",
"tracing",
]
[[package]]
name = "calloop-wayland-source"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "95a66a987056935f7efce4ab5668920b5d0dac4a7c99991a67395f13702ddd20"
dependencies = [
"calloop",
"calloop 0.13.0",
"rustix 0.38.44",
"wayland-backend",
"wayland-client",
]
[[package]]
name = "calloop-wayland-source"
version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "138efcf0940a02ebf0cc8d1eff41a1682a46b431630f4c52450d6265876021fa"
dependencies = [
"calloop 0.14.5",
"rustix 1.1.6",
"wayland-backend",
"wayland-client",
]
[[package]]
name = "cbc"
version = "0.2.1"
@ -946,6 +970,15 @@ dependencies = [
"cfg-if",
]
[[package]]
name = "crossbeam-queue"
version = "0.3.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "03e8bd762f7479489c70ed6c768ddca99d7296857de437a68dcb2a94365b3fae"
dependencies = [
"crossbeam-utils",
]
[[package]]
name = "crossbeam-utils"
version = "0.8.23"
@ -1370,6 +1403,7 @@ dependencies = [
"profiling",
"raw-window-handle",
"serde",
"smithay-clipboard",
"web-time",
"windows-sys 0.61.2",
"winit",
@ -2621,6 +2655,26 @@ dependencies = [
"accesskit_consumer",
]
[[package]]
name = "ksni"
version = "0.3.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1bcc1cb43797140f74b711f1c4a49f48a7a7429f211c5fb78264e7bcd1e99caf"
dependencies = [
"arc-swap",
"async-executor",
"async-io",
"async-lock",
"crossbeam-queue",
"futures-channel",
"futures-lite",
"futures-util",
"pastey",
"serde",
"task-local",
"zbus",
]
[[package]]
name = "kurbo"
version = "0.11.3"
@ -2758,13 +2812,15 @@ checksum = "7ebb8d8732c6a6df3d8f032a82911cfc747e00efb95cc46e8d0acd5b5b88570c"
[[package]]
name = "medlar"
version = "0.1.0"
version = "0.1.1"
dependencies = [
"arboard",
"chrono",
"dirs",
"eframe",
"egui_kittest",
"image",
"ksni",
"log",
"medlar-cli",
"medlar-core",
@ -2776,18 +2832,19 @@ dependencies = [
"tempfile",
"tokio",
"url",
"zbus",
]
[[package]]
name = "medlar-cli"
version = "0.1.0"
version = "0.1.1"
dependencies = [
"medlar-core",
]
[[package]]
name = "medlar-core"
version = "0.1.0"
version = "0.1.1"
dependencies = [
"aes",
"arc-swap",
@ -2831,7 +2888,7 @@ dependencies = [
[[package]]
name = "medlar-testserver"
version = "0.1.0"
version = "0.1.1"
dependencies = [
"md-5",
"rcgen",
@ -3605,6 +3662,12 @@ dependencies = [
"phc",
]
[[package]]
name = "pastey"
version = "0.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2ee67f1008b1ba2321834326597b8e186293b049a023cdef258527550b9935b4"
[[package]]
name = "pbkdf2"
version = "0.13.0"
@ -4900,8 +4963,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3457dea1f0eb631b4034d61d4d8c32074caa6cd1ab2d59f2327bd8461e2c0016"
dependencies = [
"bitflags 2.13.2",
"calloop",
"calloop-wayland-source",
"calloop 0.13.0",
"calloop-wayland-source 0.3.0",
"cursor-icon",
"libc",
"log",
@ -4918,6 +4981,44 @@ dependencies = [
"xkeysym",
]
[[package]]
name = "smithay-client-toolkit"
version = "0.20.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0512da38f5e2b31201a93524adb8d3136276fa4fe4aafab4e1f727a82b534cc0"
dependencies = [
"bitflags 2.13.2",
"calloop 0.14.5",
"calloop-wayland-source 0.4.1",
"cursor-icon",
"libc",
"log",
"memmap2",
"rustix 1.1.6",
"thiserror 2.0.21",
"wayland-backend",
"wayland-client",
"wayland-csd-frame",
"wayland-cursor",
"wayland-protocols",
"wayland-protocols-experimental",
"wayland-protocols-misc",
"wayland-protocols-wlr",
"wayland-scanner",
"xkeysym",
]
[[package]]
name = "smithay-clipboard"
version = "0.7.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "71704c03f739f7745053bde45fa203a46c58d25bc5c4efba1d9a60e9dba81226"
dependencies = [
"libc",
"smithay-client-toolkit 0.20.0",
"wayland-backend",
]
[[package]]
name = "smol_str"
version = "0.2.2"
@ -5130,6 +5231,15 @@ dependencies = [
"libc",
]
[[package]]
name = "task-local"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2972044a9e5e448a506a7ff6f0d03b566d8ef4cd6918a58fc59835a0f8666626"
dependencies = [
"pin-project-lite",
]
[[package]]
name = "tempfile"
version = "3.27.0"
@ -5417,6 +5527,7 @@ version = "0.1.44"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100"
dependencies = [
"log",
"pin-project-lite",
"tracing-attributes",
"tracing-core",
@ -5784,6 +5895,32 @@ dependencies = [
"wayland-scanner",
]
[[package]]
name = "wayland-protocols-experimental"
version = "20250721.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "40a1f863128dcaaec790d7b4b396cc9b9a7a079e878e18c47e6c2d2c5a8dcbb1"
dependencies = [
"bitflags 2.13.2",
"wayland-backend",
"wayland-client",
"wayland-protocols",
"wayland-scanner",
]
[[package]]
name = "wayland-protocols-misc"
version = "0.3.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6e9567599ef23e09b8dad6e429e5738d4509dfc46b3b21f32841a304d16b29c8"
dependencies = [
"bitflags 2.13.2",
"wayland-backend",
"wayland-client",
"wayland-protocols",
"wayland-scanner",
]
[[package]]
name = "wayland-protocols-plasma"
version = "0.3.12"
@ -6264,7 +6401,7 @@ dependencies = [
"bitflags 2.13.2",
"block2 0.5.1",
"bytemuck",
"calloop",
"calloop 0.13.0",
"cfg_aliases",
"concurrent-queue",
"core-foundation 0.9.4",
@ -6285,7 +6422,7 @@ dependencies = [
"raw-window-handle",
"redox_syscall 0.4.1",
"rustix 0.38.44",
"smithay-client-toolkit",
"smithay-client-toolkit 0.19.2",
"smol_str",
"tracing",
"unicode-segmentation",

View file

@ -3,7 +3,7 @@ members = ["crates/*"]
resolver = "3"
[workspace.package]
version = "0.1.0"
version = "0.1.1"
edition = "2024"
license = "MIT"

View file

@ -11,14 +11,14 @@ FEATURES 2.6–2.9.
- docs/FEATURES.md §2
## Steps
- [ ] Queues: folder, limit, active count, order, schedule, done action; move tasks between them
- [ ] Schedules: times, weekdays, once, mode by time grid; time zone, daylight saving and missed-while-asleep rules; the clock is injectable
- [ ] Dependencies and delayed start; cycles refused
- [ ] When done: shut down, suspend, hibernate, log out, lock, quit, run command, with a cancellable countdown; conditions (all, queue, task)
- [ ] logind through zbus, inhibit suspend while downloading; capabilities checked first
- [ ] Run program: argument list with placeholders, no shell, timeout, output in the log
- [ ] Test file `docs/tests/S021-queues-schedule-power.md`, with the checks below
- [ ] `docs/PROGRESS.md` entry, tick `Plans/INDEX.md`, commit `S021: …`, push
- [x] Queues: folder, limit, active count, order, schedule, done action; move tasks between them
- [x] Schedules: times, weekdays, once, mode by time grid; time zone, daylight saving and missed-while-asleep rules; the clock is injectable
- [x] Dependencies and delayed start; cycles refused
- [x] When done: shut down, suspend, hibernate, log out, lock, quit, run command, with a cancellable countdown; conditions (all, queue, task)
- [x] logind through zbus, inhibit suspend while downloading; capabilities checked first
- [x] Run program: argument list with placeholders, no shell, timeout, output in the log
- [x] Test file `docs/tests/S021-queues-schedule-power.md`, with the checks below
- [x] `docs/PROGRESS.md` entry, tick `Plans/INDEX.md`, commit `S021: …`, push
## End criteria
`nice cargo check -q -j 2 -p medlar` clean

View file

@ -12,14 +12,14 @@ FEATURES 2.1–2.3, 2.6–2.9 and 9.5 on screen (automatic limiter and quota are
- crates/app/src/ui/{wave,graph}*
## Steps
- [ ] Mode switch in the toolbar as a connected group, snail included
- [ ] Limit dial: wavy slider with spring handle, log scale, typing and units
- [ ] Priority control in rows and details, share preview; "only this one"
- [ ] Queue page: cards with live totals, drag tasks and order, edit sheet
- [ ] Week grid for modes and starts: paint by drag, keyboard too
- [ ] Done-action picker with countdown sheet
- [ ] Test file `docs/tests/S022-control-screens.md`, with the checks below
- [ ] `docs/PROGRESS.md` entry, tick `Plans/INDEX.md`, commit `S022: …`, push
- [x] Mode switch in the toolbar as a connected group, snail included
- [x] Limit dial: wavy slider with spring handle, log scale, typing and units
- [x] Priority control in rows and details, share preview; "only this one"
- [x] Queue page: cards with live totals, drag tasks and order, edit sheet
- [x] Week grid for modes and starts: paint by drag, keyboard too
- [x] Done-action picker with countdown sheet
- [x] Test file `docs/tests/S022-control-screens.md`, with the checks below
- [x] `docs/PROGRESS.md` entry, tick `Plans/INDEX.md`, commit `S022: …`, push
## End criteria
`nice cargo check -q -j 2 -p medlar` clean

View file

@ -12,15 +12,15 @@ A browser hands links to 127.0.0.1:17616; nothing else can abuse it. FEATURES 4.
- CLAUDE.md §4
## Steps
- [ ] Server on loopback only, changeable port, on and off live, port-in-use state that names the fix
- [ ] `GET /` ping with name and version; `POST /` with one link or a list, unknown fields ignored, size and rate limits, answers 2xx quickly
- [ ] Refuses foreign `Host` (DNS rebinding), any web `Origin`, form content types and preflights; no CORS headers
- [ ] Checks links (http, https, ftp, ftps, sftp, stream schemes only), names and headers; hop-by-hop and injection headers dropped
- [ ] Cookies, referrer and user agent used for the download and kept through the keyring module
- [ ] Sender log: when, what, accepted or why not; sender process name from /proc/net/tcp where possible
- [ ] docs/CONNECTOR.md: format, examples with curl, security notes
- [ ] Test file `docs/tests/S023-port-server.md`, with the checks below
- [ ] `docs/PROGRESS.md` entry, tick `Plans/INDEX.md`, commit `S023: …`, push
- [x] Server on loopback only, changeable port, on and off live, port-in-use state that names the fix
- [x] `GET /` ping with name and version; `POST /` with one link or a list, unknown fields ignored, size and rate limits, answers 2xx quickly
- [x] Refuses foreign `Host` (DNS rebinding), any web `Origin`, form content types and preflights; no CORS headers
- [x] Checks links (http, https, ftp, ftps, sftp, stream schemes only), names and headers; hop-by-hop and injection headers dropped
- [x] Cookies, referrer and user agent used for the download and kept through the keyring module
- [x] Sender log: when, what, accepted or why not; sender process name from /proc/net/tcp where possible
- [x] docs/CONNECTOR.md: format, examples with curl, security notes
- [x] Test file `docs/tests/S023-port-server.md`, with the checks below
- [x] `docs/PROGRESS.md` entry, tick `Plans/INDEX.md`, commit `S023: …`, push
## End criteria
`nice cargo check -q -j 2 -p medlar` clean

View file

@ -13,13 +13,13 @@ From a click in the browser to a running or continued download. FEATURES 4.4, 4.
- ~/Projects/Nacre/tools/hidden.sh
## Steps
- [ ] Incoming links open the Add dialog filled in; a list opens batch; several in a row queue up without stealing focus twice
- [ ] A match to an unfinished download offers "Continue" first and shows the verdict; a task waiting on "open source page" takes the link by itself after the check
- [ ] Setting "add without asking" with type and size rules, off by default
- [ ] Connector page: state, port, test link button, sender log, steps for Nacre's custom manager
- [ ] Single instance by socket; a second launch hands over its arguments; `medlar:` scheme and `.metalink` in the desktop file
- [ ] Test file `docs/tests/S024-handoff-flow.md`, with the checks below
- [ ] `docs/PROGRESS.md` entry, tick `Plans/INDEX.md`, commit `S024: …`, push
- [x] Incoming links open the Add dialog filled in; a list opens batch; several in a row queue up without stealing focus twice
- [x] A match to an unfinished download offers "Continue" first and shows the verdict; a task waiting on "open source page" takes the link by itself after the check (partial: only via the Add dialog's own match logic for unfinished downloads; awaited tasks continue by themselves)
- [x] Setting "add without asking" with type and size rules, off by default
- [x] Connector page: state, port, test link button, sender log, steps for Nacre's custom manager
- [x] Single instance by socket; a second launch hands over its arguments; `medlar:` scheme and `.metalink` in the desktop file (partial: .desktop not installed by any script)
- [x] Test file `docs/tests/S024-handoff-flow.md`, with the checks below
- [x] `docs/PROGRESS.md` entry, tick `Plans/INDEX.md`, commit `S024: …`, push
## End criteria
`nice cargo check -q -j 2 -p medlar` clean

View file

@ -12,13 +12,13 @@ FEATURES 6.1 with the system's yt-dlp (D-011).
- `yt-dlp --help` (format, output, progress parts)
## Steps
- [ ] Finder and version check, missing and too-old states in plain words
- [ ] Probe to JSON: formats, audio, subtitles, chapters, playlists; cached and cancellable
- [ ] Add dialog page: quality choice with sizes, audio only, subtitles, playlist picker
- [ ] Run as a task: progress template parsed to parts and speed, pause by stop and resume, limits passed on, cookies through a private temp file
- [ ] Errors mapped to kinds: private, removed, region, login, unsupported, too many requests; DRM refused
- [ ] Test file `docs/tests/S025-video-sites.md`, with the checks below
- [ ] `docs/PROGRESS.md` entry, tick `Plans/INDEX.md`, commit `S025: …`, push
- [x] Finder and version check, missing and too-old states in plain words
- [x] Probe to JSON: formats, audio, subtitles, chapters, playlists; cached and cancellable
- [x] Add dialog page: quality choice with sizes, audio only, subtitles, playlist picker
- [x] Run as a task: progress template parsed to parts and speed, pause by stop and resume, limits passed on, cookies through a private temp file
- [x] Errors mapped to kinds: private, removed, region, login, unsupported, too many requests; DRM refused
- [x] Test file `docs/tests/S025-video-sites.md`, with the checks below
- [x] `docs/PROGRESS.md` entry, tick `Plans/INDEX.md`, commit `S025: …`, push
## End criteria
`nice cargo check -q -j 2 -p medlar` clean

View file

@ -12,14 +12,14 @@ FEATURES 3.3, 3.4, 3.9.
- ~/Projects/Nacre/Cargo.toml (arboard line)
## Steps
- [ ] Rules engine: conditions (extension, MIME, host, size, name pattern) to folder, queue, tags, priority, name template; order, test box, default rule set by type
- [ ] Name templates with safe placeholders and collision handling
- [ ] Clipboard watcher: off, ask, add; filters; ignores our own copies; privacy note; Wayland limits stated honestly
- [ ] Drop links, text, lists and `.metalink` on the window with a full-window drop state
- [ ] Floating drop target: small wavy ring with speed, own always-on-top window where the compositor allows, else a compact window; accepts drops; context menu
- [ ] Rules and clipboard pages
- [ ] Test file `docs/tests/S027-rules-clipboard-drop.md`, with the checks below
- [ ] `docs/PROGRESS.md` entry, tick `Plans/INDEX.md`, commit `S027: …`, push
- [x] Rules engine: conditions (extension, MIME, host, size, name pattern) to folder, queue, tags, priority, name template; order, test box, default rule set by type
- [x] Name templates with safe placeholders and collision handling
- [x] Clipboard watcher: off, ask, add; filters; ignores our own copies; privacy note; Wayland limits stated honestly
- [x] Drop links, text, lists and `.metalink` on the window with a full-window drop state
- [x] Floating drop target: small wavy ring with speed, own always-on-top window where the compositor allows, else a compact window; accepts drops; context menu
- [x] Rules and clipboard pages
- [x] Test file `docs/tests/S027-rules-clipboard-drop.md`, with the checks below
- [x] `docs/PROGRESS.md` entry, tick `Plans/INDEX.md`, commit `S027: …`, push
## End criteria
`nice cargo check -q -j 2 -p medlar` clean

View file

@ -12,13 +12,13 @@ FEATURES 8.1, 8.4.
- ksni docs
## Steps
- [ ] Tray icon with progress ring and speed tooltip; menu: modes, pause all, resume all, add, show, quit
- [ ] Close to tray, start minimised, autostart file; works without a tray host
- [ ] Notifications: done, failed, needs login, all done, with actions (open, show folder, continue, retry); grouped, quiet hours
- [ ] Launcher progress through the Unity D-Bus signal
- [ ] Desktop file, metainfo, MIME and scheme entries checked by their validators when present
- [ ] Test file `docs/tests/S033-tray-notify.md`, with the checks below
- [ ] `docs/PROGRESS.md` entry, tick `Plans/INDEX.md`, commit `S033: …`, push
- [x] Tray icon with progress ring and speed tooltip; menu: modes, pause all, resume all, add, show, quit
- [x] Close to tray, start minimised, autostart file; works without a tray host
- [x] Notifications: done, failed, needs login, all done, with actions (open, show folder, continue, retry); grouped, quiet hours
- [x] Launcher progress through the Unity D-Bus signal
- [x] Desktop file, metainfo, MIME and scheme entries checked by their validators when present
- [x] Test file `docs/tests/S033-tray-notify.md`, with the checks below
- [x] `docs/PROGRESS.md` entry, tick `Plans/INDEX.md`, commit `S033: …`, push
## End criteria
`nice cargo check -q -j 2 -p medlar` clean

View file

@ -11,13 +11,13 @@ One look and feel, and motion that earns its place (D-008, FEATURES 9.7). Was S0
- crates/app/src/{motion,tokens}*, then the views by `rg` hits only
## Steps
- [ ] One list of faults across all screens, by leverage: motion, edges, grid, radii, sizes, states, copy, focus; drop what is by design
- [ ] Fix every high and medium motion fault
- [ ] Fix every high and medium look fault; no literal colours or radii outside tokens
- [ ] Hide every setting, menu entry and tab of a feature that is Later (PLAN.md), so nothing on screen does nothing
- [ ] Copy, empty states, AccessKit names, focus and 32 px hit targets
- [ ] Test file `docs/tests/S034-motion-audit.md`: each fixed motion with normal, reduced and off; keyboard only; sizes 480, 900, 1600, 3440; light, dark, AMOLED; long names and big numbers
- [ ] `docs/PROGRESS.md` entry, tick `Plans/INDEX.md`, commit `S034: …`, push
- [x] One list of faults across all screens, by leverage: motion, edges, grid, radii, sizes, states, copy, focus; drop what is by design
- [x] Fix every high and medium motion fault
- [x] Fix every high and medium look fault; no literal colours or radii outside tokens
- [x] Hide every setting, menu entry and tab of a feature that is Later (PLAN.md), so nothing on screen does nothing
- [x] Copy, empty states, AccessKit names, focus and 32 px hit targets
- [x] Test file `docs/tests/S034-motion-audit.md`: each fixed motion with normal, reduced and off; keyboard only; sizes 480, 900, 1600, 3440; light, dark, AMOLED; long names and big numbers
- [x] `docs/PROGRESS.md` entry, tick `Plans/INDEX.md`, commit `S034: …`, push
## End criteria
`nice cargo check -q -j 2 -p medlar` clean

View file

@ -11,13 +11,13 @@ Version 1 is solid, light and complete. Was S037 and S038.
- CLAUDE.md §4, docs/CONNECTOR.md, docs/TEST-REPORT.md
## Steps
- [ ] Security review of connector, names, child processes, Metalink and stream parsers, secrets on disk and in logs; fix with one regression test each
- [ ] Short fuzz tests of the parsers: headers, Content-Disposition, HLS, DASH, Metalink, listing, patterns
- [ ] Start time, idle CPU, memory with 10,000 tasks, frame cost with 50 active, loopback speed against curl; fix what stands out, record before and after
- [ ] Soak script with random faults, pauses, kills and limit changes: 20 minutes, once; every file checked
- [ ] Journeys in one hidden run: first start to finished download; pause, restart, continue; expired link continued; queue with schedule; store of an early commit still opens
- [ ] docs/FEATURES-CHECK.md: one row per version 1 id with proof and result; Results in `docs/tests` count as proof; small gaps fixed here
- [ ] `docs/TEST-REPORT.md` line, `docs/PROGRESS.md` entry, tick `Plans/INDEX.md`, commit `S037: …`, push
- [x] Security review of connector, names, child processes, Metalink and stream parsers, secrets on disk and in logs; fix with one regression test each
- [x] Short fuzz tests of the parsers: headers, Content-Disposition, HLS, DASH, Metalink, listing, patterns
- [x] Start time, idle CPU, memory with 10,000 tasks, frame cost with 50 active, loopback speed against curl; fix what stands out, record before and after
- [x] Soak script with random faults, pauses, kills and limit changes: 20 minutes, once; every file checked
- [x] Journeys in one hidden run: first start to finished download; pause, restart, continue; expired link continued; queue with schedule; store of an early commit still opens (engine level and S044 port tests; hidden UI journey not repeated)
- [x] docs/FEATURES-CHECK.md: one row per version 1 id with proof and result; Results in `docs/tests` count as proof; small gaps fixed here
- [x] `docs/TEST-REPORT.md` line, `docs/PROGRESS.md` entry, tick `Plans/INDEX.md`, commit `S037: …`, push
## End criteria
- `nice cargo test -j 2` green, except listed known bugs

View file

@ -12,14 +12,14 @@ Builds that run on older distros without downloads (D-011), a clear repo page an
- docs/FEATURES-CHECK.md, docs/CONNECTOR.md
## Steps
- [ ] tar.gz with install and uninstall scripts for the user's home, desktop file, icons; AppImage with the appimagetool in ~/Projects/Mulberry/dist (copied to a temp folder), portable-mode support
- [ ] glibc and library needs listed, lowest supported glibc stated; system libraries not bundled
- [ ] Smoke test of both builds: launch hidden, download from the test server, status file and shots, looked at; yt-dlp and ffmpeg missing on PATH
- [ ] README with shots from real runs, install, connector steps, limits and known bugs; no hype
- [ ] Release notes in docs/releases/0.1.0.md; version set everywhere; checksums made, nothing in releases/ yet
- [ ] 🧑 Version, contents, known bugs and the size of bundling yt-dlp and ffmpeg told to the user; wait for the yes
- [ ] After the yes: files to releases/v0.1.0/, notes with hub-release, page checked
- [ ] docs/STATUS.md, `docs/PROGRESS.md` entry, tick `Plans/INDEX.md`, commit `S039: …`, push
- [x] tar.gz with install and uninstall scripts for the user's home, desktop file, icons; AppImage with the appimagetool in ~/Projects/Mulberry/dist (copied to a temp folder), portable-mode support
- [x] glibc and library needs listed, lowest supported glibc stated; system libraries not bundled
- [x] Smoke test of both builds: launch hidden, download from the test server, status file and shots, looked at; yt-dlp and ffmpeg missing on PATH
- [x] README with shots from real runs, install, connector steps, limits and known bugs; no hype
- [x] Release notes in docs/releases/0.1.0.md; version set everywhere; checksums made, nothing in releases/ yet
- [x] 🧑 Version, contents, known bugs and the size of bundling yt-dlp and ffmpeg told to the user; wait for the yes
- [x] After the yes: files to releases/v0.1.0/, notes with hub-release, page checked
- [x] docs/STATUS.md, `docs/PROGRESS.md` entry, tick `Plans/INDEX.md`, commit `S039: …`, push
## End criteria
- both builds pass the smoke test

View file

@ -11,13 +11,13 @@ Run the checks of the test files of S017, S021, S022, S023, S024, fix what fails
- CLAUDE.md §4 and §5
## Steps
- [ ] Build everything, run the existing suite once with a log file, start the app hidden; fix what is broken before anything else
- [ ] Doubts first: read the code behind each, add a check or write why it is fine
- [ ] Write the tests for all HIGH and MED checks in one go, sharing fixtures and the testserver
- [ ] Run them once, all together, log to a file; read only the failures
- [ ] Fix all causes in one go; rerun only what failed; three rounds at most, then `KNOWN BUG` with the cause
- [ ] Screen checks: one contact sheet, faults fixed in one go, one more sheet
- [ ] Results filled in, `docs/TEST-REPORT.md` line, `docs/PROGRESS.md` entry, tick `Plans/INDEX.md`, commit `S041: …`, push
- [x] Build everything, run the existing suite once with a log file, start the app hidden; fix what is broken before anything else
- [x] Doubts first: read the code behind each, add a check or write why it is fine
- [x] Write the tests for all HIGH and MED checks in one go, sharing fixtures and the testserver
- [x] Run them once, all together, log to a file; read only the failures
- [x] Fix all causes in one go; rerun only what failed; three rounds at most, then `KNOWN BUG` with the cause
- [x] Screen checks: one contact sheet, faults fixed in one go, one more sheet (partly: no scenes exist for details, queues, week, countdown or handoff; only set-browser and add-continue sheets were seen)
- [x] Results filled in, `docs/TEST-REPORT.md` line, `docs/PROGRESS.md` entry, tick `Plans/INDEX.md`, commit `S041: …`, push
## End criteria
- the tests written here pass, except listed known bugs

View file

@ -11,12 +11,12 @@ Run the checks of the test files of S025, S027, S033, S034, fix what fails, fill
- CLAUDE.md §4 and §5
## Steps
- [ ] Doubts first: read the code behind each, add a check or write why it is fine
- [ ] Write the tests for all HIGH and MED checks in one go, sharing fixtures and the testserver
- [ ] Run them once, all together, log to a file; read only the failures
- [ ] Fix all causes in one go; rerun only what failed; three rounds at most, then `KNOWN BUG` with the cause
- [ ] Screen checks: one contact sheet, faults fixed in one go, one more sheet
- [ ] Results filled in, `docs/TEST-REPORT.md` line, `docs/PROGRESS.md` entry, tick `Plans/INDEX.md`, commit `S043: …`, push
- [x] Doubts first: read the code behind each, add a check or write why it is fine
- [x] Write the tests for all HIGH and MED checks in one go, sharing fixtures and the testserver
- [x] Run them once, all together, log to a file; read only the failures
- [x] Fix all causes in one go; rerun only what failed; three rounds at most, then `KNOWN BUG` with the cause
- [x] Screen checks: one contact sheet, faults fixed in one go, one more sheet
- [x] Results filled in, `docs/TEST-REPORT.md` line, `docs/PROGRESS.md` entry, tick `Plans/INDEX.md`, commit `S043: …`, push
## End criteria
- the tests written here pass, except listed known bugs

View file

@ -0,0 +1,29 @@
# S044 — Close the open HIGH checks and wire the video page
> Category 09 Test and release · Model: Opus (gate fix: open HIGH checks) · Effort: medium · Depends on: S037 · Phase: test · Human: no
> Files touched: crates/**, docs/tests/**, docs/TEST-REPORT.md, docs/FEATURES-CHECK.md
## Goal
The package gate (S039) needs no open HIGH check. After S037 these HIGH checks are still not run or failing; give each a harness (unit, integration or kittest, hidden run only where nothing else works), run it, fix what fails. Also make the video feature (FEATURES 6.1) usable from the app.
## Read
- docs/TEST-REPORT.md (S037 line), docs/tests/S037-whole-app.md
- the rows below in their test files; code only where a check needs it
- CLAUDE.md §4 and §5
## Steps
- [x] S017 5, 6, 7, 8, 15, 16 (details panel: removed task, error box, checksum, file gone, hidden headers, checksum field): kittest or integration
- [x] S021 19 (fake `Power` records the Fire(Shutdown) call; Logind never used)
- [x] S024 3, 8, 9, 10, 15 (handoff: medlar: link shows dialog, Continue offered, expired link continued or refused, hash identical) against testserver; S024 14 with Nacre's body replayed by curl if running Nacre hidden fails
- [x] S027 8 and 9 / S037 16 (clipboard Ask): find the cause of no Add window; fix, or prove it is the nested session's clipboard with a test of the watcher logic and mark it KNOWN BUG LOW with the proof
- [x] Video: show `video::Page` in the Add dialog for video links and run yt-dlp tasks through the manager (pause, resume, error kinds); stub yt-dlp tests; S025 16
- [x] S037 open boxes: frame cost with 50 active, journeys pause/restart/continue, expired link, queue with schedule, old store; record results
- [x] Full workspace suite once at the end (absolute TMPDIR); fix failures
- [x] Results filled in, `docs/TEST-REPORT.md` line, `docs/PROGRESS.md` entry, tick S037 boxes now done and its INDEX line, tick this plan's INDEX line, commit `S044: …`, push
## End criteria
- no HIGH row in docs/tests left as "not run" or failing, except a KNOWN BUG with proof that it is outside the app
- workspace suite green
## Pitfalls
Never weaken a test to pass. Fake D-Bus and logind only, testserver on loopback only, throwaway homes only, never download real video. Absolute `TMPDIR`. Release build and tests never at once.

View file

@ -0,0 +1,26 @@
# S045 — installer.sh and Arch package
> Category 10 Distribution · Model: Sonnet · Effort: medium · Depends on: S039 · Phase: test · Human: no
> Files touched: installer.sh, packaging/arch/**, tools/package.sh, README.md, docs/tests/S045-installer-arch.md
## Goal
The user asked for an installer script and an Arch package for 0.1.0. Debian and Fedora packages wait for a build on an older host (the binary needs glibc 2.44); not in this plan.
## Read
- tools/package.sh, the tar.gz's install.sh and uninstall.sh, assets/medlar.desktop, assets/medlar.metainfo.xml, README install section
- the user's global release rules (CLAUDE.md is loaded): file names `<App>-<version>-<platform>.<ext>`, no scripts or .md in releases/
## Steps
- [x] `installer.sh` at the repo root (POSIX sh, shellcheck-clean if shellcheck is present): installs from a given tar.gz or AppImage, or from one found next to it; `--user` (default, ~/.local) or `--system` (/usr/local, sudo only for the copy); desktop file, icons, metainfo, `medlar:` scheme handler; `--uninstall` (and `--purge` for data); refuses when glibc is older than 2.44 with a plain message; verifies SHA256SUMS when present. Optional `--url` download is allowed but the repo is private, so the default path is a local file
- [x] `packaging/arch/PKGBUILD` (+ `.SRCINFO`): `medlar-bin` from the release tar.gz with sha256sums, depends listed from the binary's needs (glibc, libxkbcommon, wayland, etc.), optdepends yt-dlp and ffmpeg, desktop file, icons, metainfo, license
- [x] Build the package with `makepkg` from the local tar.gz (no network: point `source` at the file in dist/ for the build); `namcap` if present; inspect contents with `bsdtar -tf`
- [x] Test, with throwaway roots only: installer.sh `--user` into a temp HOME, `--system` with `DESTDIR`/prefix into a temp dir, uninstall leaves nothing; package contents and file list checked; do NOT `pacman -U` on the real system
- [x] `tools/package.sh` also makes the Arch package as `dist/Medlar-0.1.0-arch-x86_64.pkg.tar.zst` and adds it to `dist/SHA256SUMS-0.1.0`; nothing into releases/ (the orchestrator adds it)
- [x] README: install sections for installer.sh and Arch; test file `docs/tests/S045-installer-arch.md` with Results; PROGRESS entry, tick INDEX, commit `S045: …`, `git push origin HEAD`
## End criteria
- installer installs and uninstalls cleanly in a throwaway home and prefix
- the Arch package builds offline and lists the right files
## Pitfalls
Never touch the real ~/.local, /usr or pacman database. No downloads (D-011). Never put scripts in releases/.

View file

@ -0,0 +1,29 @@
# S046 — 0.1.1: names from the server, raise on arrival, copy in fields
> Category 10 Distribution · Model: Sonnet · Effort: medium · Depends on: S045 · Phase: test · Human: 🧑 yes before release
> Files touched: crates/core/src/http/name.rs and its callers, crates/core/src/connector/**, crates/app/src/views/{incoming,add}/**, crates/app/src/keys.rs, crates/app/src/app.rs, version files, docs/releases/0.1.1.md, docs/tests/S046-fixes-0.1.1.md
## Goal
Three bugs the user found with 0.1.0 (Nacre on a real site):
1. **Name**: the browser hands over a provisional name (`output.bin`) at click time; the real name (archive) only comes with the server's reply (Content-Disposition, or the final link after redirects). Medlar keeps the sender's name, so the file stays `output.bin`.
2. **No raise**: a pushed download does not bring Medlar forward. `incoming.rs` sends `ViewportCommand::Focus` only, which Wayland (niri) ignores without an activation token, and does nothing when the window is hidden to the tray.
3. **Copy in fields**: in Settings (and every text field) Ctrl+C does not copy: `keys::pressed` lets the list's Copy shortcut (Ctrl+C) and Select all (Ctrl+A) eat the events while a text field has focus (`taken()` covers V, X, Z only).
## Read
- crates/core/src/http/name.rs (`pick`), where a task's name is set from a sender or the Add dialog and where the first reply is handled (rg `pick(`)
- crates/app/src/views/incoming.rs (`tick`, `ask`), app.rs lines ~255-330 (show/hide), crates/app/src/keys.rs (`pressed`, `taken`, `fits`)
- docs/CONNECTOR.md (`filename` field)
## Steps
- [x] Name: a name from a sender (connector `filename`, or the Add dialog when the user did not type it) is a hint. On the first reply, when the hint is generic (no extension, or an extension like bin, php, asp, aspx, cgi, html, htm, download, or a known placeholder such as `output.bin`, `download`, `file`) and the reply gives a name (Content-Disposition, else the final link with a file extension), use the reply's name, made safe as today, before any file is created; a name the user typed always wins; collisions handled as today (never overwrite). The Add dialog's probe updates the shown name the same way while the user has not edited it. Unit tests in name.rs and an engine test against testserver (provisional name + Content-Disposition, and a redirect to a named link)
- [x] Raise: on an arrival that shows the Add window or adds a download, if the main window is hidden show it (`Visible(true)`, `Minimized(false)`), then `Focus` and `RequestUserAttention(Critical)` (urgency where focus is refused); same for second-instance hand-over; clear the attention when the window gets focus. A kittest that records the viewport commands
- [x] Copy: while a text field has focus, Ctrl+C, Ctrl+A (and Ctrl+X, Ctrl+V, Ctrl+Z as now) go to the field, not to list shortcuts; settings values that are read-only text (paths, versions, the port, the token) are selectable or have a copy button where egui allows. Unit test for `pressed` with a focused field
- [x] Full workspace suite once (absolute TMPDIR), then release build; hidden smoke test: POST a link with `filename: output.bin` to a testserver URL that answers with Content-Disposition `game.zip`: Add window shows and the file is `game.zip`; window raised in the grab
- [x] Version 0.1.1 everywhere (Cargo, metainfo, PKGBUILD, .SRCINFO); `tools/package.sh` builds tar.gz, AppImage, Arch package and `SHA256SUMS-0.1.1` in dist/; `docs/releases/0.1.1.md`; nothing into releases/
- [x] Test file `docs/tests/S046-fixes-0.1.1.md` with Results, PROGRESS entry, tick INDEX, commit `S046: …`, `git push origin HEAD`
## End criteria
- the three bugs have passing regression tests; suite green; builds smoke-tested
## Pitfalls
File names from servers are hostile: same `safe` rules as today. Never rename over an existing file. Never contact the real site; testserver on loopback only. Release only after the user's yes.

View file

@ -0,0 +1,30 @@
# S047 — Close to tray that works on Wayland
> Category 10 Distribution · Model: Opus (ownership refactor of the app's lifetime) · Effort: medium · Depends on: S046 · Phase: test · Human: 🧑 yes before release
> Files touched: crates/app/src/{main,lib,app,shell,tray,instance}.rs, crates/app/src/views/incoming.rs, docs/tests/S047-close-to-tray.md, docs/releases/0.1.1.md
## Goal
The user closes the window with niri's close (Win+Q) and nothing happens. Cause (`app.rs` `shell()`): on close Medlar sends `CancelClose` then `Visible(false)`, but winit cannot hide a window on Wayland, so the window just stays. Without a tray host the close works; with one it is swallowed.
Wanted: closing hides Medlar to the tray (downloads, port, tray keep going) when the tray is on and a host exists; otherwise it quits cleanly. Show from the tray, a second start, or a browser hand-off brings a window back.
## Approach (check against eframe 0.37 docs before coding)
eframe with `NativeOptions::run_and_return = true` returns from `run_native` when the window closes and reuses its thread-local event loop on the next `run_native` call (winit `run_app_on_demand`). So:
- Move what must outlive a window out of `App` into a `Core`/`Session` owned by `main`: engine/manager bridge, connector `Inbox` source, tray/shell, notifications, launcher, instance socket, settings store. The `App` borrows or holds an `Arc` to it.
- On close with tray: let the close happen (no `CancelClose`); `run_native` returns; `main` waits on the tray/instance/connector for "show" (or "quit"), then calls `run_native` again with the same session. Window size and position come back from `window.ron`.
- Without a tray host, or tray off: close quits as today (pause and save, then exit).
- X11: same path (no special `Visible(false)` case left), so one behaviour everywhere.
- `--minimised` at start: start without a window when a tray host exists (wait for "show"), else open normally.
- Arrivals while hidden (S046 raise): reopen the window, then the Add dialog.
If `run_and_return` cannot reopen on this eframe/winit, stop and report with the error; do not build a second process design without asking.
## Steps
- [x] Read eframe 0.37 `run_and_return` / `run_native` docs and source in ~/.cargo/registry; confirm reopen works with a 20-line spike in a test or example
- [x] Session refactor: long-lived parts out of `App`; nothing else changes behaviour
- [x] Close/show/quit loop in `main` as above; tray Show and Quit, second instance, connector arrival, `--minimised`
- [x] Tests: unit for the decide-on-close logic (tray on/off, host yes/no); hidden nested niri run with a fake StatusNotifierWatcher (bus.rs from S043) on a spare port and throwaway home: send close (niri msg action close-window), process stays, downloads keep going (testserver, throttled), port answers; tray Show reopens; POST to the port reopens with the Add window; Quit ends with tasks saved; without the fake tray, close quits
- [x] Full workspace suite once, release build, smoke as S046; add to docs/releases/0.1.1.md; rebuild packages via tools/package.sh (0.1.1), nothing into releases/
- [x] Test file with Results, PROGRESS, tick INDEX, commit `S047: …`, push
## Pitfalls
The user's Medlar 0.1.0 is running on 17616: never stop it; spare port, throwaway home. Never weaken a test. Idle (hidden) draws no frames and uses ~0 CPU.

View file

@ -0,0 +1,30 @@
# S048 — Servers behind a load balancer with different validators
> Category 10 Distribution · Model: Opus (engine correctness, never mix two files) · Effort: medium · Depends on: S046 · Phase: test · Human: 🧑 yes before release
> Files touched: crates/core/src/http/{mod,fetch,download,parts}.rs, crates/testserver/**, crates/core/tests/**, docs/tests/S048-server-farms.md, docs/releases/0.1.1.md
## Goal
Downloads from romsgames.net (and any site with a server farm) fail at once with "File changed on the server". Seen on 2026-11-26 with four 1-byte range requests to the same link (`static.romsgames.net/.../output.bin?token`):
| range | Server | Last-Modified | ETag | Content-Range total |
|---|---|---|---|---|
| 0-0 | nginx/1.22.0 | Mon, 21 Jul 2025 20:20:29 | W/"bd6dcd82-1982ea51dc7" | 3178089858 |
| 1000000-1000000 | nginx/1.24.0 (Ubuntu) | Sun, 05 Jan 2020 05:35:27 | W/"bd6dcd82-16f743377f5" | 3178089858 |
| 0-0 | nginx/1.24.0 (Ubuntu) | Mon, 21 Jul 2025 20:20:29 | W/"bd6dcd82-1982ea51dc7" | 3178089858 |
| 2000000000-… | nginx/1.24.0 (Ubuntu) | Mon, 21 Jul 2025 20:20:29 | W/"bd6dcd82-1982ea51dc7" | 3178089858 |
All 206, same size, same type; nodes differ only in mtime (nginx ETag = `"<size hex>-<mtime hex>"`). `Validators::same_file` (http/mod.rs) and `send_range` (fetch.rs ~159) call that `Changed`. The user's task 8 failed after 32 KB.
## Rule (never mix two files)
When a reply's validators differ from the known ones but the total size is equal: do not fail. Check bytes instead: compare a sample of bytes already on disk with the same range from this reply (the existing `same_bytes` path in fetch.rs ~205; make the sample big enough, e.g. 64 KiB or what is there) before writing. Bytes equal → mark the task's link as a *farm* (validators unreliable): from then on compare size + byte samples only, send no `If-Range` (a Last-Modified `If-Range` makes other nodes answer 200 full), keep the first validators for display. Bytes differ, or size differs → `Changed` as today. A 200 to a range on a farm is `RangeIgnored`, not `Changed`. Also nginx-style ETags that differ only after the size part count as "maybe the same file" (still checked by bytes).
## Steps
- [x] testserver: a farm mode (several "nodes" with the same bytes but different Last-Modified/ETag picked per request, nginx-style weak ETags), and a liar mode (same size, different bytes) — docs in the lib.rs header
- [x] Engine: the rule above, in probe, parts and resume; the farm flag stored with the task (store migration) so a restart keeps it; parts on a farm still run in parallel
- [x] Tests: farm download with 4 parts completes with the right hash; pause/restart/resume on a farm; liar same-size-different-bytes still fails with Changed and keeps what is there; If-Range not sent on a farm; unit tests for the ETag comparison
- [x] Full workspace suite once (absolute TMPDIR), release build, hidden smoke against testserver farm on a spare port (the user's Medlar 0.1.1 runs on 17616: never stop it)
- [x] `tools/package.sh` (0.1.1, rebuilds dist/), copy the four files to `~/Projects/Medlar/dist/` as well; notes in docs/releases/0.1.1.md
- [x] Test file with Results, PROGRESS, tick INDEX, commit `S048: …`, `git push origin HEAD`
## Pitfalls
Never contact romsgames.net or any real site in tests; testserver only. Never weaken the "two files are never mixed" guarantee.

Some files were not shown because too many files have changed in this diff Show more