Files
magpie/internal
yetone 93fa1d661c library: a Claude plugin's parts keep their own agents through sync, and each says which plugin it came with
givePlugin gives every part of a Claude plugin (skills, MCP servers,
hooks, subagents) the plugin's agents. putPlugins' settle ran it on every
sync put, even when the plugin's own agents and switch hadn't changed.
So an agent ticked or unticked on a part's own row was put back on the
next sync without a word. Now settle gives the parts the plugin's agents
only when those agents or the switch change. A part's own edit stays
until then.

The Library never showed `bundle`, so nothing on a part's row said it
belonged to a plugin. Each such row (Skills, MCP, Hooks, Subagents) now
carries an "In {plugin}" tag. Its tooltip says that changing the
plugin's agents, or turning the plugin off and on, gives the part to the
plugin's agents again. The tag is in en, zh, zh-TW, ja and de.

Tests:
- TestPluginPartOwnAgentsKeptBySync: tdd set to claude alone survives a
  sync of the same plugin, and changing the plugin's agents gives tdd
  the plugin's agents again.
- library-plugin-parts.test.cjs (new): one bundled part and one own part
  on every tab. Each bundled part has the tag, with its text and tooltip
  in each language, and the own part has none. Nothing is wider than the
  window at 1100 and 420. Chromium and WebKit.

Run (mica, at this tree on 32a181868):
- go test ./internal/gui -run 'TestCoreScriptBudget|TestI18n|TestCSS': ok.
- go test ./internal/library: ok.
- every library-*.test.cjs plus i18n-keys, both engines: 1900 pass,
  10 red.
  - library-open-again's 1100px cases are red on origin/main 98355866f
    too, run alone (#6751).
  - library-commands' WebKit de case (#7035) and library-pi-market's
    Chromium case (#7036) were red under load 110. Run again alone,
    they pass on this tree and on origin/main.

Broken by hand, each red, then put back:
- settle giving the parts on every put (`if moved || true`):
  TestPluginPartOwnAgentsKeptBySync red ("tdd's agents: claude,codex,
  want its own claude").
- withPlugin never tagging (`if (false && x.bundle)`):
  library-plugin-parts 82 red of 82.

Not tried: the real app window, or a real Claude plugin's sync between
two computers.

Run again after a rebase on 888d4eba5 (mica): the go test guards and ./internal/library ok; library-plugin-parts, library-plugins, agent-disconnect, agent-bulk-visibility, agent-visibility-saving, plugin-tools, i18n-keys, gui-de, gui-ja and gui-zh-tw, both engines: 155 pass, 0 fail.

At the pushed head, on cb1fe6d5d (mica): the go test guards, ./internal/library -run TestPlugin, i18n-keys and agent-disconnect ok.
2026-11-18 13:52:12 +08:00
..
…
…
…
…
…
…
…
…
2026-11-17 15:09:29 +08:00
…