yetone
b2b3d488c1
settings: an SSH server as a saved proxy, and a failed proxy says why
...
@laiuuui on X (tweet 2122704105005314155) was told to put Gemini behind
a proxy in a supported region. Their VPSes give only SSH (address, port,
password or key), and every http:// proxy they added failed with Go's
words alone.
A saved proxy can now be an SSH server. Settings > Network > Add proxy
has Proxy | SSH; SSH asks for the server, the user and the password, and
Advanced (closed) holds a private key and the trusted host key. magpie
logs in itself with golang.org/x/crypto/ssh (no ssh command) and resolves
the @id to a SOCKS5 server of its own on loopback, which takes only its
own random login and carries each CONNECT as a direct-tcpip channel, as
ssh -D does: lazy login, keepalive@openssh.com every 20s, one re-login
when a channel finds the connection dead.
- Save logs in first: a refused login is said there and nothing is kept.
- The host key is trusted on first use, kept in authorized_keys form and
shown as its SHA256 fingerprint; another key is refused
(HostKeyChangedError, both fingerprints said) until Trust a new key.
- The key is a secret like the password: left out of backups and
syncs without keys, kept on a sync that has none.
- ssh:// typed as a plain address is refused: its login goes with a
saved proxy.
A failed proxy says why (netproxy.Why: an English template the page
translates in all five languages, Go's words after it): an SSH server
typed as http:// or socks5:// ("is an SSH server, not a proxy: add it as
SSH"), a refused login, keyboard-interactive refused (OpenSSH without
PAM, "unexpected message type 51"), nothing listening, not SSH, TLS on a
plain proxy, 407, timeouts, hangups, and a server that logs in but won't
forward (AllowTcpForwarding no, or macOS 27's sshd, which hangs up on
every forward, OpenSSH's own ssh -W too). A check the user asks for
reads the server's first bytes when Go's text can't tell: Go reads a
real OpenSSH banner ("SSH-2.0-OpenSSH_9.6p1 Ubuntu-3ubuntu13.20") as an
HTTP status line with a malformed code, and an SSH server's banner can
reach Go's transport before its request goes out
("readLoopPeekFailLocked", found red 1 of 20 on mica, then 40 of 40
green). Each save is tested at once.
app.js keeps one line (api() hands a proxy_why reply to proxies.js,
where proxyWhy now lives); both script budgets are raised by that line's
52/54 bytes, with the reason in core_budget_test.go.
Run (mica, at this head on origin/main 81c666e1c ):
- go test -tags nogui ./internal/netproxy/... ./internal/settings/
./internal/davsync/ ./internal/gui/ ./internal/provider/
./internal/backup/...: ok
- GOOS=linux and GOOS=windows go vet of netproxy, settings, gui; gofmt -l
internal: clean
- GUI, chromium and webkit, en/zh/zh-TW/ja/de, 1100 and 420px:
saved-ssh-proxy, saved-proxies, i18n-keys, provider-proxy-missing:
64/64
- Tests use netproxy/sshtest, an SSH server on loopback that answers
channels itself; nothing reaches the network.
Broken by hand, each red: accepting any host key
(TestSSHProxyRefusesAChangedHostKey); no login check on the SOCKS end
(TestSSHProxyLocalEndNeedsItsLogin); no SSH banner case and no banner
probe (TestProxyFailureNamesAnSSHServer, its OpenSSH-banner case); no
type-51 case (TestSSHProxySaysWhyItFailed, keyboard-interactive); no
code 2 for a hangup (TestSavedSSHProxyThatWontForward, both cases);
api() not handing proxy_why to proxies.js (saved-ssh-proxy, 20 of 20
cases red: err.why is already a failed move's reason).
Real use: Ubuntu 24.04 OpenSSH_9.6p1 (WSL magpie-desktop, a user sshd
on loopback, key login): the host key was learned, a Cloudflare trace
through the tunnel came back ip=104.194.93.45 loc=US, a wrong password
said "turned the login away", a changed host key said both
fingerprints, and http:// and socks5:// pointed at the sshd both said
"is an SSH server". mote's and mica's sshd (macOS 27, OpenSSH 10.5 and
10.3) log in and refuse every forward, now said as "won't forward
connections".
Not tried: a password login against a real sshd (the user sshd had no
shadow access), a real VPS, and the full go test ./... and full GUI
suite: both mote and mica were running other sessions' GUI suites the
whole time.
2026-11-18 01:01:30 +08:00
..
2026-11-18 01:01:30 +08:00
2026-10-30 15:00:16 +08:00
2026-11-18 01:01:30 +08:00
2026-11-01 03:49:03 +08:00
2026-11-03 14:09:42 +08:00
2026-11-15 00:13:05 +08:00
2026-11-13 03:49:41 +08:00
2026-11-15 03:50:46 +08:00
2026-10-30 18:03:55 +08:00
2026-11-03 18:23:13 +08:00
2026-11-14 02:22:28 +08:00
2026-11-06 16:51:15 +08:00
2026-11-14 23:11:16 +08:00
2026-11-13 04:22:45 +08:00
2026-11-14 23:11:16 +08:00
2026-11-07 04:03:01 +08:00
2026-11-18 01:01:30 +08:00
2026-11-16 16:37:40 +08:00
2026-11-14 19:10:06 +08:00
2026-11-14 19:10:06 +08:00
2026-10-13 09:55:23 +08:00
2026-10-27 18:58:16 +08:00
2026-11-11 10:15:40 +08:00
2026-10-24 21:01:18 +08:00
2026-11-16 11:25:30 +08:00
2026-10-05 14:37:44 +08:00
2026-11-11 10:28:05 +08:00
2026-11-11 10:28:05 +08:00
2026-11-11 10:28:05 +08:00
2026-11-04 20:20:41 +08:00
2026-11-14 12:34:47 +08:00
2026-11-12 09:46:34 +08:00
2026-11-02 18:24:38 +08:00
2026-11-17 22:41:26 +08:00
2026-11-14 21:05:50 +08:00
2026-11-13 22:46:00 +08:00
2026-11-11 03:41:37 +08:00
2026-11-11 03:41:37 +08:00
2026-11-10 18:58:03 +08:00
2026-11-09 06:57:40 +08:00
2026-11-06 22:11:02 +08:00
2026-11-09 06:57:40 +08:00
2026-11-09 20:12:30 +08:00
2026-11-14 14:02:49 +08:00
2026-10-25 05:54:07 +08:00
2026-10-25 01:23:42 +08:00
2026-11-15 03:50:46 +08:00
2026-11-07 03:21:57 +08:00
2026-11-11 15:07:21 +08:00
2026-11-11 06:26:47 +08:00
2026-11-05 18:28:38 +08:00
2026-11-15 03:50:46 +08:00
2026-11-11 10:56:41 +08:00
2026-11-11 10:56:41 +08:00
2026-11-07 05:16:53 +08:00
2026-11-13 04:08:39 +08:00
2026-10-13 11:13:24 +08:00
2026-10-13 11:13:24 +08:00
2026-11-09 23:19:14 +08:00
2026-10-26 15:35:12 +08:00
2026-11-01 21:19:22 +08:00
2026-10-10 22:36:28 +08:00
2026-11-16 18:59:40 +08:00
2026-10-31 09:17:24 +08:00
2026-11-13 13:58:00 +08:00
2026-10-29 22:10:21 +08:00
2026-10-29 22:10:21 +08:00
2026-11-16 17:23:50 +08:00
2026-11-03 13:34:35 +08:00
2026-11-03 13:34:35 +08:00
2026-11-07 04:03:01 +08:00
2026-11-07 20:10:28 +08:00
2026-11-07 20:10:28 +08:00
2026-10-30 16:05:58 +08:00
2026-11-08 18:13:30 +08:00
2026-11-12 11:42:35 +08:00
2026-11-13 10:48:07 +08:00
2026-11-18 01:01:30 +08:00
2026-10-07 03:34:05 +08:00
2026-10-31 04:21:21 +08:00
2026-11-12 12:50:57 +08:00
2026-11-10 13:46:13 +08:00
2026-11-10 13:46:13 +08:00
2026-11-13 18:39:28 +08:00
2026-11-01 16:43:21 +08:00
2026-11-14 11:42:50 +08:00
2026-09-28 18:56:50 +08:00
2026-11-13 05:31:22 +08:00
2026-11-15 23:05:56 +08:00
2026-10-29 20:53:36 +08:00
2026-11-06 22:56:33 +08:00
2026-10-25 19:28:05 +08:00
2026-11-06 22:56:33 +08:00
2026-10-25 19:28:05 +08:00
2026-10-25 19:28:05 +08:00
2026-11-06 17:22:52 +08:00
2026-11-07 20:10:28 +08:00
2026-11-08 22:25:58 +08:00
2026-11-17 04:29:02 +08:00
2026-11-17 04:29:02 +08:00
2026-11-05 00:11:02 +08:00
2026-11-01 17:28:15 +08:00
2026-11-01 17:28:15 +08:00
2026-10-25 19:28:05 +08:00
2026-11-04 04:47:02 +08:00
2026-11-04 04:47:02 +08:00
2026-10-09 12:10:04 +08:00
2026-11-04 20:20:41 +08:00
2026-10-28 12:25:39 +08:00
2026-11-12 18:00:00 +08:00
2026-11-13 22:46:00 +08:00
2026-11-11 10:15:40 +08:00
2026-10-30 19:12:35 +08:00
2026-11-12 12:50:57 +08:00
2026-11-01 11:43:56 +08:00
2026-11-01 11:43:56 +08:00
2026-11-01 11:43:56 +08:00
2026-11-04 23:55:14 +08:00
2026-11-12 09:46:34 +08:00
2026-11-04 20:20:41 +08:00
2026-11-17 00:21:23 +08:00
2026-11-10 19:36:24 +08:00
2026-11-10 19:36:24 +08:00
2026-11-03 02:37:56 +08:00
2026-10-28 03:50:46 +08:00
2026-10-15 00:34:14 +08:00
2026-11-13 13:04:03 +08:00
2026-09-25 02:19:32 +08:00
2026-11-08 02:08:30 +08:00
2026-11-09 21:51:53 +08:00
2026-11-10 00:13:44 +08:00
2026-11-02 14:13:52 +08:00
2026-10-28 17:34:16 +08:00
2026-10-11 18:57:48 +08:00
test: every package's tests pass on Windows, and none writes outside its sandbox (the user: 把 Windows 上那几个失败的测试修掉) — on a Windows box the suite failed in most packages, and the root package hung for 25 minutes. Tests set HOME, which os.UserHomeDir ignores on Windows (it reads USERPROFILE), so they read and wrote the runner's own home; each now sets USERPROFILE beside HOME, and Devin's, Goose's, Crush's and Claude Desktop's tests set APPDATA/LOCALAPPDATA, where those keep their files there. said() read the command's output only once it returned, and a pipe holds a few KB on Windows, so magpie model --help blocked forever; it reads while the command writes. Unix permission bits (the gateway key store's 0600 too), exec bits and symlinks Windows lacks are checked only off Windows; TOML strings hold Windows paths as literal strings, JSON as marshalled ones; a URL's path is compared as one. The provider and usage packages run in a home of their own (TestMain, as the gateway's already does), since a CLI's identity kept by a refresh still going when its test ended landed in the runner's ~/.config/magpie — and on a Mac in the user's own. Two product fixes came out of it: imagemcp took a file:///C:/… root or image for the path /C:/…, which doesn't exist on Windows, and now makes a Windows path of it (a host for a UNC share); and session discovery could keep a new Cowork session hidden on Linux, where a folder's mtime is a kernel tick and its size doesn't change, so an entry added within the tick of the last listing left both as they were — a listing made within 2s of its folder's last change is read again, as git does for racy files. TestFilePath and TestRacyDirectoryListedAgain fail without the change. On Windows 11 every package passes (32 of 32) and a run of each package in a fresh home leaves nothing in home, APPDATA or LOCALAPPDATA; on Linux (WSL) and macOS go test -tags nogui ./... passes. go vet, go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build pass.
2026-10-01 23:15:07 +08:00
2026-10-29 23:36:58 +08:00
2026-11-10 03:48:24 +08:00
2026-11-13 05:12:30 +08:00
2026-11-10 02:01:37 +08:00
2026-11-13 05:12:30 +08:00
2026-10-31 15:56:40 +08:00
2026-11-03 11:16:02 +08:00
2026-11-03 11:16:02 +08:00
2026-10-31 12:44:16 +08:00
2026-11-08 15:54:52 +08:00
2026-11-06 15:24:18 +08:00
2026-11-10 23:05:47 +08:00
2026-11-12 01:28:03 +08:00
2026-11-01 14:33:24 +08:00
2026-11-01 11:02:56 +08:00
2026-11-15 12:25:47 +08:00
2026-11-06 08:01:14 +08:00
2026-11-09 21:51:53 +08:00
2026-11-09 21:51:53 +08:00
2026-11-09 21:51:53 +08:00
2026-11-02 11:09:11 +08:00
2026-11-13 12:18:23 +08:00
2026-11-13 12:18:23 +08:00
2026-10-15 23:08:05 +08:00
2026-11-14 19:28:21 +08:00
2026-11-06 17:34:48 +08:00
2026-11-16 11:51:12 +08:00
2026-11-16 11:51:12 +08:00
2026-11-16 11:51:12 +08:00
2026-11-17 03:11:31 +08:00
2026-10-24 02:20:38 +08:00
2026-10-24 02:20:38 +08:00
2026-11-10 22:42:11 +08:00
2026-11-01 04:46:38 +08:00
2026-11-08 15:27:14 +08:00
2026-11-13 16:31:24 +08:00
2026-11-14 16:34:10 +08:00
2026-11-01 07:39:08 +08:00
2026-10-30 15:26:03 +08:00
2026-11-01 09:04:26 +08:00
2026-11-01 01:28:58 +08:00
2026-11-12 14:10:22 +08:00
2026-11-13 22:02:05 +08:00
2026-11-04 21:00:51 +08:00
2026-10-29 03:17:58 +08:00
2026-11-17 23:37:54 +08:00
2026-11-13 00:32:17 +08:00
2026-11-12 23:24:29 +08:00
2026-11-16 10:50:49 +08:00
2026-10-25 14:00:59 +08:00
2026-10-31 00:44:59 +08:00
2026-11-08 19:09:21 +08:00
2026-11-11 04:07:09 +08:00
2026-11-16 10:50:49 +08:00
2026-11-16 10:50:49 +08:00
2026-11-16 03:37:02 +08:00
2026-11-16 03:37:02 +08:00
2026-10-16 08:43:02 +08:00
2026-10-29 06:38:04 +08:00
2026-10-29 06:38:04 +08:00
2026-11-07 23:27:42 +08:00
2026-11-07 23:27:42 +08:00
2026-11-17 15:39:12 +08:00
2026-11-13 12:53:04 +08:00
2026-11-13 23:05:14 +08:00
2026-11-10 14:01:23 +08:00
2026-11-13 22:02:05 +08:00
2026-11-11 04:14:58 +08:00
2026-11-10 16:00:30 +08:00
2026-11-11 15:08:58 +08:00
2026-10-31 10:57:56 +08:00
2026-10-31 10:57:56 +08:00
2026-11-10 18:07:05 +08:00
2026-11-16 16:37:40 +08:00
2026-11-14 18:02:33 +08:00
2026-11-01 01:56:48 +08:00
2026-11-14 09:11:46 +08:00
2026-11-02 03:40:03 +08:00
2026-11-03 05:21:47 +08:00
2026-11-08 19:05:36 +08:00
2026-11-12 15:54:08 +08:00
2026-11-10 17:45:42 +08:00
2026-11-14 14:02:49 +08:00
2026-10-24 05:31:59 +08:00
2026-11-16 12:13:44 +08:00
2026-11-10 14:27:21 +08:00
2026-11-15 12:39:32 +08:00
2026-11-15 12:39:32 +08:00
2026-11-15 12:39:32 +08:00
2026-11-04 20:20:41 +08:00
2026-10-30 11:54:46 +08:00
2026-11-15 23:05:56 +08:00
2026-11-15 23:05:56 +08:00
2026-11-15 23:05:56 +08:00
2026-11-10 01:17:43 +08:00
2026-11-14 17:00:00 +08:00
2026-11-14 17:45:41 +08:00
2026-11-13 13:58:00 +08:00
2026-11-13 22:46:00 +08:00
2026-11-11 17:38:42 +08:00
2026-11-09 23:19:14 +08:00
2026-11-11 23:09:15 +08:00
2026-11-11 10:15:40 +08:00
2026-11-13 13:58:00 +08:00
2026-11-14 14:02:49 +08:00
2026-10-30 12:06:33 +08:00
2026-10-30 12:06:33 +08:00
2026-11-13 13:04:03 +08:00
2026-11-13 13:04:03 +08:00
2026-11-13 13:04:03 +08:00
2026-11-11 23:08:39 +08:00
2026-11-11 15:10:25 +08:00
2026-11-17 23:13:03 +08:00
2026-11-11 04:45:46 -08:00
2026-10-22 20:50:59 +08:00
2026-11-13 04:23:20 +08:00
2026-11-02 15:27:15 +08:00
2026-11-14 12:34:47 +08:00
2026-11-02 15:27:15 +08:00
2026-11-05 11:45:44 +08:00
2026-11-11 04:28:18 +08:00
2026-11-11 04:28:18 +08:00
2026-11-01 22:14:19 +08:00
2026-10-24 22:31:59 +08:00
2026-11-15 03:07:38 +08:00
2026-10-14 04:22:19 +08:00
2026-10-31 18:30:39 +08:00
2026-10-01 18:46:56 +08:00
2026-10-30 15:42:29 +08:00
2026-10-27 23:37:46 +08:00
2026-11-15 03:07:38 +08:00
2026-11-04 23:55:14 +08:00
2026-10-30 18:55:51 +08:00
2026-11-04 20:20:41 +08:00
2026-10-28 16:55:24 +08:00
profiles: a click on a profile shows what it holds, and its Apply applies it ( #467 emo172: a saved profile could only be seen by applying it over the setup in use) — a profile's chip applied it at once, and all the page knew of it was a one-line summary of its models. The state now carries each profile's fields by agent, under the agents' names and the fields' labels, in the order magpie lists them, with the Library's servers, skills and instructions each agent gets (not the instructions' text); a value that reads as a key or a token (a field named for one, a known key prefix, a long run of letters and digits) is sent as hidden, never its text. A click on a chip opens its details under its line in the window, and over it in the tray panel with Apply at their foot by the chip, the chip clicked staying where it is; opening them changes nothing, a second click closes them, Apply applies the profile; ↻ and × stay on the chip. In English and Chinese. TestDetails and TestStateProfileDetails fail without the change, as does profile-details.test.cjs (Chromium and WebKit, en and zh, window and panel). go vet, go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build, go test -tags nogui ./... pass (TestFXInState's TempDir cleanup flakes with or without the change); profile-details, panel-profiles, click-scroll, old-webkit pass.
2026-10-02 03:09:42 +08:00
2026-11-02 18:37:25 +08:00
2026-11-13 07:05:00 +08:00
2026-11-01 06:01:05 +08:00
2026-10-27 02:26:27 +08:00
2026-10-30 04:48:17 +08:00
2026-11-08 11:28:54 +08:00
2026-11-04 21:21:32 +08:00
2026-11-12 01:20:52 +08:00
2026-11-14 22:18:09 +08:00
2026-11-11 10:15:40 +08:00
2026-11-05 18:31:22 +08:00
2026-11-06 05:21:05 +08:00
2026-11-10 07:25:54 +08:00
2026-11-16 07:22:47 +08:00
2026-11-01 03:07:06 +08:00
2026-11-07 17:44:31 +08:00
2026-10-14 23:06:35 +08:00
2026-11-11 03:54:21 +08:00
2026-11-17 20:21:21 +08:00
2026-11-01 09:14:11 +08:00
2026-11-01 09:04:26 +08:00
2026-11-18 01:01:30 +08:00
2026-11-18 01:01:30 +08:00
2026-11-08 02:13:14 +08:00
2026-11-16 10:49:31 +08:00
2026-11-14 15:46:34 +08:00
2026-11-16 16:37:40 +08:00
2026-11-16 16:37:40 +08:00
2026-11-16 16:37:40 +08:00
2026-11-16 16:37:40 +08:00
2026-11-02 18:53:07 +08:00
2026-11-01 21:16:35 +08:00
2026-11-15 23:30:05 +08:00
2026-11-12 00:19:34 +08:00
2026-10-29 06:38:04 +08:00
2026-11-14 14:02:49 +08:00
2026-10-08 05:00:55 +08:00
2026-11-10 12:54:39 +08:00
2026-10-15 23:08:00 +08:00
2026-11-01 09:14:11 +08:00
2026-11-01 09:14:11 +08:00
2026-11-11 10:15:40 +08:00
2026-10-30 00:46:45 +08:00
2026-11-10 18:39:20 +08:00
2026-11-12 19:48:02 +08:00
2026-11-12 19:48:02 +08:00
2026-11-03 14:16:20 +08:00
2026-11-13 14:30:19 +08:00
2026-11-14 08:12:09 +08:00
2026-11-15 23:30:05 +08:00
2026-11-01 17:28:15 +08:00
2026-11-01 17:28:15 +08:00
2026-11-01 17:28:15 +08:00
2026-11-16 01:18:18 +08:00
2026-10-05 21:42:15 +08:00
2026-11-13 12:18:23 +08:00
2026-11-13 12:18:23 +08:00
2026-11-13 12:18:23 +08:00
2026-11-13 12:18:23 +08:00
2026-11-13 23:36:49 +08:00
2026-11-16 10:50:49 +08:00
2026-11-02 20:00:54 +08:00
2026-11-02 20:00:54 +08:00
2026-11-02 20:00:54 +08:00
2026-11-02 20:00:54 +08:00
2026-11-02 20:00:54 +08:00
2026-11-07 21:21:48 +08:00
2026-11-16 14:12:48 +08:00
2026-11-05 12:40:35 +08:00
2026-11-01 14:43:18 +08:00
2026-11-04 19:43:00 +08:00
2026-11-10 18:01:13 +08:00
2026-10-28 22:48:07 +08:00
2026-10-29 06:30:58 +08:00
2026-11-11 15:09:32 +08:00
2026-11-11 08:51:15 +08:00
2026-11-16 07:19:18 +08:00
2026-11-02 17:19:23 +08:00
2026-11-01 15:27:49 +08:00
2026-11-16 07:19:18 +08:00
2026-10-29 23:56:05 +08:00
2026-11-11 12:02:52 +08:00
2026-10-27 06:18:24 +08:00
2026-10-30 08:32:57 +08:00
2026-11-10 13:58:41 +08:00
2026-11-12 00:09:56 +08:00
2026-11-11 14:43:25 +08:00
2026-11-03 08:54:40 +08:00
2026-11-16 07:19:18 +08:00
2026-11-17 03:11:31 +08:00
2026-10-30 15:53:22 +08:00
2026-11-08 15:19:03 +08:00
2026-11-08 15:19:03 +08:00
2026-11-13 15:13:13 +08:00
2026-11-13 11:02:15 +08:00
2026-11-04 20:20:41 +08:00
2026-11-09 18:57:29 +08:00
2026-10-29 17:09:13 +08:00
2026-11-03 05:21:47 +08:00
2026-11-13 03:43:10 +08:00
2026-11-14 12:17:40 +08:00
2026-11-14 14:02:49 +08:00
2026-11-12 14:24:46 +08:00
2026-11-12 14:24:46 +08:00
2026-11-09 19:57:10 +08:00
2026-10-15 23:08:04 +08:00
2026-11-12 17:16:34 +08:00
2026-11-12 17:16:34 +08:00
2026-11-12 17:16:34 +08:00
2026-11-12 17:16:34 +08:00
2026-11-12 17:16:34 +08:00
2026-10-31 21:38:56 +08:00
2026-10-31 19:35:16 +08:00
2026-11-06 16:02:04 +08:00
2026-11-06 16:02:04 +08:00
2026-11-06 16:02:04 +08:00
2026-11-01 14:39:13 +08:00
2026-11-01 14:39:13 +08:00
2026-11-12 22:12:32 +08:00
2026-11-12 19:35:07 +08:00
2026-10-31 00:08:29 +08:00
2026-11-07 15:04:26 +08:00
2026-11-07 15:04:26 +08:00
2026-11-12 12:14:36 +08:00
gui: lightweight mode, off by default, lets a closed panel's or window's webview go and makes it again when it is opened (somls on #580 : GUI版可否增加轻量模式,关闭面板退出webview,减少资源占用) — closing the tray panel or the main window only hid it, so each kept its page and, on a Mac, its WebKit WebContent process (about 65 MB each at start, 95–100 MB after use) for as long as magpie ran. Settings → General now has Lightweight mode (轻量模式), shown in the app only (not on a browser's page) and kept as this computer's own through a sync or a restored backup (KeepOwn): with it on, a window found closed on two looks in a row 30 s apart (lightStep) is let go 30–60 s after it was closed, so a panel opened again soon after is still the same one at once. Letting go happens on the main thread under a new h.winMu: the window field is set to nil, the panel is unhooked from the tray icon (AttachWindow(nil); left click goes through magpie's own OnClick), and the main window is marked gone so its closing hook, which otherwise cancels a close and hides, lets it close; on the Mac the WKWebView is taken out of the window first (stopLoading, delegates and script handlers cleared, removed from its superview), since Wails' NSWindow close alone left the WebContent process alive for minutes. Opening it again (the tray icon, ShowMain, an import link, the Dock) makes the window anew with the options it was started with (makeMain/makePanel, moved out of Run with their hooks), its text size and title bar or Hyprland name (madeAgain), on Windows shown only once its page has loaded; every other path that reached h.main or h.panel (fit, tint, zoom, hide, glide, the Windows title-bar tint, the Hyprland click watch, the folder picker) now goes through the main thread and does nothing to a window let go; Linux keeps running with no window left (DisableQuitOnLastWindowClosed). Measured in a sandbox build under a temp HOME on other ports: started in the tray with the setting on, two WebContent processes of ~65 MB each; about a minute later both windows were let go and both processes ended (GPU and Networking, ~56 MB, are shared and stay; magpie's own process is unchanged), so the saving is ~130 MB idle and up to ~200 MB after use; the main window and the panel were then opened again with their pages, tinted and at the tray icon, closed, let go a second time, and magpie quit cleanly, with fit/tint/zoom calls every 0.2 s through a release crashing nothing. Windows and Linux build but were not run. TestLightStep and TestLightweightKeptAndOwn are new; lightweight.test.cjs (WebKit, en and zh: the row, off by default, On/Off posted as lightweight true/false, another setting's save keeping it, no scroll, no left-border accent, no row on a browser's page) is new and passes, as do click-scroll, settings-sections and searcher-pick. go vet ./internal/..., go build (darwin GUI), go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build, go test -tags nogui -count=1 ./... under a temp HOME pass.
2026-10-03 00:24:49 +08:00
2026-11-07 13:54:24 +08:00
2026-11-05 17:25:26 +08:00
2026-10-30 13:23:19 +08:00
2026-10-31 11:29:38 +08:00
2026-10-30 15:53:22 +08:00
2026-11-09 21:47:24 +08:00
2026-11-10 11:55:27 +08:00
2026-10-12 05:21:23 +08:00
2026-11-15 01:11:08 +08:00
2026-11-03 20:54:01 +08:00
2026-11-03 20:54:01 +08:00
2026-11-01 11:02:56 +08:00
2026-11-01 11:02:56 +08:00
2026-11-03 10:14:23 +08:00
2026-11-17 21:50:54 +08:00
2026-11-15 12:25:47 +08:00
2026-11-15 01:11:08 +08:00
2026-11-14 19:09:43 +08:00
2026-11-14 19:09:43 +08:00
2026-11-01 21:31:55 +08:00
2026-11-03 10:14:23 +08:00
2026-11-01 21:31:55 +08:00
2026-11-01 21:31:55 +08:00
2026-11-10 10:14:55 +08:00
2026-10-24 15:20:37 +08:00
2026-11-06 22:56:33 +08:00
2026-10-31 16:53:00 +08:00
2026-11-12 16:03:34 +08:00
2026-11-16 15:11:46 +08:00
2026-11-17 21:50:54 +08:00
2026-11-10 11:55:27 +08:00
2026-11-15 01:11:08 +08:00
2026-11-14 19:37:57 +08:00
2026-11-03 10:14:23 +08:00
2026-11-03 10:14:23 +08:00
2026-11-15 01:11:08 +08:00
2026-11-15 01:11:08 +08:00
2026-11-07 22:36:03 +08:00
2026-11-12 16:03:34 +08:00
2026-11-17 21:50:54 +08:00
2026-11-15 01:29:18 +08:00
2026-11-17 21:50:54 +08:00
2026-11-03 10:14:23 +08:00
2026-11-14 12:13:19 +08:00
2026-11-01 15:19:32 +08:00
2026-10-31 17:12:16 +08:00
2026-11-08 02:37:09 +08:00
2026-11-06 18:51:39 +08:00
2026-10-29 16:31:37 +08:00
2026-11-07 04:03:01 +08:00
2026-11-17 06:39:40 +08:00
2026-10-29 17:47:30 +08:00
2026-10-29 17:47:30 +08:00
2026-10-31 21:00:55 +08:00
2026-11-06 23:11:43 +08:00
2026-10-31 00:44:59 +08:00
2026-11-11 13:01:11 +08:00
2026-11-16 16:37:40 +08:00
2026-11-11 13:01:11 +08:00
2026-11-15 13:10:18 +08:00
2026-11-04 06:59:29 +08:00
2026-11-16 16:37:40 +08:00
2026-10-27 01:37:04 +08:00
2026-11-13 19:31:37 +08:00
2026-10-31 17:28:37 +08:00
2026-11-07 06:09:42 +08:00
2026-11-14 23:47:47 +08:00
2026-11-08 03:13:15 +08:00
2026-11-08 03:13:15 +08:00
2026-10-25 18:22:13 +08:00
2026-11-16 16:37:40 +08:00
2026-11-14 18:23:16 +08:00
2026-11-14 18:23:16 +08:00
2026-11-16 16:37:40 +08:00
2026-11-12 23:45:43 +08:00
2026-10-28 21:13:09 +08:00
2026-10-28 11:15:57 +08:00
2026-11-10 02:01:37 +08:00
2026-11-10 07:37:34 +08:00
2026-11-13 16:56:19 +08:00
2026-11-09 21:51:53 +08:00
2026-11-03 18:34:19 +08:00
2026-11-13 23:26:11 +08:00
2026-10-28 13:51:37 +08:00
2026-11-15 11:00:37 +08:00
2026-11-01 15:33:35 +08:00
2026-11-11 10:15:40 +08:00
2026-11-12 20:09:27 +08:00
2026-11-13 05:31:22 +08:00
2026-11-11 10:15:40 +08:00
2026-11-11 10:15:40 +08:00
2026-10-28 19:54:53 +08:00
2026-11-11 10:15:40 +08:00
2026-11-06 22:17:04 +08:00
2026-11-11 10:15:40 +08:00
2026-11-16 16:37:40 +08:00
2026-10-28 07:31:02 +08:00
2026-10-28 07:31:02 +08:00
2026-10-28 15:25:53 +08:00
2026-11-11 13:00:54 +08:00
2026-11-11 14:33:37 +08:00
2026-11-04 20:20:41 +08:00
2026-11-13 23:36:49 +08:00
2026-11-13 14:01:50 +08:00
2026-11-11 23:09:15 +08:00
2026-11-11 23:09:15 +08:00
2026-11-14 14:02:49 +08:00
2026-11-13 23:36:49 +08:00
2026-11-13 23:36:49 +08:00
2026-11-16 10:50:49 +08:00
2026-11-13 19:45:24 +08:00
2026-11-13 19:45:24 +08:00
2026-11-13 19:45:24 +08:00
2026-11-13 19:45:24 +08:00
2026-10-25 01:46:55 +08:00
2026-11-02 16:14:22 +08:00
2026-10-24 22:54:36 +08:00
2026-11-15 13:10:18 +08:00
2026-10-30 21:56:29 +08:00
2026-10-30 21:56:29 +08:00
2026-11-12 10:03:46 +08:00
2026-11-01 17:28:30 +08:00
2026-11-04 16:32:55 +08:00
2026-11-01 11:02:56 +08:00
2026-11-01 14:26:03 +08:00
2026-11-04 05:00:18 +08:00
2026-10-31 10:57:56 +08:00