v0.1.4585 (6a0afc38a) put a tick, "Keep a copy in magpie's backups", on
the sheets that remove skills. The same reader, on v0.1.4594, saw it on
no sheet. It shows only when a folder of magpie's own would be deleted,
and most users have no such skill:
- a skill brought in from the agents (most of a library) has Put back,
not Remove: it goes back to them, nothing kept or deleted;
- one linked from ~/.agents/skills (npx skills, Codex) only loses the link;
- an agent's own skill with its folder in ~/.agents/skills, where most
skills are, always went to the backups, and its sheet had no tick
(inSharedDir). That sheet says "Its entry in ~/.agents/skills goes to
the backups too", so the reader saw backups promised and no way out.
The TUI's D said it deleted such a folder and kept it all the same.
The entry leaves ~/.agents/skills either way (setAside moves it out), so
the other tools reading that folder lose it either way; kept, it only sat
in the backups, which are never pruned when they hold skills. Now it is
deleted like any other folder when the tick is off, and its sheet (one
skill, and the picked ones) has the tick, saying "Its entry in … is
deleted too" when unticked. Never deleted, as before: a link's target.
An entry in ~/.agents/skills that is a link only goes, and its sheet says
"Its link in … goes too" (it said the entry went to the backups).
Remove all / the picked library skills counted one brought in from the
agents as a folder moved to the backups (or, linked, as only unlinked),
and showed the tick for it. It goes back to them (putBack): it is said
so, "{n} go back to the agents they were brought in from, as they were",
and counts for neither, nor for the tick.
Four new strings in zh, zh-TW, ja and de. docs/subsystems/library.md
says what changed.
Run (mote, this tree at base 5754fea43, origin/main when fetched):
- go test ./internal/library -run 'WithoutBackup|Found|Shared': ok.
- broken by hand: skills.go at HEAD (the inSharedDir guard back) with the
new test: TestRemoveFoundSkillWithoutBackup red, the shared entry in the
backups. skill-remove-nobackup.test.cjs at an origin/main 5754fea43
copy: all 20 subtests red in chromium and webkit (Remove all said "1
folders are moved … 2 linked from folders of your own are only
unlinked" for one brought in).
- GUI, chromium and webkit: skill-remove-nobackup (en, zh, zh-TW, ja,
de at 980 and 440px: shared entry ticked and unticked, its post, a
shared link with no tick, Remove all with one brought in, with and
without a folder of magpie's, nothing sideways), found-skill-pick-
remove, library-bar-more, library-found-hooks, library-hooks,
library-pick-remove, library-servers-bulk, remove-all-skills,
remove-found-server, remove-found-skill, shared-skills, skill-put-back,
i18n-en-no-cjk, i18n-keys: 176 pass, 12 red. Red: found-skill-pick-
remove at 420px (#5013) and library-bar-more in chromium (#7326), both
red at the origin/main 5754fea43 copy too.
- go test ./internal/library ./internal/tui ./internal/cli ./internal/gui
-timeout 45m: library, tui, cli ok. gui: TestBuiltinsTranslated (#7257)
and TestSettingsSaveKeepsWhatItDoesNotSend (#7240) red, both open and
about other pages. GOOS=linux go vet -tags nogui and GOOS=windows go vet
of library and gui: ok.
- gofmt -l internal/: nothing.
Not run: the full go test ./... and the whole GUI suite. Not tried in the
real app, nor on Windows or Linux; deleting goes through the same
os.RemoveAll as a folder in an agent's own skills folder. Not changed:
Put back still has no Remove; a skill brought in goes back to the agents,
where it can be removed (now with the tick).