S065: custom download managers by name and port (D-050), D-022 JSON on 127.0.0.1:<port>, smoke case
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
parent
8386b32064
commit
e258b5b120
1 changed files with 310 additions and 38 deletions
|
|
@ -515,6 +515,15 @@ Later: S010 list: user checks the Discord icon with their own client (the Discor
|
|||
- Verified: hidden `flyouts.txt` (needs `python3 -m http.server 8765 --directory tests/smoke/pages`) exit 0, shots read; `cargo test` 92 + webext 1.
|
||||
- Not done: favicons in flyout rows (icon only, as on the page); no visible run.
|
||||
|
||||
## S065 — Custom download manager by name and port (2026-11-18)
|
||||
- Done (D-050): Settings → Downloads → Download managers → "Add your own" (name + port, checked: name given, port 1–65535, one entry per port; the reason shows in the row); entries listed with "Found · port N" / "Not running", a switch and Remove; chosen in "New downloads go to" and the downloads flyout. Loopback only.
|
||||
- Settings: `downloads.custom_managers` = `[{name, port, enabled}]`, chosen as `downloads.manager = "custom:<port>"`. `net/dlm.rs`: `custom_key`, `is_on`, `label`, `enabled`, `parse_custom`, `custom_body`; ping = `GET http://127.0.0.1:<port>/`, hand-over = `POST /` with D-022's JSON (no token, D-050); fallback = Nacre downloads it, toast says why. Contract + example request + Python receiver: DESIGN.md "Custom download manager".
|
||||
- Smoke: `server.py` `POST /` records manager "custom" (port, Content-Type, body); `net-downloads.txt` custom case: handed over on 8767 (body checked in `/log`), fallback on port 9 → `file (3).zip`, `managers-custom` shot. Selftest `cmd ping_managers` (new).
|
||||
- Verified: `net-downloads.txt` exit 0 (also at 1400x2600, shot read); `cargo test` 94 + webext 1 (2 new dlm tests).
|
||||
- Not done: Add/Remove/switch not clicked in a smoke (set through settings JSON; the shot shows them).
|
||||
- Later: the managers page is wider than a 1280 px window (intro line and Port fields clipped at the right edge, seen in the 1280x800 shot; not from this plan).
|
||||
- Note: a stale `server.py` from an earlier session held port 8766; check `pgrep -f net/server.py` before starting one.
|
||||
|
||||
## Later
|
||||
- A link followed inside a frame still goes through the tab's navigation policy (WebKit's GTK API has no frame info; S050).
|
||||
- file:// media outside the XDG user folders doesn't play (WebKit sandbox, D-043).
|
||||
|
|
|
|||
Loading…
Reference in a new issue