Files
magpie/internal/settings
NorethSea 9ca4b9ec28 gateway: provider search can be Off in Settings, so a model's web search goes to the Search APIs alone (#1483, NorethSea)
Settings › Search gets an Off choice beside Automatic and the providers.
With it, no provider is asked to search for another model (no ChatGPT or
Claude account's allowance spent, no Kimi Code search service, no Google
sign-in's separate search), and the saved Search APIs are asked in their
order; one failing never falls back to a provider. With Off and no ready
Search API, magpie offers no search tool of its own. A provider's native
search on the client's own protocol is unchanged.

NorethSea's change (from their fork, feature/search-provider-off,
68fe54ff), cherry-picked onto main. On review one sibling was missing:
ownSearcher and webSearchOf (what this magpie's model list tells another
magpie about searching) still treated a Kimi Code plan or Google sign-in
as searching for its models with Off. Both now go through searchesOwn,
the one check canSearchFor uses, so with Off a remote magpie is told
there is no search instead of adding a tool that has nothing behind it.

Run: go test -tags nogui ./internal/gateway ./internal/gui
./internal/settings (sandbox HOME); TestSearchProviderOffTellsRemoteMagpie
goes red with webSearchOf's old check put back; searcher-pick, gui-ja,
gui-de, gui-zh-tw .test.cjs pass in Chromium and WebKit.

Co-authored-by: NorethSea <963979204@qq.com>
2026-10-10 18:31:32 +08:00
..
tray: the menu bar shows several subscriptions' usage side by side (KevinXC on Discord) — Settings → Usage in the menu bar picked one card; its menu now ticks any number (kept open while ticking, saved once when it closes, Off unticks all, a ticked card that has gone stays listed to untick) and the pill says "3 subscriptions". settings.TrayUsages keeps them in order; a file with only the older trayUsage shows that one, and trayUsage is still written as the first for an older magpie. On the Mac the bird and a cell per card are drawn as one image by AppKit on the status item's button: the card's logo (a black glyph tinted in the menu bar's text colour, a coloured one as it is, the name's letter in a ring when there is none) and its two windows stacked, "42%" over "18%", in the bar's colour light or dark and sharp at any scale; the bird's flap goes through it. Arc flags run into numbers (Codex's logo) are spaced out for AppKit's SVG reader. A row longer than 10 characters (a plan's balance read from its page) is cut with an ellipsis in the bar and whole in the tooltip. Windows and Linux show the cards as text, " | " between them. TestTrayUsageCells, TestSVGArcFlags, TestTrayImage (darwin, renders 0-3 cards light and dark at 2x), TestTrayUsagesMigrate and tray-usages.test.cjs (Chromium, WebKit, en/zh) are new. go vet, go build (darwin GUI), go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build, go test -tags nogui ./..., go test ./internal/gui pass; tray-usages, settings-groups, panel-*, click-scroll, old-webkit pass. Not seen in a live menu bar.
2026-09-30 19:45:44 +08:00