c433147923e1eeeef2bccf23b6515545fddffa05
2219
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
b52c711142 |
Restore what 85e6ec540 reverted: it was committed on a stale index and took out b587eb306's and earlier work (webview2, library skills, opencode endpoints, quotas); this puts the tree at b587eb306 plus the Paseo agent only
|
||
|
|
85e6ec5406 |
agent: Paseo's Claude model picker lists magpie's models (@TheMist016 on X)
Paseo (getpaseo/paseo) starts the same Claude Code, but builds its own model
list: first-party models plus settings.json's `model` and a few
ANTHROPIC_*_MODEL variables (providers/claude/models.ts). It never reads
Claude Code's modelPicker, where magpie writes every model, so the rest were
not selectable in Paseo. Paseo's own ~/.paseo/config.json takes
agents.providers.claude.additionalModels ([{id,label,description}], checked
against protocol/src/provider-config.ts) and passes each id to Claude Code as
written.
New agent "Paseo" (detected by ~/.paseo or PASEO_HOME): its switch writes the
models Claude Code's /model lists (same ids, [1m] marks, names; only the ones
picked for it) there, marked "via magpie" in the description; the user's own
entries and keys stay, off takes out only magpie's, a sync refreshes when on.
Claude Code must be connected to magpie as well.
Run (mote-run, sandbox HOME in tests): TestPaseoAdditionalModels,
TestStateListsPaseo, internal/agentenv, internal/gui full package ok;
internal/agent full run red only on TestPiGroupEntryKeepsItsMembers, which is
red the same on origin/main
|
||
|
|
12cd456f2c |
library: Skills > New skill makes a skill of the user's own (josephBenchap on X)
josephBenchap asked to create a skill in the Library; it could only
install or bring one in. Skills now has a New skill button beside Find
skills. A dialog takes a name, a description and the agents (the app's
chips, no select); Create writes skills/<name>/SKILL.md in the library's
folder with name and description front matter (YAML-marshalled, one line,
at most 1024 characters), lists it with no source, gives it to the agents
picked like any imported skill, and opens it in the reader, whose path
link opens the file in the user's editor. The name is checkName's, and
refused when the library or an agent already has one by that name
(compared without case) or a folder is in the way. The follow-the-server
note already sits above the Skills tab, so it covers this too. en, zh,
zh-TW, ja, de. docs/subsystems/library.md says so.
Run on mote at this head:
- gofmt -l clean; go vet ./internal/library ./internal/gui on darwin,
GOOS=linux -tags nogui and GOOS=windows: ok.
- go test ./internal/library ./internal/gui: ok. TestCreateSkill is new.
- GUI node --test in chromium and webkit: library-new-skill (new; en and
zh, 1100 and 420px: refusal stays in the dialog, agent untick posted,
reader opens, no select, no sideways scroll), library-items,
library-follow-server, library-all, library-discover-jump,
library-groups, library-intro-width, library-linked-set,
library-pick-remove, library-row-open-scroll, library-ime-scroll,
library-desktop-skills, library-gone-agents, library-bar-more,
library-chip-fan, i18n-keys, i18n-en-no-cjk, gui-de, gui-ja, gui-zh-tw:
all pass.
- library-loading is red (2 of 6) on this tree and on origin/main
|
||
|
|
5a475f90c3 |
opencode go: each API goes to the endpoint Go's docs name, Gemini at /inference/go/google/v1beta (@jd04063221 on X)
Go's docs (opencode.ai/docs/console/go, Endpoints) give one URL per API under /inference/go: /openai/v1, /anthropic, /google/v1beta. The preset and the filled-in defaults still used /zen/go and Gemini's /inference/go/v1. The preset now gives the three; a preset provider saved with the older URLs is moved on load; openCodeRoot reads the per-API forms; a Go URL in the per-API form gets its siblings in that form. A URL the user gave stays. Run (mote): go test -run 'OpenCode|Preset|PlanQuota|Balance|Go|Gemini' ./internal/provider ./internal/gateway ok; vet darwin/linux/windows ok. Broken by hand: old opencode_endpoints.go/presets.go with the new TestOpenCodeEndpointsFilledIn goes red on 6 cases. Not tried: a real Go key (none here); old /zen/go routes still answer (400 MissingSessionID unauthenticated), so URLs the user set keep working. Full suite and GUI files not run before the tag. |
||
|
|
93b855d90e |
remote quotas: a card is wanted by its whole provider path, not its first part (748975219 on X)
With only relay/strata/model enabled on a Remote, the cards of relay/kiro and
relay/codex still passed, since remoteCardWanted compared the first part of
the card's id alone. A card is now wanted when its id is the provider path of
an enabled model (its id less the last part) or a parent of it, whole parts
only (relay/kir never matches relay/kiro). A model listed with no provider
still leaves it unknown, so all shown. cardWantedFor holds the rule.
Run (mote): TestRemoteCardWantedByWholePath (two levels, three levels,
non-boundary prefixes, several models, one level, no provider) is red with
the first-part rule put back by hand, green with the fix; -run Remote in
internal/provider ok; go vet darwin/linux/windows ok; gofmt clean. Full
internal/provider: TestQuotaSpanCarriesEveryWindowField and
TestKeptQuotaReportAsksNobody are red, and red the same on origin/main
|
||
|
|
0706d7a35a |
usage: a ChatGPT card has an image row: used up until the refusal's reset, else unknown (#6160, hqqqqqqqh on X)
ChatGPT's image generation has a quota apart from the 5-hour and weekly windows. Neither /wham/usage (additional_rate_limits is null) nor the reply headers (x-codex-primary-*, x-codex-secondary-*) tell it, so no remaining count exists to show. Each Codex account's card (Usage page, magpie quota --json, /v1/magpie/quotas, /v1/magpie/quotas/cards) now has an "Image generation" row (provider.WithImageLane, Lane "images", Text and Aside so routing, holds, history, tray and statusline never see it): "Used up" with the reset time while the image model rests on that account after a refusal (the #2244 drawing-lane rest, whose time is the refusal's resets_at), and "Unknown" otherwise. Never a share or a count. Shown in en, zh, zh-TW, ja, de. app.js: a Text row's display now goes through t(), a same-length change, as the core script budget has 1 byte of room. Run (on mote): go test -count=1 -run 'TestWithImageLane|TestCodexImageRow' ./internal/provider ./internal/gateway ok; codex-image-row.test.cjs in chromium and webkit at 900 and 390px in all five languages ok; TestCoreScriptBudget ok; go vet darwin, windows, linux nogui on provider and gateway ok; gofmt clean; 158 GUI files matching i18n/quota/usage/balance names in both engines (result in the follow-up). Broken by hand: the GUI test is red with app.js's display line put back to the old form; the Go row tests are red with imageRestOf returning false. Not tried: a real ChatGPT account hitting its image quota (the row is driven by a faked refusal's rest); the generated-image count the issue also asks for is not built. |
||
|
|
da169135a0 |
usage: an empty page says session files aren't read yet, and allows them (simonzyzy on X)
Claude Code's and Codex's sessions, and each call's tokens and time, need no provider: with the consent given, a sandbox HOME with no providers lists both agents' sessions and /api/usage/requests returns their calls (source log, ms, tokens). The only gate is sessions/reads asked=false, which the Sessions page asks but the Usage Overview and Requests pages did not mention; they said to point an agent at a catalog model. Now they say the files aren't read yet and offer one button that allows the agents found. The Sessions page says live output speed is measured only on gateway requests and where the files' own figures are. |
||
|
|
f5124ea179 |
library: a computer that follows the server says its changes are replaced (JiuLiaowkvn on X)
With Settings > Sync > This computer set to Follows the server, a skill or MCP server added in the Library is replaced by the next sync, and the reporter read that as the update deleting their skills. The Library now says it in one line above Instructions, MCP, Skills, Hooks, Subagents and Plugins (Memory too while memory is synced), with a link that opens the This computer row. Nothing is said when sync is off, the part isn't synced, or the computer syncs both ways. en, zh, zh-TW, ja, de. Run on mote: library-follow-server.test.cjs (new, 48 cases x en/zh, 1100 and 420px) in chromium and webkit; broken by hand (note not appended) it goes 29 red. Also green in both engines: i18n-keys, i18n-en-no-cjk, sync-follow-server, library-items, library-intro-width, library-hooks, library-all (chromium). Not tried: the full suite, the real app, a real sync server. |
||
|
|
8016205e3f |
provider: trust a self-signed server's certificate by fingerprint, for Remote magpie and any https address of your own (Zhangzhangi on X)
Zhangzhangi on X couldn't add a Remote magpie at a domain with a
self-signed certificate ("x509: "api.magpie.local" certificate is not
standards compliant") and asked for a skip-verification option. A
follow-up asked for the same on other self-signed hosts.
This adds a pin (trust on first use), not a blind skip. It is off by
default and kept per provider:
- Advanced → Server certificate → "Trust its certificate…" fetches the
certificate the server shows (provider/peekcert) and lists its SHA-256,
subject, issuer and expiry. "Trust this certificate" keeps the
fingerprint as the provider's serverPin.
- From then on only that certificate is accepted (netproxy pinTLS:
InsecureSkipVerify plus VerifyConnection comparing the leaf's DER
SHA-256). Another one fails with PinMismatchError, saying the server
showed a certificate other than the one trusted.
- The editor shows a red "Certificate not verified: only this one is
accepted" with the fingerprint, and "Verify it again" drops the pin.
- The pin is set only on the provider's own hosts (provider.PinHosts):
- every address of Remote magpie and of a provider added by URL;
- for a preset (Ollama, LM Studio, OpenAI at your own box), only https
addresses whose host is not one of the preset's or its regions' own
hosts. A vendor's host never takes a pin.
- Never for an account, Vertex or a subscription. Save refuses one
elsewhere.
- The client certificate and Server CA still go only to the providers
that took them before (TakesClientCert). A preset gets the pin alone.
- The editor's certificate rows (Client certificate and the new Server
certificate) are drawn by a lazily imported tlscerts.js. The Client
certificate row moved out of app.js with it, so the core scripts stay
under TestCoreScriptBudget without a raise.
Run (Go 1.26.8):
- WSL magpie-desktop, before the rebase:
- go test -tags nogui -count=1 ./internal/netproxy ./internal/provider
./internal/gui all ok;
- GOOS=darwin -tags nogui vet of gui fails on traywindows_darwin_test.go's
undefined trayImagePNG, the same at the base (a cgo-only helper).
- mote and mica, after the rebase on
|
||
|
|
466cd4809f |
gui: a plugin page's Copy picture works where navigator.clipboard is missing (nivekxft on X)
The day card's copy button showed "Cannot read properties of undefined (reading 'write')" in magpie web opened over plain http (a LAN address) or in a webview with no async Clipboard API: pageshare.js called navigator.clipboard.write unguarded. It now tries the API when it exists, else copies the picture as a selected <img> with the copy command, else throws a message that says to save it instead (translated in zh, zh-TW, ja, de). The desktop window was not affected: it already hands the PNG to /api/plugin-pages/image. app.js's text copy already falls back (/api/copy, writeText, execCommand), so no sibling is left on the raw API. Run on mote: page-image-no-clipboard.test.cjs (new, chromium and webkit, en and zh, navigator.clipboard removed), 4 of 4 red on the old pageshare.js and green after; plugin-page.test.cjs and i18n-keys.test.cjs green. go test ./internal/gui: only TestCoreScriptBudget red, on main already (#5918); pageshare.js and i18n.js are not counted in it. Not tried: a real http LAN page pasting the image into another app; the execCommand path was observed selecting the PNG, not read back from the OS clipboard. |
||
|
|
f3cdb03c8a |
agents: a Claude Code kept in another config folder is a row of its own (BieJian21872 on X)
Only the folder CLAUDE_CONFIG_DIR (else ~/.claude) names was found. Every
other ~/.claude… folder holding Claude Code's files (settings.json,
.credentials.json or projects/) is now claude#<name>, "Claude Code · <name>",
made by claudeIn at that folder (place.dir, as claude#launch is): connected,
model picked and checked in its own settings.json. With the variable
elsewhere, ~/.claude is claude#default. ~/.claude.json, another tool's
.claude-… folder and the launch file's folder are not rows. A folder
outside the home folder is not found (documented in agent-wiring.md).
Run at the pushed head's parent
|
||
|
|
19782923c5 |
codex: the compaction magpie makes can go on a model of its own (0neB1aze on X)
Codex's memories had a model of their own, its compaction did not. Codex's row has a compaction model square (compact_model, settings.CodexCompactModel), read by the gateway on each compaction (codexCompactTo, before codexCompact). Only a compaction magpie makes is moved: it asks for a plain-text summary any model reads back. One a ChatGPT account seals, or a pick that compacts natively, is left, since only the writing account reads it (#1099); a disabled, unserved or key-barred pick is left with a log line. The text sent to the model is unchanged. Run on mote: TestCodexCompactOnItsOwnModel (red with the move taken out) and TestCodexCompactToLeavesNative; go test for gui, settings, settingsapi, agent, provider, gateway; darwin, linux and windows vet; the GUI files in both engines. Not tried: a real Codex session compacting on the chosen model. |
||
|
|
a3f4aab12e |
routing: a Claude Code request's row says whether it ran in the TUI or as claude -p (Anotiaww on X)
startRun notes the entry on the request's context (noteEntry); serve copies it to Try.Entry and Try.EntryWhy (the claudePrint code). The Routing row shows a TUI or -p chip, with the reason in its title, in en/zh/zh-TW/ja/de. The bridge page also records the answer to Tossipe on X: a local Claude Code on a remote magpie sends its history each turn, and the remote resumes its session and types only the new turn, so the history isn't sent to Anthropic twice. Run on mote: TestEntryNoted; routing-entry.test.cjs in both engines, five languages, 1000 and 480 wide; i18n-keys (a key repeating a Go string is reworded). Not tried: a real Claude Code run on each path. |
||
|
|
ab5824aeea |
gateway keys: a limit in total never resets by the period, only by Reset usage (Cyrus_4433 on X)
The Limit window menu gains "in total" (period "total", CLI: gateway-key limit <id> total). It counts from when it is set or last reset and ends a century off (access.Limit.Window), so only Reset usage starts it again; its 429 says it stays refused until reset or raised, the row reads "$0.00 / $300 · 总额" with no reset time, and a remote key's window is "Tokens/Spend in total" with no reset. Old settings files read the same (new period only). i18n in zh, zh-TW, ja, de; reference.md and gateway-routing.md say it.
Run: TestLimitTotal and TestTotalLimitNeverResetsByThePeriod, red on the old code (Valid refuses "total"); gateway-key-total.test.cjs red without the keys.js change (5 of 5). Not tried: a real key through a live gateway; full suite follows after the tag.
Run (before this push):
- gofmt -l clean; go vet darwin, linux (nogui), windows clean.
- go test: internal/access, internal/budget, internal/cli, internal/provider ok.
- Go tests for the total period are red on the old code (Valid refuses "total"); the GUI test is 0 of 5 languages passing without the keys.js change.
- gateway-key-total.test.cjs and i18n-keys: 9 pass in chromium and in webkit (zh, zh-TW, ja, de, en; 500px width; no native select).
- Full GUI suite on mica, chromium: 46 reds in files this change does not touch (accounts, Pi/OpenCode Go, panel sheet, check-in, Aside provider, API key theme, allowed addresses); none is a key-limit test. Webkit pass still running; reds are to be compared with origin/main and filed after.
- TestCoreScriptBudget is red on origin/main
|
||
|
|
52041e6bc5 |
gateway: a Team workspace's third-party refusal ("draw from extra usage", no "your") is redone as claude -p too (#5645, pidal20 on X)
Anthropic words the refusal "Third-party apps now draw from extra usage, not plan limits. Ask your workspace admin to add more" on Team and Enterprise. thirdPartyWords only matched the Pro/Max "your extra usage", so an interactive turn was neither redone as -p nor recorded in refusedTUI, and the raw 400 reached the caller every turn. thirdPartyIn matches both wordings; its three uses (refusedTUI, thirdPartySaid, which feeds redoable and thirdPartyRefused's message selection) all go through it. Docs updated. Run on mote: TestClaudeTUIThirdPartyTeamWording (reporter's literal text: a TUI turn redone as print, and both thirdPartyRefused messages) red on the old code (400 reached the caller), green now; go test -tags nogui ./internal/gateway ok; gofmt clean; go vet darwin, linux nogui, windows. Not tried: a real Team account. |
||
|
|
7bcb161938 |
gateway: the MCP router gives Alma's Node fetch magpie-image: Sec-Fetch-Mode alone is not a web page (chang_lochuan on X)
Alma's MCP client is Node's fetch (undici in alma-server/lib/server.mjs). It
sends Sec-Fetch-Mode: cors on every request, with no Origin, no
Sec-Fetch-Site and no browser agent. hubVisitor used fromBrowser, which counts
Sec-Fetch-Mode, so Alma was an Away visitor and the HereOnly servers
(magpie-image) were neither listed nor run for it, while magpie-vision showed.
hubFromPage judges the hub's visitor by what a page's POST always carries and
its script can't remove: Origin (null under no-referrer too), Sec-Fetch-Site,
a Mozilla/ agent. The hub takes POST only, so the GET-without-Origin rebinding
case fromBrowser covers does not reach it; a rebound name is still refused
first by lanGuard's rebound (an Origin or Mozilla agent) and serveMCP refuses
any Origin that isn't listed in Settings. fromBrowser itself is unchanged for
heap, memory, join, restart and the rest. No per-agent token exists for a local
agent (the hub entry carries a key only from another machine), so the decision
rests on the marks, not on a credential.
Run (mote): TestHub* in internal/gateway; new
TestHubGivesAlmaItsHereOnlyServersNotAPage (Alma's headers are given
magpie-image; Origin null, evil, localhost, evil.localhost, tauri.localhost,
app://obsidian.md, chrome-extension://, Sec-Fetch-Site only, Mozilla/ agent
only, and three rebound-Host shapes get none and run nothing, no key). Red on
the old code ("Alma's fetch is given 200 [magpie-vision]"). Broke by hand:
hubFromPage = fromBrowser(r) goes red; dropping the Origin mark stays green
because serveMCP refuses an unlisted Origin on its own (two layers).
gofmt, vet darwin/linux(nogui)/windows, then go test -tags nogui -count=1
./internal/gateway (ok, 1283s) and ./internal/library (ok, 300s) at the
commit before the rebase onto origin/main.
Not tried: the real Alma app against a real hub (its config is the user's live one).
|
||
|
|
6b45130829 |
sync: a plugin removed on one computer is removed on the others (dolacmeo on X)
Plugins rode the providers part and AddPlugins only adds, so a plugin one computer removed came back from another that still held it and was sent up again. davsync now keeps the plugins both sides had after the last sync (state.Plugins, as sign-ins keep theirs); a name one side has since lost is taken out of the server's list when it was removed here, and removed here (provider.RemovePlugin) when it was removed there. A plugin added meanwhile stays. A removal that fails (agent on magpie) is retried next sync. backup now writes an empty plugin list as [] so "none" is told from "older magpie". Run (mote): go test internal/davsync + internal/backup ok; vet darwin, linux nogui, windows clean; gofmt clean. Broken by hand: pluginPlan returning nothing turns TestSyncPluginRemovalSpreads red (b keeps x after a removed it). Not tried: real WebDAV server, two real machines, full suite before tag. Siblings: MCP servers, skills, providers and search APIs are mirrored (library.Put, provider.Mirror), so their removals already spread when one side changed. |
||
|
|
a99abe694b |
claude: a summary request without its pending call branches off the waiting run's session (#6128, recih on X)
Claude Code's AgentSummary sends the sub-agent's conversation whole, minus
the assistant messages whose calls have no result yet, keeping the words
before them. branch() needs a call in the last reply to find a session
line, returned nil, and a new Claude Code was told the whole transcript:
90K-160K cache tokens written for a progress label.
branch() now also takes a last reply with no call: the run is the owner's
run with a call line whose conversation (told) is the one before that
reply, the session is cut before its first call line (cutSessionBefore,
savedSession.cutBefore), and the run is told only the request's tail.
When no branch is found the log now says why, by structure only (no
prompt text): "no branch of a run's session for this request: <reason>".
The reporter's second cause, "answered by another request", already
branches off through the calls path; the new reason line will show which
condition fails there if it still does.
Run: go test -run 'TestClaudeBranchForSummary|Fork|Branch|Retry' ./internal/gateway
ok on mote; the new test is red with the pending path off
("no run of the account made the calls"); gofmt clean; go vet darwin,
windows, linux nogui; full ./internal/gateway started after the tag.
Not tried: a real Claude Code AgentSummary against a live subscription.
|
||
|
|
b4fc29a6e4 |
gateway: a video reaches a model that takes one, on every API, and a group takes its members' kinds (#6135)
LingYingNX sent MiniMax's Messages video block through the MiniMax plugin (a plugin is always sent a translated request). readAnthropic had no case for "video", so the block was left out: the reply was 200, the request billed, and the model never saw the video. Chat's video_url and a Chat file of a video were left out the same way (#4101). A video is now a File part with a video/* media type (video_input.go): - read from Messages' video block, Chat's video_url, a Chat file of a video (nested, or the AI SDK's flat {type, data, mediaType}) and a Responses input_file of one; - built as a video block on Messages, video_url on Chat, inlineData on Gemini's API (as before for Gemini); - Responses has no shape for one: a latest-turn video translated there is a 400 that says so (unportableVideo in translate). A latest-turn video for a model whose list says it takes no video is a 400 before any upstream is asked; one of an earlier turn is told of in words (Request.videoOff, set in buildFor). A routing group takes the union of its members' Inputs/Outputs (buildGroupEntries, #2898), so /v1/models lists video for group/... when a member takes it, and a video goes only to members that take one, else to unknown ones, else a 400 naming the group. Not changed: PDFs (Messages document, Responses input_file of a PDF, a Chat file of a PDF) stay as #5452 says; input_audio stays with #4101. Ran (mote, at this tree): gofmt -l (nothing), go vet ./..., GOOS=windows go vet ./..., GOOS=linux go vet -tags nogui ./..., GOOS=linux go build -tags nogui, GOOS=windows go build, go test -tags nogui -timeout 45m ./internal/gateway ./internal/provider: ok gateway (1072s), ok provider (132s). Rebased on origin/main |
||
|
|
55dff77b4d |
gui: plugin pages load behind a proxy that signs in by cookie (xuanwo on X)
A plugin page's frame is sandboxed (opaque origin), so its stylesheet and scripts are cross-site requests that carry no SameSite=Lax cookie. Behind Cloudflare Access they were redirected to the sign-in page and the page said it "didn't answer" (Day card). index.html's manifest link also fetched without credentials. In magpie web the page's HTML now comes as one document (pageinline.go): classic scripts (bridge included) and url()-free stylesheets are written in, scripts allowed by sha256 in the policy, deferred ones moved to the end of body. A script the page adds later is fetched by the window (asset call, folder-checked, window carries the cookie) and loaded from a data: address (WebKit finds no blob made in a sandboxed frame). The manifest link has crossorigin="use-credentials". Modules, url() stylesheets, images and fonts loaded by the page itself still ask the proxy. Run on mote at this tree: go test -run PluginPage ./internal/gui; node --test plugin-page, plugin-page-idle, plugin-page-cookie-proxy in chromium and webkit; gofmt; vet. Broken by hand: inlining off turns TestPluginPageWebComesAsOneDocument red, the bridge shim off turns the cookie-proxy test red in both engines. Not tried: a real Cloudflare Access tunnel; images/fonts behind a proxy. |
||
|
|
e3e774be7a |
agents: Claude Code's Co-Authored-By commit signature on or off from its settings (9_bishi on X)
Claude Code's row in Agents > Settings gets a "Commit signature" On/Off menu. Off writes Claude Code's own key attribution.commit = "" in settings.json; On takes out only what hid it (attribution.commit "" , attribution false, includeCoAuthoredBy false), so the default comes back. A custom attribution text is the user's own: the row shows "Your own text", is disabled, and is never written over. attribution.pr is untouched. Route POST /api/settings/claude-attribution, S2 in the settings parity test. Run at the rebased head (on |
||
|
|
967fefcec6 |
gateway: a key can be set to a service tier (JackyFill on X)
A gateway key now carries ServiceTier: follow the request (unset), standard, Fast (priority) or Ultrafast. keyTiered sets the Responses and Chat request's service_tier to it, over the client's ask and Codex's own setting; standard takes the tier off and Ultrafast on a bare model no account lists it on goes as priority. What is sent upstream stays the providers' own rule (fits, takesTier, fallback), so a vendor with no service tier is sent none; Anthropic-protocol requests are untouched. Set with the tier-key action, `magpie gateway-key tier <id> ...`, or the key row's badge (zh, zh-TW, ja, de strings). Run (wsl-run, Linux): TestGatewayKeyServiceTier, TestKeyTieredChat, TestKeyServiceTier, TestGatewayKeyTierCLI green; internal/gui -run Key|Tier|Caller|Access ok; gateway-key-tier and gateway-key-concurrency GUI files 40 of 40 in chromium and webkit (serial); go vet nogui for linux, windows and darwin; gofmt clean. Broken by hand: with the keyTiered call removed TestGatewayKeyServiceTier fails on 4 rows. A parallel run of all gateway-key and i18n GUI files had 8 unrelated timeouts that pass serially (load). The whole internal/cli package hit the default 10m timeout on this box; the key tests in it pass. Not tried: a real ChatGPT account, the Windows box, the full suite. |
||
|
|
4cc20f93c0 |
routing: a group says whether its requests are masked (1dwsdqwd2 on X)
Group.Redact: unset follows each member's provider (Send requests unmasked), "on" masks as Settings say whichever provider, "off" sends to every member as written. In a group in a group any "on" wins over "off"; Settings with masking off still masks nothing. Every route that reaches a group asks the same way: unredactedRoute (a provider's fallback groups and provider.GroupsAfter), unmaskedMembers, maskedFor and MaskRoute, and candidate.unmasked() for embeddings, images, video, decide and count_tokens. A shared group never carries it (export and import clear it; an import over a group keeps the old one). A save that doesn't name it keeps it; "follow" clears it. The Routing group editor gets a Masking row (menu, no select) in zh, zh-TW, ja, de, reusing core strings; the Privacy page's unmasked warning counts groups set to off. Run at the pushed head's parent (rebased on origin/main): gofmt -l, go vet provider/gateway/gui, go test provider gateway gui cli (gateway ok 1091s, gui ok, cli ok); provider red only in TestCancelledPluginSignInSavesNothing, open as #5047, green alone x10, not touched here. group_redact_test.go broken by hand (UnmaskedBy's on/off cases deleted): 5 tests red. group-redact.test.cjs: 5 languages x 2 widths x chromium and webkit, 30 of 30; i18n-keys green. Not tried: a real vendor request through a masked group. |
||
|
|
c36202ae5d |
routing: removing every found group turns found groups off, so no new one comes back (xwang_sh on X)
Found groups live only as removal records ({"id","hidden":true}) in
providers.json; removing them one set at a time left every model a
provider listed later to make a new group, and taking the records out by
hand brings the groups back. A user who removes every found group (the
Routing page's select-all Remove, `magpie group rm` of all) has set "none":
DeleteGroups now ends with SetAutoGroups(false) when no found group is left
shown. The removed records stay, found groups on again restores them as they
were. The GUI delete runs through agent.Reseat so an agent set to one is
moved to its model, as the found switch does.
Run on mote: go test ./internal/provider ./internal/gui ./internal/cli
./internal/tui all ok; go vet darwin, windows (provider, gui), linux
(provider) clean; gofmt clean. TestDeletingEveryFoundGroupKeepsThemOff is
red with the new branch disabled by hand ("on true, shown [auto-z]").
Not tried: a real GUI click-through; a hand edit of providers.json (the
records going back is by design, documented); WebDAV sync of a removal.
Full suite not run before the tag.
|
||
|
|
b0b995e085 |
sessions: a ZCode session is named as the ZCode app names it, from its task index (Flandern1211 on X)
ZCode's desktop app keeps the names it shows (and the user's renames) in ~/.zcode/v2/tasks-index.sqlite, tasks.title by task_id = the CLI database's session id. The CLI's own title is the model's guess or "default" (blank here), so the Context page showed a first prompt where ZCode shows a name. zcDB.info now takes the task's title when it has a non-default one; the task's updated_at counts toward the file's time so a rename, which touches no CLI row, is read again. The index is read once per change of the file or its -wal, and a failed read keeps the last good one. Run (mote): internal/sessions whole package ok under a sandbox HOME; gofmt clean; go vet darwin, linux nogui, windows ok. Broken by hand: the title overlay off -> new test red (title empty); updated_at bump off -> the rename step red (stale title). Not tried: a real ZCode with the CLI db (this machine has only the app's index, no cli/db), Windows with a moved data folder (ZCodeDataIn is the existing resolver). |
||
|
|
1d60b165c3 |
gui: the connected Hermes row draws no control for its other profiles; each is its own row hermes#<name> (Norethcy on X)
The Hermes row's "Other profiles" section picked the model of the same profiles that now have rows of their own (Hermes · <name>), two controls for one value. The section is gone; the profile:<name> fields stay in the API (the row hides them via hermesBot). The profile row's Default picker is noted as putting back what the profile had before magpie, as the section's was. The unused "Other profiles" i18n key is removed in every language. Run (mote): hermes-profiles, hermes-profile-row, i18n-keys GUI tests in chromium and webkit, 19 of 19 green; hermes-profiles rewritten to assert the section, the profile: squares and "hermes -p" are absent, in 5 languages at two widths. Broken by hand: with the old app.js, hermes-profiles is red (10 of 10). Not tried: a real Hermes with real profiles, the full GUI suite and Go suite (GUI-only change, no Go touched), Windows/WebKitGTK. |
||
|
|
745d209dcf |
usage:day takes a from: a week, a month or all time in one read (HeheLi29136651 on X)
HeheLi29136651 asked for the Day card's weekly, monthly and total bill. The
read only answered one day, so the plugin had nothing to draw. usage:day
now takes {from: "YYYY-MM-DD" | "all"} beside date: the days from there to
date, with the same totals, agents, models and days list (usageapi.SpanOf;
DayOf is SpanOf with no from). "all" starts at the first day with calls:
the ledger keeps old calls in wider buckets that start before the first
call, so From is taken from the first day the heatmap lists. A from after
date, or a date after today, is an error. Answers carry `from`, which is how
a plugin tells a magpie that has spans from one that ignores the param.
Run, on mote:
- TestSpanOf (week, month, all, all up to an earlier date, day alone,
bad inputs) with calls 300 days back, where the bucket starts before the
first call: red when the From correction is removed (From 2026-01-12 for
a first call on 01-15), green with it.
- TestPluginPageReadsADay gains from "2000-01-01", from "all" and a from
after the day.
- go vet (darwin, windows, linux -tags nogui), usageapi and internal/plugin
tests ok.
- The plugin side (page-day-card 0.3.0) reads it: seen in the sandbox web
instance in chromium and webkit, empty ledger only.
Not tried: a ledger with real calls end to end in the page (the plugin's
test covers the card from a made-up read), and a magpie from before this
change opening the 0.3.0 page (the code path throws "usage:day from" when
there is no `from`, and says to update).
|
||
|
|
a94468ea5e |
gui: a plugin page behind a proxy that keeps no Host still loads its scripts (xuanwo on X)
xuanwo's Day card was blank in magpie web behind a reverse proxy. The frame's CSP named the page's folder under r.Host (https:// and http://), and a proxy that keeps no Host (nginx's default proxy_pass) hands magpie its upstream's own address, so the policy named nothing the browser used and every script was blocked. A browser's page now names its own origin in the frame's address (_o=, framed() in pluginpages.js; the frame sends no Referer, its referrerpolicy is no-referrer, so a Referer can't carry it), and ownSources adds it (browserOrigin: http(s) only, no user info, a plain host). The desktop window's scheme is unchanged. Run, on mote: - TestPluginPagePolicyBehindProxyHost: red on the old code (policy names only the upstream host), green now; also checks that a junk _o (javascript:, user info, a path) adds nothing. - Real repro: a sandbox `magpie web` behind a Node proxy that rewrites Host to the upstream's, opened at http://localhost:3495/?view=plugin-day-card in Playwright chromium and webkit. Before: a broken frame (webkit screenshot 52KB, no card). After: the card draws in both, the frame's address carries ?_o=http%3A%2F%2Flocalhost%3A3495. - go vet (darwin), GOOS=windows and GOOS=linux -tags nogui for internal/gui, usageapi; go test internal/plugin, internal/usageapi and internal/gui -run 'PluginPage|Page|Day'; plugin-page*.test.cjs in both engines: 8 of 10 pass. The 2 reds are plugin-page-foreign-error ("own: the frame opened"), red on origin/main too before this change (#6117). Not tried: nginx itself (a Node proxy that rewrites Host stands in), Cloudflare Tunnel, and the desktop window on Windows. The whole GUI suite is started after the tag. |
||
|
|
22f2759d71 |
gui: Settings › General › Sidebar pages leaves pages out of the sidebar for this browser (youimark on X)
Gateway mode hides Agents only for magpie web without agents, and the Library
only goes with its built-in plugin. A docker gateway asked to close both. The
new row is a multi-tick menu of the sidebar's pages (Providers stays), kept in
localStorage magpie.navHidden; navHides and offView read it beside gateway mode
and the built-in plugins, and start.js opens Providers when Agents is out.
Main's TestCoreScriptBudget was already 351 bytes over at origin/main
(1,534,153 > 1,533,802); this commit cuts comments in app.js to land at
1,533,596, under it, with no raise.
Run, on wsl-run (xiaomi-gpu), chromium + webkit: nav-pages-hidden 2 pass;
broken by hand (navHides without the new term) 2 red. settings-general went
red on the first draft (the row was 56 tall, the others 51, the button in a
wrapper) and passes now. i18n-keys, i18n-en-no-cjk, last-page, gateway-mode,
sidebar, phone-tabs 0 fail. go test -tags nogui -run TestCoreScriptBudget ok.
Red the same on an origin/main copy (7 and 14 fails, not from this change):
builtins webkit, side-toggle (both engines) and settings-search ("searching
posts nothing": /api/update/using); filed with this push.
Not tried: a real docker deployment, the full GUI suite, the Mac and Linux
apps, sidebar-glide (3 fails under load, base not compared).
|
||
|
|
8718e0427d |
settings: app updates get their own proxy choice (moonlityu on X)
Settings > Network has a new "App updates" row under the plugin proxy row:
Same as above (default, today's behaviour), Direct, Custom or a saved proxy.
It is Settings.UpdateProxy / UpdateProxyCustom, kept per computer
(KeepOwn), left out of auto-backups with the other proxies, and listed in
the saved proxies' "in use" check, so a saved proxy used by updates can't be
deleted. update.proxied() wraps its transport: a request that names no
proxy of its own (magpie update --proxy does) takes the setting; unset, it
follows the global proxy as before. A value a user already set is never
changed.
Per-model proxy inside one provider is not added: a proxy belongs to a
provider, an account or a key, so a provider can't split by model without a
second provider on the same URL (noted in providers-accounts.md).
app.js stays within TestCoreScriptBudget by cutting five long comments, no
raise.
Run (Linux via wsl-run, rebased on origin/main
|
||
|
|
961427f122 |
codex: the ChatGPT app left on "hit a snag" after a switch off a used-up account is reopened without the Restart tick (RealZeroP27 on X)
RealZeroP27 (switch only, requests not through magpie, ChatGPT app on
macOS 27.2.1): when the account ran out and magpie signed Codex in to the
next one, the app showed "ChatGPT 遇到了问题 请重试" and only a manual
restart cleared it.
Cause: magpie did end the app-server (a switch off a used-up account
always does), and the signed-in ChatGPT app fails on the one it starts
next, a fault in the app (codex_app_crash.go, #4550). magpie reopens the
app on that page only with "Restart the Codex app" ticked, which ships
off (
|
||
|
|
65924a8927 |
gateway: Codex's commit message and PR text come back in the shape its schema asks for (makenxis on X)
The Codex app's "generate commit message" is an ephemeral side turn
(thread_source commit_message; pull_request_message and
commit_pull_request_message likewise) whose answer must be {"message"}
or {"title","body"}. A model behind the Chat or Anthropic API never sees
that schema and answers in plain text, which the app turned down, so the
button failed for Codex on a magpie model. Titles, descriptions,
summaries and predictions were wrapped for this reason; these three kinds
were not. codexCommit now routes them through codexShaped: commitJSON
keeps the model's own JSON when it gave every required string, else makes
the object from its text (subject cut to the schema's 72 characters,
title from the first line, body from the rest).
Run (wsl-run, Linux): TestCodexCommitMessageOnMagpieProvider,
TestCommitJSON, TestCodexSide*, TestCodexSummary* green; go vet for
linux, windows and darwin; gofmt clean.
Broken by hand: with codexCommitsTo returning "" the new test is red
(the plain text "Fix login redirect loop" goes out unwrapped).
Not tried: the real Codex app against magpie (the request shape was read
from the app.asar on the Windows box, not captured); the full suite.
|
||
|
|
8af7c27fff |
library: mcp add takes header=, env= and timeout= as settings, mcp set and mcp show (Abandon332 on X, #6111)
`magpie library mcp add` handed env=A=B and timeout=30 to the program as arguments (exit 0, written into the agent), and refused header= on a URL, so a token-bearing remote MCP needed a hand edit of library.json. SplitServerWords takes header=K=V (or K: V), env=K=V, timeout=SECS, agents= and --local out of the line; words after -- are the program's. A setting-looking word magpie doesn't know (headers=, envs=) is refused; header= on a command or env= on a URL is an error. New: mcp set <name> header=|header-=|env=|env-=|timeout= keeps the rest of the server, and mcp show <name> prints it as JSON. Header names match without case and keep the stored spelling. Run (wsl-run, -tags nogui): TestSplitServerWords, TestSetServerKeepsTheRest, TestLibraryMCPHeadersEnvTimeout, all of internal/cli and internal/library ok; GOOS=windows and darwin go vet of both packages; gofmt clean. The new CLI test fails on the old code by construction (env/timeout in Args). Not broken by hand separately. Not tried: win-run, the GUI (its save already sends headers; a stale open editor over a hand edit isn't addressed), the TUI line (still ServerOf), the other agents' encoders for timeout. Not run: full suite. |
||
|
|
7050da0a4c |
hermes: each other profile is an agent row with its own skills and MCP servers (Norethcy on X)
Hermes reads skills/ and mcp_servers from each profile's own home, but the
Library only reached the connected profile. Every other profile is now an
agent row hermes#<name> ("Hermes · <name>"), like omp#<name>: its model pick
stays, and the Library target points at that profile's config.yaml and
skills/. No row is listed while Hermes itself is gone (CLIMissing). Tool
off-lists (tools.exclude) work on the rows too. The GUI says "starts on the
model picked here" for them as for Hermes.
Run: wsl-run go test ./internal/agent ./internal/library (ok, full packages);
GUI hermes-profile-row, hermes-profiles, omp-profile-connect, i18n-keys in
chromium and webkit, five languages; gofmt; go vet GOOS=darwin and windows
for agent and library.
Broken by hand: without hermesProfileAgents in onMachine,
TestHermesProfilesAreAgents is red; without the hermes# branch in targetOf,
TestHermesProfilesGetTheirOwnLibrary is red; without the app.js change the new
GUI test is red (10 of 10).
Not tried: a real Hermes with real profiles, Windows via win-run, the full
GUI suite, the internal/gui Go package (wsl lacks gtk4, build fails there).
|
||
|
|
cc588e7829 |
keys: a typed balance may be below 0, as a key the vendor let overdraw reads (AlanWang1027713 on X)
The balance a user types to calibrate a key (GUI pill, keyownbalance, magpie provider key-balance) was refused below 0 with 'a balance is an amount from 0', while the card itself already shows an overdrawn key as ≈-$1.84 after spending. So a user whose vendor page said -1.84 could not type what it says. The bound is now -1,000,000 to 1,000,000 in both currencies, in the GUI, the CLI parser and checkOwnBalance (which also guards what is read from disk). A sign may come before the currency's (-$1.84, -¥5) as well as after it. Credit that expires stays above 0 (a grant is never negative). Refusal text and its zh, zh-TW, ja, de strings say the new range. Run (wsl-run, mote's disk is full): go test -run Own ./internal/provider green; red on the old checkOwnBalance/ParseOwnBalance (5 parse cases fail). Not tried: a real overdrawn key; macOS/Windows. |
||
|
|
dd884058e7 |
plugins: a Discover plugin's README comes from the copy usemagpie.ai keeps, before npm or GitHub (River_WLan on X)
npm's human check answers 200 with a page that isn't the package's entry, so the README showed "npm didn't answer: unexpected end of JSON input". The community repo's tagged workflow now keeps each listed plugin's README at readmes/<key>.md on dist (plugins repo, pushed), usemagpie.ai serves it at /api/plugins/readme (edge 10 min, jsDelivr stands in for raw), and ReadmeIn asks it (5s an address, MAGPIE_PLUGIN_CATALOG=off skips) before npm / GitHub; an installed plugin's folder still comes first. A page that isn't npm's entry now says npm may be asking for a human check. Only the plain README.md is kept: a language README is read from npm/GitHub only when the copy is missing. Run: go test ./internal/plugin ok (wsl); site/worker.test.mjs 40 pass (wsl). Red on old code: TestReadmeFromTheKeptCopyBeforeNPM fails with "unexpected end of JSON input" and npm asked 2 times; worker test red with the route removed. tagged.mjs run on wsl against real GitHub: 369 plugins, 369 READMEs, a second run re-read none. Not tried: the Actions run itself, the GUI (no GUI file changed). |
||
|
|
5c02be05b8 |
agent: agy moves onto the community agent-agy plugin
The built-in agy agent (Antigravity CLI) is the first built-in agent a community agent plugin serves, as the retired subscriptions moved onto provider plugins. While @magpie-community/agent-agy is installed and on, magpie's agy is the plugin's: the built-in leaves the list (here and in WSL), its id and aliases are the plugin's, and what the built-in wired is handed over. Turned off or removed, the built-in is back. Nothing is forced yet; the forced install and the built-in's retirement come once the plugin is on npm and a real run with it is on record. The plugin (plugins ebcff866, 0.2.0) follows the built-in since |
||
|
|
5a9b5720da |
library: a Remote magpie's skills and prompts can be used on the client (KoiLx0 on X)
A Remote magpie's editor has a new switch, Use its skills and prompts. The remote serves its Library at GET /v1/magpie/library (local or shared callers; a held key is refused; no MCP servers, which the MCP switch already covers; borrowed items are never passed on). The client fetches it every 10 minutes and once on switching on, and adds each skill and prompt set as remote-<id>-<name>, recording a hash of what it wrote. It only changes what still matches that hash: a skill or set of the user's by the same name, one the user edited, and one the user removed stay as they are; an update or drop moves the old copy to the backups; switching off takes out what is unchanged. The first set becomes active only when no prompt is active. Run (wsl-run, magpie-wt/remote-library at the pushed head after rebase): - go vet -tags nogui ./..., GOOS=windows and GOOS=darwin vet of library, provider, gateway, gui: clean. gofmt -l clean. - go test ./internal/library ./internal/provider: ok. internal/gateway: TestReadOnlyKeyEveryRoute named the new route (fixed here, now ok); the package then ran to the end of a 30m wsl timeout on a slow box. - TestBorrowRemoteLibrary and TestBorrowedSkillGoesWithTheRemote: broke by hand (the user's-own-skill guard turned off), TestBorrowRemoteLibrary went red with "kept []", restored. - GUI remote-magpie.test.cjs (chromium + webkit): its new assertions for the switch pass, but the file is red on main before this change (#6099: line 160 and a layout assertion), so they ran in a copy with those two assertions relaxed. i18n tests ran in the same call. Reds not mine: #6099, #6103 (TestSettingsSaveKeepsWhatItDoesNotSend). Not tried: a real two-machine run; internal/gui and gateway full packages to completion on wsl; Collect/Put (sync backups) still carry borrowed items as ordinary ones. |
||
|
|
3bb9575dc3 |
library: an rtk.exe in winget's folder that winget doesn't list is upgraded from rtk's release (netube99 on X)
RTK upgrade failed with "winget failed (exit code 0x8A150014): winget finds no rtk-ai.rtk package". rtkUpgrader took any rtk under a \WinGet\ folder for winget's and ran winget upgrade, though winget had no record of it. Now, when the exe sits inside winget's folders and winget says it did not install it (wingetDisowns: records elsewhere, or winget list exit 0x8A150014), the upgrader is the existing Windows-release action (zip checked against checksums.txt), applied to the file a WinGet\Links link points to. A link to an exe outside winget's folders (--location) and an rtk winget does list still go to winget; winget that can't answer is not taken over, as before. Run: wsl-run go test ./internal/library (full package, ok), go vet linux and GOOS=windows ok, gofmt clean. New TestRTKWingetFolderWithoutRecord is red on the old rtk_upgrader (stash-tested). On xiaomi-gpu (win-run) a real rtk 1.1.0 in a fake WinGet\Packages\rtk-ai.rtk_fake folder went to 1.2.0 through UpgradeRTK. Not tried: netube99's actual machine, so why winget lost its record is unknown; GUI (no page change). |
||
|
|
e0cadc3124 |
memory: goes with backups and sync, and suggests what holds everywhere or is a skill (P5)
Backups and sync. memory.json goes in every backup and in the WebDAV, S3 and GitHub sync, under its own toggle (on unless turned off, as the library is). A sync merges memories one by one (memory.Combine): the newer change wins, a memory the user edited or pinned is never taken over by one they didn't, an archived one is kept 30 days and the suggestions turned down are joined. Settings > Sync has a Memory tick, and the description lists memory. Promotion. Library > Memory (In use, no search) shows what memory suggests: a project memory that says the same in two or more projects (the same text, or 60% of its words with 6 or more on each side), or whose sources came from two or more, is offered as global; a procedure searches returned 5 or more times is offered as a skill. Taking a global one keeps the user's own or pinned memory first, then the most used, makes it global and supersedes the rest (into a global with the same text when there is one). Making a skill writes a library skill from its text and why, named from its first words (procedure-<id> for one in Chinese), for the agents ticked for instructions, and archives the memory. A suggestion declined isn't made again, and that goes with sync too. Routes: POST /api/memory/promote, /skill, /decline. Docs: docs/subsystems/memory.md (Backups and sync, Promotion), docs/subsystems/sync-backup.md. Pushed on origin/main |
||
|
|
14be7f69df |
plugins: Discover's list comes from a file CI builds, not GitHub from each desktop (River_WLan on X)
Plugins -> Discover read GitHub's topic search plus a package.json, an npm answer and an entry file for ~400 repositories on every desktop. Where GitHub is unreachable or rate-limited the page said "Couldn't ask GitHub". Now the community repo's `tagged` workflow (plugins repo, scripts/tagged.mjs, every half hour) builds tagged.json on its dist branch, usemagpie.ai serves it at /api/plugins/tagged (worker, edge-cached 10 min, jsDelivr and the last whole copy as fallbacks), and magpie asks: usemagpie.ai, the dist branch (jsDelivr with the China-mirror switch), then GitHub as before. parseCatalog keeps only entries whose spec is github:<repo> or the package named from it, and drops a file older than 48h. Degrades: a tagged repo shows within the hour, not ten minutes; stars/https icons are as of the last build; owner avatars and https icon URLs still come from GitHub hosts (data: icons work). Run (wsl-run, mote's disk is full): go vet + go test ./internal/plugin, node --test site/worker.test.mjs (21 pass), scripts/tagged.mjs against the real GitHub (367 plugins, 253 with icons, 0 unread; workflow run green and tagged.json on dist), usemagpie.ai/api/plugins/tagged after wrangler deploy (200, 4.8MB). Broken by hand: skipping askCatalog turns TestTaggedReposFromTheBuiltList red. Not tried: a real desktop with GitHub blocked; GUI suites (no GUI file changed); Windows/darwin vet. |
||
|
|
cfd49e36ae |
remote quotas: a Remote's cards follow its enabled models, one reading per account, loops dropped (748975219 on X)
A Remote magpie's quota cards ignored which models the Remote has enabled, so providers it does not serve (Kiro, Codex) showed up, and an A to B to C to A cycle grew paths like remote-B/remote-C/remote-A/remote-B/remote-C/kiro with snapshots hours apart. catalog.Self() is random per run, so after a restart the stale copies in other caches no longer looked like ours. - catalog.loops: a magpie id repeated inside one Via is a loop, restart-proof. - namedRemoteCards keeps only cards whose provider head is among the Remote's exposed model heads (none served: none; no list: all). - CachedCards and RemoteCards keep one card per subscription account (kind, leaf provider, user): the newest complete reading, then the shorter path. Key plan and balance cards are not merged. - keepRemoteCards evicts looped copies before caching. - TestRemoteChainPassesOnCards: magpie3 now knows magpie2 alone, as the same account by two paths is shown once. Run (WSL, magpie-desktop): gofmt -l clean, go vet linux and windows, go test internal/catalog and internal/provider ok, gateway Remote/Quota subset ok. Broken by hand: no enabled-model filter, no dedupe and no repeated-id rule each turn TestRemoteCardsFollowEnabledModelsAndDedupe or TestLoopsOnARepeatedMagpie red. Not tried: a real A to B to C to A cycle in sandbox HOMEs (fake peer in test), the GUI suite, win-run, the Usage page's own-versus-remote copies. |
||
|
|
d78d853a4e |
agent: telemetry off for Crush, Kimi Code, Goose, Pi and Cline too (daoche_wuzui on X)
Settings > Privacy "Turn off telemetry for all agents" and each agent's own Telemetry row now also cover Crush (options.disable_metrics), Kimi Code (top-level telemetry in config.toml), Goose (GOOSE_TELEMETRY_ENABLED in config.yaml), Pi (enableInstallTelemetry; Pi itself, not its forks) and Cline CLI (telemetryOptOut in data/settings/global-settings.json). Each key was read from that app's source, docs or binary. Same rules as before: only missing keys are written, a user's own value is never overwritten, an unreadable file is unknown (TOML and YAML are parsed strictly). Antigravity (app and agy) has no local key: agy's EnableTelemetry is json:"-" and the setting lives on the Google account. Droid (org-set), OpenCode/omp (OTel is opt-in), Cursor CLI (account privacy mode) and Hermes (sends none) have none either. Grok Build, Kiro, CodeBuddy, Command Code and Amp were not looked at. Run (wsl-run, mote's disk is full): telemetry_more_test.go green; broken by hand twice (wrong off test: crush and cline red; lenient unreadable read: kimi and goose red). go vet for windows, darwin and linux nogui clean. internal/agent whole package: only TestGrokInstalled red, a WSL exec "Invalid argument" in a /tmp stand-in, not touched here; the one red this change caused (TestFolderVarsAreListed, CLINE_GLOBAL_SETTINGS_PATH) is fixed in agentenv.Vars. Real goose and crush binaries read the sandbox paths; not tried: that any of the five honours the written key at run time, Windows run. |
||
|
|
1ccacad632 |
agent: Obsidian is listed only when a vault has Copilot (iEthan333 on X)
detect was "obsidian's config folder exists", so every Obsidian user got a
row whose provider field could only fail ("no Obsidian vault here has
Copilot"). It now needs a vault in obsidian.json with Copilot installed
(.obsidian/plugins/copilot/manifest.json) or magpie's provider already in
its data.json, so a wired vault can still be disconnected. Every OS's config
folder (mac, Windows, Linux, Flatpak, Snap) is already read by obsidianDirs.
Siblings checked: Zoo Code and Copilot (JetBrains) already require the
plugin installed; VS Code forks and Raycast are the apps that hold the
setting themselves. None changed.
Run: go test ./internal/agent -run Obsidian (wsl-run); the new no-Copilot
vault assertion is red on the old detect (checked by hand). Full agent
package, gofmt, linux and windows vet: see push notes. Not tried: a real
Obsidian install.
|
||
|
|
e1a2226405 |
library: EverMe Memory and Nowledge Mem are offered in the market as memory sources, added in one step (OipsAnthony on X)
Both publish an MCP server: EverMe's @everme/memory-mcp (stdio, agent id and evt_ token, managed backend preset) and Nowledge Mem's Streamable HTTP endpoint at 127.0.0.1:14242/mcp (optional Bearer key for a Mem reached over Access Anywhere). Added beside Magpie Memory; their memories stay in their service, and magpie's digest and Memory tab don't read them (docs/subsystems/memory.md).
Run (wsl-run, magpie-wt/memprov at origin/main
|
||
|
|
f5e1b10913 |
settings: longest context can hold a model's own window too (WJaunita45604 on X)
v0.1.3681's Longest context left a window the user set for a model, or "*"
on its provider, alone even when longer. Settings > Models > Routing now has
a menu beside the field: "Models without their own" (the default, as before)
or "Every model". In both modes the shorter of the cap and the user's own
window is told; they differ only when the user's own is longer (own keeps it,
every model brings it down). Settings.ContextCapAll, Settings.CappedOwn,
POST /api/settings/context-cap-mode {all}, magpie model context-cap all|own.
Applied in provider.windowIn (so /v1/models, catalogs, compaction), Codex's
CodexNativeWindow/CodexWindow (the list's ETag tag carries the mode) and the
gateway fallback window. i18n in zh, zh-TW, ja, de.
Run (wsl-run, mote's disk was full): provider (full), settings, settingsapi,
codexcat packages; cli -run ContextCap; gateway -run ContextCap|ModelsList;
GUI context-cap, i18n-keys, model-load, settings-places, settings-general in
chromium and webkit; TestCoreScriptBudget; gofmt; go vet nogui and
GOOS=windows vet. Broken by hand: windowIn's CappedOwn removed turns
TestContextCapAllHoldsTheUsersOwnWindowsToo red.
Not tried: the whole Go and GUI suites, a real Codex reading the list, macOS
or Windows runs, GUI in zh-TW/ja/de beyond the i18n-keys check.
|
||
|
|
69453574d7 |
docs: a key's usage cap (@wanggenjidev on X)
gateway-routing.md and providers-accounts.md: a key whose usage windows magpie reads takes the same usage cap an account does. Record for the three commits (@wanggenjidev on X: Codex-style percent cap for OpenCode Go keys, generically for every key with windows magpie reads): - Run at the pushed head (rebased on |
||
|
|
d936be7639 |
usage: Claude's card shows the extra-usage cap and its spend (Shinji_Zl on X)
Claude Code's `claude -p /usage` text omits extra usage, but with `--output-format json --verbose` a message carries usage_report.rate_limits.extra_usage (cap and spend in cents). The gateway adds it as a line; parseClaudeUsage reads it as an Aside "Usage credits" window (n / cap USD), so a spent cap never marks the account used up. magpie asks Anthropic nothing itself, and cannot make a request spend credits: Anthropic decides. The prepaid balance is a separate endpoint and is not shown. Run (wsl-run, linux): TestClaudeUsage*/TestClaudeOverage in provider and gateway, go vet linux/windows/darwin, i18n-keys, i18n-en-no-cjk and claude-overages GUI files (chromium + webkit). Broken by hand: Aside false -> TestClaudeUsageCredits red. Not tried: a real account with extra usage on (the owner's is off); full suite after the tag; Windows run. |
||
|
|
61a04f42a2 |
library: a project's Skills menu groups the skills by source, a heading ticks the whole group (Elorynth on X)
The project card's Skills menu listed every library skill flat. It now
lists them as the Library does (skillGroups(true): by repository or the
user's own group, this computer's last, whatever sort the list has), with
a heading over each group. Pressing a heading ticks all of the group's
skills, or unticks them when all are in; it is half-ticked while some are.
A typed filter keeps a group's heading over the skills it finds, and
matches a skill by its group's name. One group only stays the flat list.
openProtoMenu takes a `group` option (the values it ticks) for this.
Paid for in app.js by five comments cut, no budget raise.
Run on the Windows box (mote's Chromium launch hung, SSH refused at
times): project-skills-groups.test.cjs, new, in chromium and webkit,
en/zh/zh-TW/ja/de at 400px wide: red on the old code (6 of 6), green
after. With project-*, i18n-*, menu-*, proto-menu-overflow and
skill-group* GUI files in both engines: all green except
menu-input-scroll and menu-scroll (14 chromium, 13 webkit), which are
red the same at origin/main
|
||
|
|
aa2ea5c906 |
agent: Claude's main model is written as a tier alias, so Claude Desktop on a subscription no longer sends magpie's prefixed id (iryan_sun on X)
Claude Desktop's Code tab sets CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST=1. Claude
Code then ignores the env block of settings.json (base URL, token, tier model
vars) but still honours the top-level `model`. magpie wrote `model` as the
provider-prefixed id (anth/claude-opus-4-7), so the official API rejected it
and WebFetch failed.
writeTiers now writes `model` as the tier alias (opus/sonnet/haiku/fable, with
[1m]) whose ANTHROPIC_DEFAULT_<TIER>_MODEL already maps to the main model, on
this machine's ~/.claude only. A distro file, the claude-magpie launch file and
a main with no tier keep the id. The model field reads the alias back through
the tier env, also while the gateway is unreachable (drift). Unwire drops
`model` when magpie wrote the alias.
What happens to old values: a settings.json an older magpie wrote with the
prefixed id (model "up/big-x") is rewritten to the alias at the next catalog
sync, for every user, with no step on their side; the tier env already maps it
to the same model. A prefixed id picked from the modelPicker rows is brought to
the alias the same way. A model the user set themselves (claude-haiku-9,
own/xyz, opusplan) is never rewritten.
Ran:
- Real Claude Code CLI (~/.local/bin/claude) in a sandbox HOME and
CLAUDE_CONFIG_DIR, wired by a magpie built from this tree (gateway :38760)
to a scripted upstream that logs each request's model: main -> big-x,
`--model haiku` -> fast-x, a subagent (Agent tool) -> sub-x, WebFetch's
extraction of https://example.com -> fast-x (haiku's). Old prefixed file
migrated to "sonnet" by a catalog sync; the three user models above stayed.
- TestClaudeMainModelIsAnAlias: red on the old code, red again with mainWord
broken by hand, green with the fix; it also covers the user's own models.
- 11 existing tests read the raw `model` as an id; they read it through
writtenModel now. TestWSLClaudePick compares the distro's file with the
native one after normalising `model` (the distro keeps the id by design).
- go test ./internal/agent ok at the pushed head; gofmt; go vet darwin, linux
nogui, windows for internal/agent.
- internal/cli: TestGatewayKeyLimitCLI is red on origin/main
|