Files
magpie/docs
yetone 00d6c8dbfc library: the Plugins page's Give to agents and Hide from agents follow the Library's switch for the plugin's tools
PluginServers called a plugin's tools server on when any agent was
ticked for it, but the Library row's switch is !Hidden. With the server
on in the Library and no agent ticked, the two pages disagreed. The
Library's switch said on, and an app at the MCP router's address had
the tools. The Plugins page said "Tools, hidden from agents" and offered
Give to agents. Now `on` is !Hidden on both pages.

Test: TestPluginToolsHidden checks that with the server on in the
Library and no agent ticked, an app at the router's address lists it and
PluginServers says on. docs/subsystems/plugin-tools.md says what `on` is.

Run (mica, at this tree on 32a181868):
- go test ./internal/library -run 'TestPluginTools|TestPluginServer':
  ok.
- plugin-tools.test.cjs, both engines, in the same 61-pass run as the
  two commits before.

Broken by hand: `On: len(s.Agents) > 0` put back made
TestPluginToolsHidden red ("on in the Library, given to no agent: the
Plugins page says hidden"). Put back.

Not tried: the real app window with a real tools plugin.

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
..