yetone
fd9033cbfd
library: a synced skill keeps its library group (ConatusMoon2222 on X)
...
Cause. A skill's group is traced (tracer.repoOf) from files that belong to
one computer: the skills CLI's lock, a git checkout, CC Switch's record,
and Skill.From noted by an install-again or Group again. The sync bundle
carried none of it (CarriedSkill had Source, not From), and Put built every
skill as a new Skill, so the other computer had nothing to trace and put
the skill under "this computer". Group again only fetches repositories some
skill is already traced to, so with no skill traced it had nothing to start
from; and where it did group, the next sync's Put wrote the skill new again
and took it back out.
Change. Collect carries the traced repository as CarriedSkill.From for a
skill with no source of its own (none, or a folder). Put writes it as
Skill.From. When the bundle has none (made by a magpie before this), Put
keeps the From this computer already found for the same skill, and keeps
Skill.Gone ("kept on this computer only") for one with the same source.
Old data. Skills synced before this stay in "this computer" until one of:
the computer that has the trace updates and syncs (its bundle then carries
From, and Put applies it here), or Group again here, which works as soon as
one skill of the pack still names the repository (a skill installed from
GitHub carries its source); the result now survives later syncs. A pack
with no skill traced anywhere on the receiving computer has nothing to start
from there until the first computer has synced with this version.
Tests (library/carry_from_test.go), each red on the old code:
TestSyncedSkillKeepsItsRepo (lock-traced skill A -> B -> C),
TestSyncKeepsRepoFoundHere (old bundle, From found here kept),
TestRegroupAfterOldSync (old sync, Group again, then the same bundle
again). Broke Put's From by hand: first two go red.
Run on mote: go test ./internal/library ./internal/davsync ./internal/backup
./internal/gui ok; Library GUI files in chromium and webkit (see below).
Not tried: two real machines through S3 (the fake-S3 davsync tests pass);
a copy Group again bound to its repository is still unbound by a sync from
a computer that has it unbound (filed).
2026-11-12 19:33:39 +08:00
..
2026-11-10 15:47:32 +08:00
2026-10-15 14:52:51 +08:00
2026-10-11 07:55:23 +08:00
2026-11-12 17:07:23 +08:00
2026-11-11 03:50:20 +08:00
2026-11-01 10:22:56 +08:00
2026-10-13 06:43:50 +08:00
2026-10-13 06:43:50 +08:00
2026-11-11 14:04:37 +08:00
2026-11-10 15:47:32 +08:00
2026-11-10 15:47:32 +08:00
2026-11-12 02:24:10 +08:00
2026-11-12 02:24:10 +08:00
2026-11-12 02:24:10 +08:00
2026-11-11 15:59:46 +08:00
2026-11-11 15:59:46 +08:00
2026-11-06 15:41:43 +08:00
2026-11-06 15:41:43 +08:00
2026-10-10 14:52:17 +08:00
2026-11-12 19:33:39 +08:00
2026-11-05 11:29:20 +08:00
2026-10-31 13:14:16 +08:00
2026-11-12 19:33:39 +08:00
2026-10-10 09:14:35 +08:00
2026-11-01 04:36:37 +08:00
2026-11-02 05:38:11 +08:00
2026-11-06 10:20:34 +08:00
2026-11-10 12:54:39 +08:00
2026-11-07 20:57:30 +08:00
2026-11-06 02:04:53 +08:00
2026-11-11 23:09:15 +08:00
2026-10-16 05:10:43 +08:00
2026-11-10 22:56:39 +08:00
2026-10-15 08:33:54 +08:00
2026-10-13 15:44:02 +08:00
2026-10-29 04:23:33 +08:00
library: on Windows without the right to make symlinks, skills are linked with junctions ( #973 ) — with Developer Mode off and magpie not elevated, os.Symlink fails with "A required privilege is not held by the client": a skill installed from a folder became a detached copy, and bringing in a skill from ~/.agents/skills failed outright. The library's folder links (an agent's link to the library's skill, a folder source, a skill brought in from a link or the shared folder, a carried skill's folder, relink) now go through dirLink, which on that error makes a directory junction instead: one every user may make, followed by every program as a symlink to a folder is, made natively (FSCTL_SET_REPARSE_POINT, no mklink). A target a junction can't reach (a network share) still gets the old copy. Go reports a junction as irregular, not a symlink, so ours, unlink, carry's clearing of the library, a project's place and the CC Switch update now tell a link by linkEntry (symlink or junction) and take it away with os.Remove, leaving what it points at, even when where it points can't be read. On the Windows box with every privilege stripped from the token (CreateRestrictedToken DISABLE_MAX_PRIVILEGE, whoami /priv shows SeChangeNotify only) and an explicit sandbox environment, the library's tests went from 16 failures to none (TestSkillHow, TestProjectSkillsLinked, TestCarry, TestSkillCopyEditReachesTheOthers, TestImportSharedSkillForKimi …); with the privilege they pass too. TestJunctionIsALink (Windows: magpie's own, read through, unlinked without its target, none to a share) is new; the folder fixtures that ignored a failed os.Symlink now use dirLink, and the tests' link checks accept a junction. go test -race ./internal/library/ on the Mac, go vet, windows/linux(nogui) builds pass.
2026-10-06 13:32:03 +08:00
library: on Windows without the right to make symlinks, skills are linked with junctions ( #973 ) — with Developer Mode off and magpie not elevated, os.Symlink fails with "A required privilege is not held by the client": a skill installed from a folder became a detached copy, and bringing in a skill from ~/.agents/skills failed outright. The library's folder links (an agent's link to the library's skill, a folder source, a skill brought in from a link or the shared folder, a carried skill's folder, relink) now go through dirLink, which on that error makes a directory junction instead: one every user may make, followed by every program as a symlink to a folder is, made natively (FSCTL_SET_REPARSE_POINT, no mklink). A target a junction can't reach (a network share) still gets the old copy. Go reports a junction as irregular, not a symlink, so ours, unlink, carry's clearing of the library, a project's place and the CC Switch update now tell a link by linkEntry (symlink or junction) and take it away with os.Remove, leaving what it points at, even when where it points can't be read. On the Windows box with every privilege stripped from the token (CreateRestrictedToken DISABLE_MAX_PRIVILEGE, whoami /priv shows SeChangeNotify only) and an explicit sandbox environment, the library's tests went from 16 failures to none (TestSkillHow, TestProjectSkillsLinked, TestCarry, TestSkillCopyEditReachesTheOthers, TestImportSharedSkillForKimi …); with the privilege they pass too. TestJunctionIsALink (Windows: magpie's own, read through, unlinked without its target, none to a share) is new; the folder fixtures that ignored a failed os.Symlink now use dirLink, and the tests' link checks accept a junction. go test -race ./internal/library/ on the Mac, go vet, windows/linux(nogui) builds pass.
2026-10-06 13:32:03 +08:00
2026-11-10 13:46:13 +08:00
2026-10-17 18:51:53 +08:00
2026-11-10 12:54:39 +08:00
2026-11-09 12:04:06 +08:00
2026-11-12 02:59:41 +08:00
2026-11-12 02:59:41 +08:00
2026-11-02 11:01:51 +08:00
2026-10-10 00:43:26 +08:00
2026-11-10 12:54:39 +08:00
2026-11-12 00:17:30 +08:00
2026-10-13 11:04:13 +08:00
2026-10-28 03:50:46 +08:00
2026-10-21 06:16:31 +08:00
2026-10-10 19:53:02 +08:00
2026-11-11 18:14:47 +08:00
2026-11-11 16:38:41 +08:00
2026-11-07 20:14:25 +08:00
2026-10-15 23:08:03 +08:00
2026-11-11 02:55:15 +08:00
2026-10-11 01:28:22 +08:00
library: on Windows without the right to make symlinks, skills are linked with junctions ( #973 ) — with Developer Mode off and magpie not elevated, os.Symlink fails with "A required privilege is not held by the client": a skill installed from a folder became a detached copy, and bringing in a skill from ~/.agents/skills failed outright. The library's folder links (an agent's link to the library's skill, a folder source, a skill brought in from a link or the shared folder, a carried skill's folder, relink) now go through dirLink, which on that error makes a directory junction instead: one every user may make, followed by every program as a symlink to a folder is, made natively (FSCTL_SET_REPARSE_POINT, no mklink). A target a junction can't reach (a network share) still gets the old copy. Go reports a junction as irregular, not a symlink, so ours, unlink, carry's clearing of the library, a project's place and the CC Switch update now tell a link by linkEntry (symlink or junction) and take it away with os.Remove, leaving what it points at, even when where it points can't be read. On the Windows box with every privilege stripped from the token (CreateRestrictedToken DISABLE_MAX_PRIVILEGE, whoami /priv shows SeChangeNotify only) and an explicit sandbox environment, the library's tests went from 16 failures to none (TestSkillHow, TestProjectSkillsLinked, TestCarry, TestSkillCopyEditReachesTheOthers, TestImportSharedSkillForKimi …); with the privilege they pass too. TestJunctionIsALink (Windows: magpie's own, read through, unlinked without its target, none to a share) is new; the folder fixtures that ignored a failed os.Symlink now use dirLink, and the tests' link checks accept a junction. go test -race ./internal/library/ on the Mac, go vet, windows/linux(nogui) builds pass.
2026-10-06 13:32:03 +08:00
2026-11-11 11:54:21 +08:00
2026-11-11 11:54:21 +08:00
2026-10-12 00:10:59 +08:00
2026-11-11 15:59:46 +08:00
2026-10-20 20:23:56 +08:00
2026-11-06 15:04:01 +08:00
2026-11-01 22:32:41 +08:00
2026-10-17 09:39:47 +08:00
2026-11-12 02:00:19 +08:00
2026-11-03 11:16:02 +08:00
2026-10-13 11:10:59 +08:00
2026-11-03 20:03:00 +08:00
2026-11-06 00:26:59 +08:00
2026-11-10 12:54:39 +08:00
2026-11-10 03:25:44 +08:00
2026-11-10 15:47:14 +08:00
2026-10-30 14:38:22 +08:00
2026-11-10 16:14:54 +08:00
2026-11-10 17:40:35 +08:00
2026-11-10 15:47:14 +08:00
2026-11-10 16:14:54 +08:00
2026-11-01 17:00:04 +08:00
2026-11-10 21:15:14 +08:00
2026-11-01 17:26:12 +08:00
2026-10-26 16:32:23 +08:00
2026-10-30 14:47:13 +08:00
2026-11-10 12:54:39 +08:00
2026-10-11 20:10:05 +08:00
2026-11-10 15:47:14 +08:00
2026-11-01 17:00:04 +08:00
2026-11-11 14:34:30 +08:00
2026-11-11 14:34:30 +08:00
2026-11-12 00:57:23 +08:00
2026-11-12 00:57:23 +08:00
2026-11-01 16:43:21 +08:00
2026-11-01 16:43:21 +08:00
2026-10-05 07:44:11 +08:00
2026-10-05 07:44:11 +08:00
2026-10-05 07:44:11 +08:00
2026-10-27 06:45:37 +08:00
2026-10-13 03:43:04 +08:00
2026-10-10 17:49:07 +08:00
2026-11-05 14:50:02 +08:00
2026-11-11 18:14:47 +08:00
2026-10-23 01:00:44 +08:00
2026-11-12 00:57:23 +08:00
2026-10-10 18:35:17 +08:00
2026-10-10 18:35:17 +08:00
2026-10-12 02:56:01 +08:00
2026-11-07 03:21:57 +08:00
2026-11-02 18:37:57 +08:00
2026-10-29 09:33:11 +08:00
2026-11-10 03:25:44 +08:00
2026-11-12 00:57:23 +08:00
2026-10-30 02:31:08 +08:00
2026-11-06 14:33:18 +08:00
2026-11-03 20:38:11 +08:00
2026-11-10 12:54:39 +08:00
2026-11-10 10:23:53 +08:00
2026-11-10 10:23:53 +08:00
2026-10-27 18:52:15 +08:00
2026-11-11 17:01:36 +08:00
2026-11-11 17:01:36 +08:00
2026-10-28 00:19:24 +08:00
2026-10-28 00:19:24 +08:00
2026-11-12 00:57:23 +08:00
2026-11-12 00:57:23 +08:00
2026-11-11 10:49:46 +08:00
2026-10-31 10:14:03 +08:00
2026-11-11 10:49:46 +08:00
2026-10-13 03:43:05 +08:00
2026-10-11 22:06:36 +08:00
2026-10-10 18:09:59 +08:00
2026-11-12 00:57:23 +08:00
2026-11-07 12:59:36 +08:00
2026-10-25 09:41:32 +08:00
2026-10-15 06:07:43 +08:00
2026-11-11 16:38:41 +08:00
2026-10-11 09:24:07 +08:00
wsl: background work never touches a WSL distro that has stopped since it was last seen running — it booted it again (TJHHHH on Discord: while they were repairing WSL, magpie kept starting it). Detection already listed only running distros, but the running set was kept for a minute (wslListAge), agents built while a distro ran kept its home and read its files from their Get/Sync/Check/Reached/Routed closures later, the sessions listing kept a distro's Running for 30s+ and read its \\wsl.localhost files, and wslrun.Find reused a tool it had found in a distro for a minute and ran wsl.exe -d on it. Any wsl.exe -d or \\wsl.localhost read boots a stopped distro, so a wsl --shutdown was undone within a minute, and the distro, running again, kept it going. Now wsl.exe -l --running -q (it starts nothing; UTF-16 with or without BOM, or UTF-8 under WSL_UTF8) is asked again after 3s, and a distro not in it is not touched: a WSL agent's Get gives the last values seen, Sync/Check/Reached do nothing and Routed/Joined/Beside/Added say no; sessions aren't listed or read from it (wslCold says cold); wslrun.Find (Claude subscription sign-in and usage) doesn't reuse or run a tool there; the Library gives skills to no target in it and its MCP probe says it isn't running. An explicit action still starts it: setting a WSL agent's field, a Set on a running agent, resuming a WSL session. TestWSLStoppedSinceNotOpened (agent, sessions), TestWSLStoppedSinceNoTarget (library) and TestFindStoppedSince (wslrun) fail without the change and pass; TestUp covers the -l --running parse. On the Windows box (10.0.0.132) a test binary that had seen magpie-fedora running ran Values/Check/Reached/wslDistros/wslAgents/sessions.List/wslrun.Find against it for 4 rounds while it was stopped: it stayed Stopped and wsl -l -v was unchanged; wslrun and agent WSL tests pass there. No distro was terminated for the check (magpie-desktop is in use, the stopped ones aren't ours). go test ./... (nogui), -race on the WSL tests, go vet, windows and linux (nogui) builds pass.
2026-10-06 14:25:41 +08:00
2026-11-12 00:57:23 +08:00
2026-11-10 03:25:44 +08:00
2026-11-11 15:08:58 +08:00
2026-11-11 15:08:58 +08:00
2026-11-10 16:27:14 +08:00
2026-11-03 21:43:54 +08:00
2026-10-15 06:07:43 +08:00
2026-10-06 07:43:47 +08:00
2026-11-09 16:33:28 +08:00
2026-11-09 16:33:28 +08:00
2026-11-10 21:15:14 +08:00
2026-11-10 21:15:14 +08:00
2026-10-13 08:36:14 +08:00
2026-11-10 12:54:39 +08:00
2026-11-11 17:27:08 +08:00
2026-11-07 20:14:49 +08:00
2026-11-07 20:14:49 +08:00
2026-11-11 05:30:02 +08:00
2026-10-08 23:58:22 +08:00
2026-10-15 14:19:00 +08:00
2026-11-10 22:39:29 +08:00
2026-11-10 22:39:29 +08:00
2026-11-10 22:39:29 +08:00
2026-11-10 22:39:29 +08:00
2026-11-10 22:39:29 +08:00
2026-11-10 22:39:29 +08:00
2026-11-10 22:39:29 +08:00
2026-11-11 03:50:20 +08:00
2026-10-11 22:23:45 +08:00
2026-10-06 22:24:04 +08:00
2026-10-11 05:33:23 +08:00
2026-10-11 05:33:23 +08:00
2026-10-15 00:02:24 +08:00
2026-10-27 17:08:57 +08:00
2026-10-13 14:29:52 +08:00
2026-10-13 14:29:52 +08:00
2026-10-13 14:29:52 +08:00
2026-10-30 20:03:32 +08:00
2026-10-28 19:28:44 +08:00
2026-10-30 20:03:32 +08:00
2026-10-15 06:07:43 +08:00
2026-10-31 02:00:10 +08:00
2026-11-01 16:43:21 +08:00
2026-11-11 17:21:00 +08:00
2026-11-11 17:21:00 +08:00
2026-10-22 21:15:36 +08:00
2026-10-11 00:37:16 +08:00
2026-10-11 00:37:16 +08:00
2026-10-11 00:37:16 +08:00
2026-10-29 19:58:40 +08:00
2026-10-31 21:29:22 +08:00
2026-11-10 12:54:39 +08:00
2026-10-10 01:30:40 +08:00
2026-11-10 15:47:14 +08:00
2026-10-20 20:23:56 +08:00
2026-11-05 18:31:17 +08:00
2026-10-15 06:07:43 +08:00
2026-11-09 11:29:51 +08:00
2026-11-01 02:02:24 +08:00
2026-11-11 17:28:53 +08:00
2026-10-30 10:29:59 +08:00
2026-10-13 15:44:02 +08:00
2026-10-06 00:37:50 +08:00
2026-11-05 18:31:17 +08:00
2026-11-03 16:33:03 +08:00
2026-11-03 16:33:03 +08:00
2026-11-02 05:38:11 +08:00
2026-11-10 12:54:39 +08:00
2026-10-23 01:58:00 +08:00
2026-10-23 01:58:00 +08:00
2026-10-29 15:52:42 +08:00
2026-11-03 05:43:12 +08:00
2026-10-29 04:23:33 +08:00
2026-10-16 18:38:31 +08:00
2026-10-29 04:23:33 +08:00
2026-10-30 10:29:59 +08:00
2026-11-09 11:29:51 +08:00
2026-11-09 11:29:51 +08:00
2026-11-06 22:22:20 +08:00
2026-11-06 12:13:16 +08:00
2026-11-10 12:54:39 +08:00
2026-10-29 14:39:57 +08:00
2026-11-09 08:38:02 +08:00
2026-11-09 08:38:02 +08:00
2026-11-01 02:02:24 +08:00
2026-11-01 04:36:37 +08:00
2026-10-17 11:01:48 +08:00
2026-11-01 16:43:21 +08:00
2026-11-06 19:50:40 +08:00
2026-10-23 01:58:00 +08:00
2026-11-10 12:54:39 +08:00
2026-11-06 19:50:40 +08:00
2026-11-01 02:45:01 +08:00
2026-11-06 19:50:40 +08:00
2026-11-03 20:03:00 +08:00
2026-11-06 15:04:01 +08:00
2026-11-06 15:04:01 +08:00
2026-11-03 05:43:12 +08:00
2026-11-11 23:09:15 +08:00
2026-10-27 09:31:57 +08:00
2026-10-27 09:31:57 +08:00
2026-11-04 21:18:56 +08:00
2026-11-11 02:55:15 +08:00
library: on Windows without the right to make symlinks, skills are linked with junctions ( #973 ) — with Developer Mode off and magpie not elevated, os.Symlink fails with "A required privilege is not held by the client": a skill installed from a folder became a detached copy, and bringing in a skill from ~/.agents/skills failed outright. The library's folder links (an agent's link to the library's skill, a folder source, a skill brought in from a link or the shared folder, a carried skill's folder, relink) now go through dirLink, which on that error makes a directory junction instead: one every user may make, followed by every program as a symlink to a folder is, made natively (FSCTL_SET_REPARSE_POINT, no mklink). A target a junction can't reach (a network share) still gets the old copy. Go reports a junction as irregular, not a symlink, so ours, unlink, carry's clearing of the library, a project's place and the CC Switch update now tell a link by linkEntry (symlink or junction) and take it away with os.Remove, leaving what it points at, even when where it points can't be read. On the Windows box with every privilege stripped from the token (CreateRestrictedToken DISABLE_MAX_PRIVILEGE, whoami /priv shows SeChangeNotify only) and an explicit sandbox environment, the library's tests went from 16 failures to none (TestSkillHow, TestProjectSkillsLinked, TestCarry, TestSkillCopyEditReachesTheOthers, TestImportSharedSkillForKimi …); with the privilege they pass too. TestJunctionIsALink (Windows: magpie's own, read through, unlinked without its target, none to a share) is new; the folder fixtures that ignored a failed os.Symlink now use dirLink, and the tests' link checks accept a junction. go test -race ./internal/library/ on the Mac, go vet, windows/linux(nogui) builds pass.
2026-10-06 13:32:03 +08:00
2026-10-13 14:55:46 +08:00
2026-11-12 02:00:19 +08:00
2026-10-07 03:00:47 +08:00
2026-10-15 23:08:03 +08:00
2026-11-12 17:07:23 +08:00
2026-10-10 19:53:02 +08:00
2026-10-30 10:29:59 +08:00
2026-11-03 20:03:00 +08:00
2026-10-31 21:29:22 +08:00
2026-11-03 20:03:00 +08:00
2026-11-03 20:03:00 +08:00
2026-11-03 20:03:00 +08:00
2026-11-03 20:03:00 +08:00
2026-11-03 20:03:00 +08:00
2026-10-10 00:37:32 +08:00