3e66d25d84a2f346241da4eb0708469dfd5dc74a
8688
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
3e66d25d84 |
agent: OpenCode's limit keeps models.dev's context and input apart
Nepsama1337 on X: magpie 0.1.4414 wrote gpt-6.2-sol into OpenCode's
config as limit {context: 922000, output: 128000}. models.dev gives
{context: 1050000, input: 922000, output: 128000}. magpie's
catalog.Model.Context is the prompt window, so it prefers models.dev's
input, and the opencode shape wrote that number as context and
dropped input.
What OpenCode reads, checked in anomalyco/opencode on dev:
packages/schema/src/config/provider.ts and
packages/core/src/v1/config/provider.ts take limit {context, input,
output}. session/compaction.ts uses min(input, context) when both are
there. OpenCode 1's models.ts (8df09abb1) has input too, and its
compaction uses limit.input || context - output.
catalog keeps the whole window that models.dev pairs with each input
cap (WholeOf, voted the same way as the windows and looked up through
the same renames). The opencode shape now writes {context: whole,
input: prompt window, output} when the catalog gives a wider whole
window, and {context, output} as before otherwise. A user's own
context for a model (Contexts) has no pair, so it stays a plain
context. This shape serves OpenCode 1 and 2, MiMo Code, DevEco, Air
and OpenChamber. OpenCode 2's converter copies limit whole, so input
reaches it too.
Agents with one window field (Crush's context_window, droid, Cline and
the rest) get the prompt window, which is right for them. ZCode and
MiniMax Code also write {context, output}, but their schemas can't be
checked: #7060.
Run:
- TestOpenCodeLimitKeepsContextAndInput is red on the old agents.go
(relay/gpt-6.2-sol: limit {"context":922000,"output":128000}) and
green with the fix. It covers the paired model, a model with no
input cap, a user's own context, and openCodeNative.
- go test -run 'TestOpenCode' ./internal/agent on mote: ok.
- Real OpenCode 1.19.5 on mote, sandbox HOME: `opencode models magpie
--verbose` lists gpt-6.2-sol with limit {context 1050000, input
922000, output 128000}.
- Full suite, go test -timeout 45m ./... on Linux (magpie-desktop, at
|
||
|
|
1318864d1b |
provider: Factory's mover takes opencode-factory-auth 0.1.48
The factory plugin used one x-session-id for every request of its process. 0.1.48 gives each conversation its own, and each subagent in it, as droid opens them. With one shared session, Factory now and then answered Gemini 4 Argon, Hydrogen and Carbon with 400 "Invalid model ID in request body" (marovole on X; magpie-community/plugins 63c2ff93). keepMovedCurrent updates every moved user to it. npm view @magpie-community/opencode-factory-auth version --prefer-online gives 0.1.48. Run (mica): gofmt -l internal/provider is clean; go vet ./internal/provider; go test -timeout 45m ./internal/provider is ok (148s, at this head after the rebase). The plugin's own run is in its commit: the plugins suite has 9055 pass and 0 fail, and the new session test is red on 0.1.47. Not tried: a real Factory account. None is here, so the refusal was not reproduced against Factory itself. |
||
|
|
3ec89c5224 |
codex: the takeover's end waits for the chats on magpie the Codex app has open (milianxinqi on X)
milianxinqi on X, the Codex app: "Model provider mismatch. This chat uses
magpie, but your current provider is OpenAI. Switch to magpie to
continue." ("用的好好的,codex 突然就弹这个了"), with nothing disconnected.
Cause. With the ChatGPT account Codex is signed in to held (out of its
allowance and credits), magpie is Codex's provider (the codex.out
takeover, #540) and new chats start on magpie. When the account has room
again (its window's reset, a switch to another account, or the account
the user keeps Codex on,
|
||
|
|
a2d402afe0 |
gui: the Mac's tray panel sits at a menu bar extra's level, so a screenshot tool draws over it (zyh6036 on X)
zyh6036 on X: the menu bar panel stays so far in front that even
WeChat's screenshot can't cover it, so it's hard to take a picture of.
The panel asked for AlwaysOnTop (NSFloatingWindowLevel, 3), but Wails'
SystemTray.PositionWindow sets the window it places to
NSPopUpMenuWindowLevel (101) every time (systemtray_darwin.m), and magpie
places the panel with it on each open and each resize. The live app's
panel read layer 101 in CGWindowList. Nothing in magpie's history chose
101 (git log -S finds only AlwaysOnTop, from the first commit).
placeByIcon now does PositionWindow and then sets NSStatusWindowLevel
(25), the level of the status bar itself: still over normal windows,
floating ones, the Dock (20) and the menu bar (24), and still on every
Space and over full-screen apps (the collection behavior is unchanged,
#2141), but under pop-up menus and anything a screenshot tool puts up at
25 or above. Both PositionWindow calls (togglePanelNow, sizeOpenPanel)
go through it. Other systems: setPanelLevel is a no-op.
What was run (mica, macOS 27, at
|
||
|
|
534b85bf99 |
gui: an unset Claude Code tier's effort reads "follows session"; a set one says it wins
lightwlh on X: Claude Code's Details shows an effort beside each tier
(Opus, Sonnet, Haiku, Fable) and another under New sessions, and asked
which one wins when they differ. A tier's effort is written into its
model id as <model>:<level> (tierWith in internal/agent/claude.go), and
the gateway asks that model at that level whatever Claude Code asked
(askedAt); the New sessions effort is Claude Code's own (effortLevel /
CLAUDE_CODE_EFFORT_LEVEL), which /effort changes, and reaches only the
tiers with none of their own. The page didn't say so: an unset tier's
effort read "default", like a level of its own.
- An unset tier's effort button reads "follows session" (跟随会话,
跟隨會話, セッションに従う, wie Sitzung) instead of "default"; its
title still names the effort Claude Code asks for.
- A set tier's title adds "Used whatever the session's effort or
/effort is".
- New sessions' effort, while any tier has its own, adds "A tier with an
effort of its own runs at that one" to its title; both follow a pick
in the slider at once (the slider's field is a copy, so the check
reads the picked value).
- No layout change: the same buttons and lines; the subagents' effort
and the tray panel's tiers' square are unchanged.
- app.js +485 and the core +843 bytes of code, budgets raised with the
reason: connectPanel and the effort slider draw every agent's Details,
so there is no page to move it to; the words share one ownSaid.
Run (mote, at this tree rebased on
|
||
|
|
de5fc6700e |
docs: Claude Code's Code Mode needs a direct Anthropic connection (#7025)
lst016 (#7025) and DylanH_L on X asked for Code Mode through magpie. Claude Code 2.1.327 decides it in its own start-up check, read in its bundle: Code Mode is refused with "provider" unless the provider is firstParty and ANTHROPIC_BASE_URL is unset or its host is exactly api.anthropic.com (nc()/fd()); then with "credentials" for an apiKeyHelper or a custom Authorization/X-Api-Key header, "no_flags" when DISABLE_TELEMETRY, DO_NOT_TRACK or CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC stops the feature-flag download, and "gate" unless Anthropic's tengu_rustling_blossom flag is on for the account. Nothing magpie sends or answers can change it: the base-URL check runs before any request. So every routed Claude Code (any upstream, a Claude subscription's or an Anthropic key's model included) starts without it. The subscription bridge's own runs can't have it either: --tools leaves REPL out, it reads no user settings, and Code Mode needs an interactive opt-in and restart. Faking a first-party address would misrepresent the client to Anthropic, so it isn't done. The docs page says so in en, zh and ja, with the way to use it: Claude Code on its own model, straight to Anthropic, with Claude Code's telemetry left on (magpie's switch sets DISABLE_TELEMETRY). Run: - real Claude Code 2.1.327 in tmux, sandbox HOME and CLAUDE_CONFIG_DIR, ANTHROPIC_BASE_URL=http://127.0.0.1:59998, CLAUDE_CODE_EXPERIMENTAL_CODE_MODE=1: "Code Mode (experimental) isn't available: for now it only works directly with the Anthropic API". - node docs-index.mjs (search indexes, llms-full.txt, docs-index.sums). - on mica: node --test site/search.test.mjs site/worker.test.mjs site/docker-tags.test.mjs, 50 pass 0 fail; go test ./internal/testenv ok. Not tried: a direct Code Mode session on a real account (it needs Anthropic's account gate; nothing in magpie is on that path). |
||
|
|
67f24d7422 |
usage: every cache hit rate to two decimals, its exact share on hover; a speed's dash says why
shangyuan0818 on X: in Usage › Requests the ranking's model hit rates
had no decimals or one ("98%" beside "99.6%"), the request table mixed
them too, and hovering showed no exact value.
- hitPct gives every hit rate two decimals (98.00%, 99.60%), the same
in the ranking, the request table and its details, the Cache hit
rate card, the cache-read tiles, the model and agent rows, Sessions,
the tray panel, Routing's rows, figures and group averages, and the
context window's Prompt cache. It still never says 100.00% or 0.00%
of a prompt not all or none cached (99.99%, 0.01%).
- Each of them has the exact share on hover, in its title (hitTip):
"9,800 of 10,000 prompt tokens read from the cache: 98%", the share
to six places with no trailing zeros. One new string, translated in
zh, zh-TW, ja and de.
ohblue on X: 速度 shows "—" for many 200 requests (491 in, 93 out,
first token 6.3s, total 6.4s), "≥133 token/秒" for others.
- That speed can't honestly be counted: 93 tokens in the 120ms after a
6.3s wait would read ~775 tok/s, which is a reply written during the
wait and let go at once (ledHeldShort_). The dash already had its
reason as a title, but nothing showed it was there. It now has the
help cursor (the cache column's dash too), the Speed column's head
says what a speed is on hover, and a request's details say "— " and
the reason in words, for a reader who can't hover.
Budget: app.js and the core grew by my hitTip, cacheHitTip and the
titles. To stay inside both budgets with no raise, setQuotaRange moved
to plugins/usage/page.js and PLACEHOLDER to plugins/redact/page.js (each
read by that page alone), cacheHitOf and cacheHitTip share cachePrompt,
and hitPct is one expression. Core 1,272,578 of 1,272,581; app.js
1,087,887 of 1,088,248.
Run on mote/mica, this change on origin/main, both engines, every
language, at the widths each file covers:
- usage-hit-exact.test.cjs (new): green. Red with the old hitPct
('hit rate 98%') and red with the help cursor and the details' line
taken out ('pointer' !== 'help').
- 85 GUI files (every test that reads a hit rate, quota range or
masking, Usage, Routing, i18n-keys, gui-ja/de/zh-tw): 1318 pass, 30
fail. All 30 are red alike without this change, and all are filed:
agent-menu-label webkit panel (#6371), zcode-models webkit de
(#6566), quota-credits (#6807), quota-curve (#6789), usage-fold's
17 subscriptions (#3415, #6003), usage-ledger (#4078, #3104, #4626),
usage-ledger-chart (#6790). usage-fold's 'several accounts' went red
only under the 85-file run and passes alone on this tree (#3415,
commented).
- go test ./internal/gui on mica: ok (TestCoreScriptBudget included).
- Red alike on a HEAD checkout without this change, already filed:
usage-ledger "newest live route needs no return-to-live button"
(#4078, #3104, #4626), usage-ledger-chart "the metric is remembered"
(#6790).
Not run before the push: the whole GUI suite and go test ./... (both
machines had other sessions' full suites running); they run after it
and their result goes on record. Not tried: Windows WebView2, the
reporters' own ledgers, the real app.
|
||
|
|
c5cb1c0588 |
gui: the tray's logo is 16pt, as large as other apps' menu bar icons
qingnianxiaozhe on X: magpie's A\ in the menu bar looked a size smaller than another app's A\ beside it. magpie fitted each logo to a 14pt box, so the A\ (about 1.37:1) drew 14x10pt. Claude.app's menu bar template (TrayIconTemplate@2x.png, 48x48 px) has 32x32 px of ink, a 16pt glyph, and in the reporter's screenshot the other A\ is 32x22 px against magpie's 28x20 px at 2x. mpLogo is now 16; the letter in a ring (a logo that can't be read) grows with it. The two 10pt rows of percentages are unchanged and still fit the 22pt bar. Tests: the logo boxes in the tray tests follow the 16pt box (offsets 28 -> 32, 34 -> 38 px at 2x); TestTrayImageLogoSizes now wants 27-33 px of a 32 px box. Run on mote (macOS 27.2): - go test ./internal/gui -run Tray -count=1 -v: ok. - Broken by hand (mpLogo back to 14): TestTrayImageLogoSizes FAILs ("alma spans 24 px of a 32 px box", codex/zcode/workbuddy 26 px) and TestTrayImagePlain FAILs ("238 px with logos, 182 without"). - Rendered by the real drawing code (trayImagePNG, 22pt bar at 2x) next to Claude.app's own template icon: the A\ is 28 px wide before and 32x24 px of ink after, as wide as Claude's 32 px spark; the percentages are the same text at the same size. The before/after strips are kept outside the repo (tray-toolbar-scratch/before and after/strip-{light,dark}.png). Suite and checks, on mote at aa31e737c8d271455865615fafdf512e09073663 (this commit and its pair, the tray logo size / the toolbar menu): - go test -count=1 -timeout 45m ./... in a sandbox HOME, caches pinned: exit 0, 103 packages ok, none FAIL (internal/gateway 1633s, internal/agent 949s, internal/provider 470s, internal/gui 295s). - gofmt -l internal/gui: nothing. go vet ./..., GOOS=linux go vet -tags nogui ./..., GOOS=windows go vet ./..., go build, GOOS=linux go build -tags nogui, GOOS=windows go build: all ok. - No GUI asset changed, so the Playwright suite wasn't run. After a rebase onto |
||
|
|
add1e75ee3 |
gui: no Icon and Text menu on a right-click by the traffic lights
AlanWang1027713 on X: a right-click on the main window's title bar, by the lights, offered "Icon and Text / Icon Only / Text Only". It comes from the empty NSToolbar that MacTitleBarHiddenInset puts there to inset the lights; NSThemeFrame's menuForEvent: lists its display modes. insetLights takes the toolbar away only in the macOS 26 design, so on macOS 27, with an older SDK and in a right-to-left layout the toolbar, and its menu, stayed. quietToolbar turns the menu off where the toolbar stays: allowsDisplayModeCustomization = NO (macOS 15+), and AppKit's own _setWantsToolbarContextMenu: NO for macOS 12-14, each looked up with respondsToSelector, since the SDK that builds magpie may be older than the system it runs on. Nothing about the title bar's shape changes. windowshape.Of now reads the menu a right-click 20pt below the top, 120pt in, gets from the window frame (TitlebarMenu), and TestMainWindowCorners and TestMainWindowRightToLeft fail when the main window gets one, or when the reference toolbar window doesn't (so the probe is proven to see it). Run on mote (macOS 27.2), real makeMain window: - go test ./internal/gui -run 'TestMainWindowCorners|TestMainWindowRightToLeft' -count=1 -v: ok. Each stage logs "title bar menu []" next to the reference toolbar window's ["Icon and Text" "Icon Only" "Text Only" "-"] (macOS 26 SDK) and ["-"] (macOS 15 SDK). Lights [[26 26] [49 26] [72 26]], 66pt title bar and 16pt corners with the 26 SDK, [[19 19] [39 19] [59 19]] and 38pt with the 15 SDK: the same as without the change. - Broken by hand (quietToolbar call taken out): both FAIL, "a right-click on the title bar gets a menu: ["Icon and Text" "Icon Only" "Text Only" "-"]" (26 SDK) and ["-"] (15 SDK). - A probe app on mote: either switch alone empties the frame's menu. Suite and checks, on mote at aa31e737c8d271455865615fafdf512e09073663 (this commit and its pair, the tray logo size / the toolbar menu): - go test -count=1 -timeout 45m ./... in a sandbox HOME, caches pinned: exit 0, 103 packages ok, none FAIL (internal/gateway 1633s, internal/agent 949s, internal/provider 470s, internal/gui 295s). - gofmt -l internal/gui: nothing. go vet ./..., GOOS=linux go vet -tags nogui ./..., GOOS=windows go vet ./..., go build, GOOS=linux go build -tags nogui, GOOS=windows go build: all ok. - No GUI asset changed, so the Playwright suite wasn't run. After a rebase onto |
||
|
|
f7e0f68ca2 |
codex: GPT-6.2's instructions go first in the input, where its cache keeps them
From GPT-6.2 on, OpenAI reads a Responses request's top-level
instructions after its input, not before it (prompt caching guide:
"instructions ... appended to the end of the input" for gpt-6.2 and
later), so they sit past the cached prefix and are billed uncached on
every turn. Codex itself sends no top-level instructions: client.rs puts
its base instructions first in the input as a developer message
(BaseInstructionsFragment, codex-rs/core/src/client.rs).
magpie sent Codex's instructions on top for every ChatGPT-account
request that is not Responses Lite: Claude Code, OpenCode, Pi and other
translated agents through a codex account, and Codex CLIs older than
Lite. Measured on a real ChatGPT account, third turn of a growing
conversation: gpt-6.2-sol cached 1,920 of 8,271 input tokens with the
instructions on top, 6,016 with them first in the input; gpt-6-sol
cached 5,632 of 6,843 with them on top (the old order still works
there). Reported on X by Anotiaww (Codex hit rate looked low).
- codexBody: for a GPT-6.2+ model Codex's instructions, and a client's
own, go first in the input as developer messages, and the request
carries no instructions field. Older models are unchanged, and Lite
turns (no instructions at all) are unchanged.
- siwcBody (Sign in with ChatGPT API path): the client's instructions
go first in the input for GPT-6.2+.
- buildResponses (Chat/Anthropic translated to Responses, any host):
the system prompt goes first in the input for GPT-6.2+.
- InstructionsAfterInput names the models: gpt-N.M with N.M >= 6.2,
gpt-7 and later, after a provider prefix; gpt-6, gpt-6.1, gpt-5.x,
o-series and other vendors' models keep top-level instructions.
The instruction text itself is unchanged; only where it sits moves.
Run (mote, at this tree on origin/main
|
||
|
|
42c43c0020 |
sessions: an agent found after Allow selected is asked about once (Antigravity 2.0)
baysonfox on X: Antigravity 2.0 desktop sessions showed on the Sessions
page only while the app was connected to magpie; agy CLI's always showed.
Cause: not the file reader. Real Antigravity 2.30 (signed out, no model,
sandbox HOME on the Windows box) writes ~/.gemini/antigravity/
conversations/<id>.db, conversation_summaries.db and brain/, and
internal/sessions parses them. The gate is settings.SessionReads:
"Allow selected" (and the Usage readsNote's "Count …") saves all:false,
so an agent installed after that choice is never read and never asked
about again. Gateway-recorded sessions skip the gate, hence "only when
connected".
Fix: /api/sessions/reads marks a found agent `new` when the choice was
made, it isn't read, isn't named in Agents and is on disk (Found(), which
checks every OS's path). The Sessions page shows one quiet card for those
(laterCard): "Show their sessions" names each on, "Keep off" names each
off, so it isn't asked again. No new endpoint; the card posts the
existing sessions/reads.
Tests: TestSessionReadsNewAgent copies the real 2.30 files
(internal/sessions/testdata/antigravity-2.30, sandbox paths only, no
tokens) beside agy-sessions, with agy allowed by name: antigravity is
off and new, nothing listed; after the answer it is not new, settings
keep all:false/agy:true, and its one session is listed only when shown.
TestSessionReadsNewOnlyWhenNamed: not asked, allow all, all with agy off
mark nothing new. sessions-reads.test.cjs: the card, both answers, posts
and no card after reload, Chromium and WebKit, 5 languages, 900/390px.
Run at d7d62d889, on mote, then rebased onto
|
||
|
|
48fffb60c5 |
gui: the provider editor waits for its Advanced headings before it draws (#7051)
|
||
|
|
42181fdd27 |
gui: the Claude provider's run field is named Claude requests, not Claude Code
The Claude provider's editor had a field under Advanced named "Claude Code", the same name as the agent's own sheet on the Agents page, so two different places read as one. The field says how magpie sends requests to Claude (its run row), so it is now "Claude requests": zh Claude 请求, zh-TW Claude 請求, ja Claude リクエスト, de Claude-Anfragen. The name was also the only field label left untranslated. The Agents page's Claude Code is unchanged. claude-extra-usage-setting checks the field's name in each language. Run (mica): - go test ./internal/gui -run 'TestCoreScriptBudget|TestI18n|TestCSS': ok, at this change rebased on |
||
|
|
61c714ed01 |
sessions: By tokens selects the small sessions, to delete them at once
A user asked for a way to delete every session under 10K or 20K tokens (yansheng1003 on X). Selecting sessions on the Sessions page now has a "By tokens" button beside Delete. It opens the app menu (openProtoMenu, no native select) with 10K, 20K, 50K and 100K, each showing how many of the sessions on screen it would select. A pick replaces the selection with the deletable rows on screen (search and filters apply) that used fewer tokens than that. Tokens are counted with sessTokens, the number each row shows. A session that is streaming now (speedOf().live) or was written in the last minute is never picked. The server already refuses one written in the last minute (sessions.Delete's ErrActive). Delete is the existing path: each agent's own delete, gateway-only and forgotten sessions handled as before, files moved to magpie's trash. The existing confirmation names how many sessions go and that Trash puts them back. When the selection is still the By tokens pick, it adds "Each used fewer than 20K tokens". A selection changed by hand drops that line. Only the Sessions plugin changes (client.js, i18n.js in en, zh, zh-TW, ja and de, sessions.css). No server change. New test: sessions-small-delete.test.cjs, in Chromium and WebKit, every language, against a faked API. It covers the menu's head and counts, the pick (running, live, read-only and larger sessions left out, cache counted as the row counts it), a smaller size replacing the pick, a search narrowing it, the dialog's size line, Cancel posting nothing, Delete posting the 4 ids, a 420px bar, and no native select. Run: - At the pushed tree (on origin/main |
||
|
|
31575f71a1 |
gui: the provider editor's Advanced rows sit under four small headings
The provider editor's Advanced held some thirty rows in one run (item 19). They now sit under four small headings, Routing, Models, Limits and cost, and Connection, each row keeping its order inside its group; a row the list doesn't name stays with the one before it, and the headings show only when two groups are used. No page, row or fold moves elsewhere. advgroups.js is imported when Providers first draws, so it weighs nothing on the core script, and the editor opens with the headings already in place. Not done from item 19: a routing group's strategy stays under the group's Advanced. The owner folded it there on purpose ( |
||
|
|
75cc9f6e26 |
gui: a plugin's JSON options point to its provider's editor for the switches it declares
A provider plugin's options had two editors: the switches it declares
in its provider's editor, and the raw JSON on the Plugins page. The
provider editor owns the switches; the JSON editor now says so and links
to it ("Its switches are in {name}'s editor"), closing itself as it
goes. Shown only for a signed-in subscription with declared switches.
Own test: plugin-provider-options clicks the link, lands on Providers,
and checks the JSON editor is gone. Its first run was red 12 of 12: the
link cleared the editing state without a redraw, so the editor stayed
in the page; it now redraws like Cancel does.
Broken by hand: the link's click handler removed,
plugin-provider-options 12 of 12 red; put back, 12 of 12 green.
Run (mote, Chromium and WebKit, en zh zh-TW ja de):
- before the rebase, 23 GUI files: every one green except
plugin-provider-options (my bug, fixed in this branch before the push)
and settings-groups' "warm-ups and check-in in each service's provider
editor", red the same way at fresh origin/main
|
||
|
|
d13151998c |
gui: Profiles says what a profile holds, and that providers and routing stay as they are
The Profiles tip didn't say what a profile is. It now says what one holds, and that switching one leaves providers and routing alone. Own test: panel-profiles (asserts the tip in every language). Run (mote, Chromium and WebKit, en zh zh-TW ja de): - before the rebase, 23 GUI files: every one green except plugin-provider-options (my bug, fixed in this branch before the push) and settings-groups' "warm-ups and check-in in each service's provider editor", red the same way at fresh origin/main |
||
|
|
6396719517 |
gui: the provider editor's row is Masking, the word Plugins › Built-in uses
The provider editor said Redaction where the built-in and its page say Masking (item 18, one word per concept). Privacy stays the Settings tab's name. Own test: provider-unmasked. Run (mote, Chromium and WebKit, en zh zh-TW ja de): - before the rebase, 23 GUI files: every one green except plugin-provider-options (my bug, fixed in this branch before the push) and settings-groups' "warm-ups and check-in in each service's provider editor", red the same way at fresh origin/main |
||
|
|
d90780c5d4 |
gateway, gui: a built-in is turned on in Plugins › Built-in, not a Settings › Plugins that isn't there
Errors and notices sent people to "Settings › Plugins" or called a built-in "the … plugin", where no such page is and the thing is a built-in (item 18, "Plugin" qualified where it's ambiguous). They now name Plugins › Built-in and say built-in. Own tests: builtins, websearch-places; Go: the gateway tests whose strings changed (TestKeyLimitsOnAndOff, TestSearchOnAndOff, TestToolsMCP*, TestHubMCPHeldToKeyLimit, TestVisionMCPHeldToKeyLimit), internal/gui's plugins_own_* tests, davsync, gwbudget, gwmw, provider. Run (mote, Chromium and WebKit, en zh zh-TW ja de): - before the rebase, 23 GUI files: every one green except plugin-provider-options (my bug, fixed in this branch before the push) and settings-groups' "warm-ups and check-in in each service's provider editor", red the same way at fresh origin/main |
||
|
|
87af7281e2 |
gui: Connected means an agent goes through magpie; the Library's list says Using the library
"Connected" meant two things: an agent routed through magpie, and an agent that uses the Library's servers and skills (item 18). The second is now "Using the library"; Connected keeps the first. Own tests: agent-app-restart, library-mcp-hub. Run (mote, Chromium and WebKit, en zh zh-TW ja de): - before the rebase, 23 GUI files: every one green except plugin-provider-options (my bug, fixed in this branch before the push) and settings-groups' "warm-ups and check-in in each service's provider editor", red the same way at fresh origin/main |
||
|
|
6facdb2461 |
gui: a provider's limit is Requests at once, as on gateway keys and accounts
The provider editor called it Concurrency while gateway keys and accounts said Requests at once (item 18). One name now, in every language; the old key is gone from i18n.js. Own tests: provider-concurrency, provider-rpm, lane-limit, gateway-key-concurrency; Go: internal/access. Run (mote, Chromium and WebKit, en zh zh-TW ja de): - before the rebase, 23 GUI files: every one green except plugin-provider-options (my bug, fixed in this branch before the push) and settings-groups' "warm-ups and check-in in each service's provider editor", red the same way at fresh origin/main |
||
|
|
28430c9b90 |
gui: magpie's own paths are written with ›
A path through magpie's own screens was written with › in some places and → in others (11-17 scan, item 18). Every one the user reads is now ›: Settings › Network and sharing, Settings › Privacy, Library › MCP servers, Providers › … › Use it anyway, Settings › Usage, in the GUI and in the Go errors and notices that reach it, in every language. The GUI matches errNotAsked by its prefix, so it still finds it. Left as they are: gateway errors written for agents, AiHubMix's and Claude Desktop's own menu paths (their apps' words), the image MCP tool description (it goes to agents), and comments. Own tests: chatgpt-usage-why, websearch-places, library-mcp-hub, i18n-keys; Go: internal/library (TestPrivateRepoInstallsWithToken, red on the first try because skills.go still had →), internal/plugin (notplugin_test), internal/pii, internal/provider. Run (mote, Chromium and WebKit, en zh zh-TW ja de): - before the rebase, 23 GUI files: every one green except plugin-provider-options (my bug, fixed in this branch before the push) and settings-groups' "warm-ups and check-in in each service's provider editor", red the same way at fresh origin/main |
||
|
|
3b74aaf12c |
agent: Claude's auto-compact window is held to the 1000000 Claude Code takes
ZeroX2017 on X (0.1.4404): a compaction threshold of 1048576 typed for Ollama Cloud's 1M DeepSeek went into ~/.claude/settings.json as it was. Claude Code 2.1.316's settings schema (and Claude Desktop 2.7032's copy of it in app.asar) takes autoCompactWindow as an int of 100000 to 1000000 and reads a larger one as none, so a new Claude App session ran that model at the top-level 272K for every model. Every auto-compact window magpie writes for Claude Code is now held to 1000000 (claudeCompactCap): the per-model modelSettings entries (claudePlan), the top-level autoCompactWindow, and CLAUDE_CODE_AUTO_COMPACT_WINDOW. An entry the hold makes equal to what the model runs at anyway is left out. The threshold in magpie stays as typed; Codex and Grok Build get it unheld; tune's card still reads the top-level value back as Long conversations at the typed value (claudeLongWindow compares against the held value). agent-wiring.md says so. Tests: TestClaudeCompactHeldToClaudeMax (Desktop entry, a second sync rewrites nothing, magpie's threshold unchanged, the variable when Claude Code is alone, Codex unheld), TestClaudePlanHeldToClaudeMax, TestClaudeTopCompactHeldToClaudeMax (top-level + tune read-back). Run: - Full suite, go test ./... -timeout 45m -count=1 on mote at base |
||
|
|
4338147993 |
gui tests: settings-groups expects Claude's Spend extra usage row (#6597)
|
||
|
|
07d19510f6 |
gui: the Codex client is picked in the Codex provider's Advanced too, which gateway mode reaches
The Codex client (CLI or desktop app, which Codex requests to the ChatGPT accounts say they come from) could be set only in Agents › Codex, which gateway mode doesn't have, so a gateway user couldn't reach it at all. The Codex provider's editor now has it under Advanced: the same app menu (codexMenuBtn, split out of codexMenuPick), posted at once to settings/codex-client like the Agents row, and the button redraws after a pick. The Agents row is unchanged. New test: codex-client-editor.test.cjs, the editor's pick in the app and in gateway mode, every language, Chromium and WebKit. Run (mica, at this tree, rebased on origin/main |
||
|
|
39c5040d72 | lessons: 11-18 three new GUI files skipped the guard that reads them all | ||
|
|
2acc2660e4 |
gui tests: three new files give navigation its 60s next to a 5s default
disabled-model-chips ( |
||
|
|
039719491c |
gui: Sessions' Settings › names the session terminal too, beside history
The Sessions page's head had one Settings › link, and it went to Privacy's Agents' session history. The other setting the page uses, the terminal a session opens in (General's Session terminal), had no way there from Sessions. Where that row exists (a Mac, or a terminal found on Windows or Linux), Settings › now opens the app's menu with both, each noting its tab (Settings › Privacy, Settings › General), and each opens Settings at its row, lit, with Back to Sessions. Without a terminal row it goes straight to Privacy as before; gateway mode still has no link. When the row shows is one rule now (window.sessionTerminalShows in sessions/settings.js), asked by both. No new strings; the core is unchanged. Run (mote, at this tree): - sessions-to-settings (now also on a Mac: the menu, both items, each reaching its row, nothing moved, the menu inside the window at 420), sessions-reads, gateway-mode-sessions, settings-search, i18n-keys, Chromium and WebKit, every language: 104 of 104 pass. - go test ./internal/gui -run 'TestCoreScriptBudget|TestI18n|TestCSS': ok. Broken by hand, each red, then put back: - Settings › going straight to Privacy always: sessions-to-settings 20 of 20 red. - the terminal item aimed at the history rows: 20 of 20 red. Not tried: the real app window. |
||
|
|
2957d16e5e |
gui: every alert row says when notifications won't show, in sight; Bark says it gets them all
The scan's item 9. When the system blocks magpie's notifications, or
can't show them, Settings › Usage's four alerts said so after their
description, but the Masking alert in Settings › Privacy didn't. Both
take the line from one helper now (notifyWarn in app.js), and the
Masking alert appends it as the others do.
On a computer with a pointer that warning was never in sight anyway:
Settings holds a row's explaining line out of sight for the hover card
(app.css, 11-02), and the warning sat inside that line. The comment
there says a warning stays; the rule didn't. A line holding a .warn now
stays in place, so the warning is read without hovering.
Bark gets every notification magpie shows (sendAs → barkPush), even
while the system's are turned off. Its row now says so, in every
language, rather than following a separate set of choices.
New test notify-warn-places.test.cjs: denied and unavailable, the
Masking alert's and the usage alert's warning on screen (wider than the
1px a held line gets, no clip-path), none when nothing is wrong, Bark's
line, nothing past the edge; every language, 900 and 380, both engines.
Run (mote, at this tree; mote at load ~50 and mica at ~160, mote the
lighter):
- notify-warn-places, mask-alert, builtin-places, i18n-keys, bark,
settings-hints, usage-alert, reset-reminder, turn-done, settings-search,
settings-search-reach, settings-groups, gui-de, editor-hints,
privacy-hides-accounts, Chromium and WebKit: reds only these, each red
on an origin/main
|
||
|
|
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 |
||
|
|
ab42898d91 |
gui: Manage agents says that hiding an agent takes it out of the Library's lists too
The note in Manage agents said "Hiding only changes this list". But the Library leaves a hidden agent out of its chips too (shownAgents in plugins/library/client.js, #71), and PluginServerOn skips it when giving a plugin's tools to every agent. What it was already given stays, and nothing new goes to it. That is the intended behaviour, so the text now says it: its connection and settings stay as they are, the Library stops listing it, what it was given stays, and nothing new goes to it. The note is in en, zh, zh-TW, ja and de, and so is agentsmanager.js' head comment. Test: agent-bulk-visibility.test.cjs checks the note's text in each language, Chromium and WebKit. Run (mica, at this tree on |
||
|
|
932987c50c |
gui: Disconnect from magpie says it takes out magpie's endpoint, key and models, and that the Library's items stay
The row menu's tip said Disconnect takes out "everything magpie wrote
into {agent}'s config". Agent.Disconnect (internal/agent/applied.go)
takes out only the routing: endpoint, key, models and effort. MCP
servers, skills and hooks the Library gave the agent stay, which is
right, since they are the Library's and are taken out there. The text
is what was wrong, so the text changes, not the action:
- the tip, and the dialog's fallback line (shown when no dry run can be
had), name what is taken out;
- the dialog always says "The Library's MCP servers, skills and hooks
stay".
All of it in en, zh, zh-TW, ja and de. No budget raise: app.js is 4
bytes smaller than before, because the strings are shorter.
Test: agent-disconnect.test.cjs checks the new note's text in en and zh,
and that every new string has its Chinese.
Run (mica, at this tree on
|
||
|
|
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
|
||
|
|
cb1fe6d5d9 |
gui: Get started put away comes back from Settings › General
Once the Agents page's Get started card was hidden (POST
/api/settings/guide {hidden:true}) nothing in the app brought it back.
Hiding it now says where it comes back ("Get started hidden; Settings ›
General brings it back"), and General has a Get started row with Show,
only while the card is hidden and would otherwise show (setup not done,
not gateway mode). Show posts {hidden:false}, redraws the Agents page and
says so; the row goes. The row lives in guideback.js, imported by
navpages.js beside the sidebar's pages, so the core grows by one status
line. Settings' search finds it by its name.
Run (mote, at this tree):
- getting-started, nav-pages-hidden, nav-pages-order, settings-general,
settings-search, i18n-keys, gui-de, Chromium and WebKit, every
language: 117 tests, all pass after the fake server answered
/api/settings with the guide flag as the real one does.
- go test ./internal/gui -run 'TestCoreScriptBudget|TestI18n|TestCSS': ok.
Broken by hand, each red, then put back:
- renderNavPages not calling guideBack: getting-started 20 of 60 red
(the row never shows).
- the hide's status line removed: getting-started 30 of 60 red.
Not tried: the real app window.
|
||
|
|
36d784da4b |
gui: the check-in time reads as the one time for every vendor
settings.checkinAt is one time that every daily check-in waits for. Its row is drawn under each vendor's check-in, in WorkBuddy's, Trae's, MiniMax's, Qoder's and each plugin's editor, and its picks said Off and On. Under one vendor that read as turning that vendor's check-in off, while it set every vendor's time. The row is now "Check-in time for every vendor", with "Day start" and "Set time". The backend keeps one time, so the row stays one shared setting rather than one per vendor. Same settings, same saves. Translated in zh, zh-TW, ja and de. Run (mote, at this tree): - checkin-at.test.cjs (Chromium and WebKit, 1100 and 420, en zh zh-TW ja de) and i18n-keys.test.cjs: 44 pass. - go test ./internal/gui -run 'TestCoreScriptBudget|TestI18n|TestCSS': ok. Broken by hand: checkin-at against the old checkinnow.js, 20 of 40 red (the name and the Off/On picks), every engine, width and language. Not tried: the real app window. |
||
|
|
afabb7f90f |
library: a skill the router lists stays a /name of Claude Code's
RoyShen on X (yuushabu_buyinn): with the skill router on, / in the agent
no longer picks a skill. A listed skill has no link of its own in the
skills folder, so Claude Code had no /name for it.
For each skill the router lists for Claude Code (any profile; not a
plugin agent or WSL), routerCommands writes <claude dir>/commands/
<name>.md: the skill's description, disable-model-invocation: true, and
a body that has the agent read the skill's SKILL.md at the router's path
and follow it, with $ARGUMENTS. The flag keeps the description out of
the model's prompt, so the router still saves what it saved. The stubs
go in the commands folder, not the skills folder, because Crush, DevEco
Code and Kimi Code read ~/.claude/skills too and ignore the flag.
Applied.RouterCommands records the files with their hash (syncOwnFiles):
one the user changed is theirs. A user's own command file by that name,
or a Library command of that name given to Claude Code, means no stub;
syncCommands takes a stub's file over when such a command is added. The
command import leaves the stubs out. Router off, or the skill kept
direct: the stub goes.
Run:
- mica-run go test -tags nogui ./internal/library -count=1 -timeout 45m: ok
(277s); GOOS=linux and GOOS=windows go vet ./internal/library: ok;
gofmt -l clean. Base
|
||
|
|
888d4eba52 |
library: the MCP market puts the most used servers first, counted from the day's report
gugediyige666 and freedomf26 on X asked for an MCP list ranked by
downloads, searchable and installable. Search and install from the list
were already there; skills were already ranked by skills.sh's install
counts. What was missing was a count of who uses each MCP server.
- internal/library/market_public.go: PublicServers names the Library's
servers that an agent is given and that the market lists from what
ships with magpie (featured, or the registry snapshot), by market id
only, matched by serverKey. A bare command names no package and is
never matched; a server of the user's own, one found only by a
search, and its address, command or keys never go.
- internal/stats/plugins.go: the day's plugin report carries them as
"servers" (at most 50), and goes when either list has something.
PluginCounts returns a Board with plugins and servers.
- site/pluginstats.js: servers are kept as mcp:<id> beside the plugins,
pruned apart (D1 binds at most 100 values a statement; the test's
stand-in now enforces that), never liked, and /api/plugins/stats
returns them under servers.
- GUI: with nothing searched, a server with 20 or more users comes
first, most used first, with a person chip of its count; the rest
keep the curated order. Counts are waited for at most a second, so a
drawn list never reorders; a search keeps the registry's ranking; a
failed ask is tried again after a minute, not with every search.
- Privacy text: READMEs (en, zh), site privacy and start pages (en, zh,
ja), reference.md, the Settings privacy row (zh, zh-TW, ja, de),
llms-full.txt and search indexes rebuilt; docs/subsystems/library.md.
Run (mote, rebased on 18fe1e2dc; budget, TestI18n*, i18n-keys, market-used and privacy-usage-stats again at
|
||
|
|
b53e23ba3e |
gui: a provider's editor says Close while nothing waits for its Save
The provider editor mixes two kinds of control. An account's auto-switch, a key's concurrency and spend pills and the Claude Code rows act at once and say so in the status pill, while the rest waits for Save. Its Cancel said Cancel either way, so after a switch that had already been made, it read as if Cancel would take it back. The button now says Close while the draft matches what is saved (providerDirty, the same check Cancel's discard question asks), and Cancel once a field waits for Save. It is read again after each input, change and click in the editor. A new provider's editor keeps Cancel. Escape and the backdrop are unchanged. Tests: six files that pressed the editor's Cancel on a clean editor press its .ed-cancel now. lane-limit's draft-pill test brings the pill into sight before opening its menu: under four files at once a scroll landing after the click closed it (Chromium, 2 of 4). Run (mote, at this tree): - lane-limit.test.cjs: 24 pass. - the 29 GUI files that press an editor's Cancel, Chromium and WebKit, four at a time: 491 pass, 13 red. 12 are red on |
||
|
|
98c487d096 |
gui: Turn off telemetry for all agents says it takes effect when each agent next starts
The switch in Settings › Privacy rewrites each agent's config
(agent.SetTelemetryAll). An agent reads its config when it starts, so one
running now keeps sending until it is restarted. An agent's own Telemetry
switch has always said "Takes effect when {agent} next starts". The
switch for all agents said nothing, unless an agent refused. Now it says
"Takes effect when each agent next starts", in every language. A refusal
is still shown as the error.
Tests: privacy-agent-telemetry checks the status after the switch, in
every language, at 1100 and 640, in both engines.
Run (mote, at this tree):
- privacy-agent-telemetry, i18n-keys, gui-de and settings-search,
Chromium and WebKit: 47 pass.
- go test ./internal/gui -run 'TestCoreScriptBudget|TestI18n|TestCSS': ok.
Broken by hand, then put back: with the old status line,
privacy-agent-telemetry was 20 of 22 red.
Not tried: the real app with a running agent.
|
||
|
|
18fe1e2dc3 |
gui: Mask personal data says it turns on Hide accounts too
Turning on Mask personal data in Settings › Privacy also turns on Hide accounts (window.hideAccounts.set), and Hide accounts follows it until it is chosen by hand. That has been so since inaction's report on Discord, but nothing said it, so the accounts blurred on every page with no word why. The row's description now ends "Turning it on turns on Hide accounts as well", in every language. Tests: privacy-hides-accounts now runs in every language (before, en and zh only) and checks the description before the click. Run (mote, at this tree): - privacy-hides-accounts, privacy-model, redact-kinds, provider-mask, settings-search, i18n-keys, gui-de and gui-ja, Chromium and WebKit: 303 pass, 1 red. The red is provider-mask "Hide accounts is one switch on every page", Chromium en 1000, a timeout under the parallel run. It passed 140 of 140 alone, and is filed as #5109. - go test ./internal/gui -run 'TestCoreScriptBudget|TestI18n|TestCSS': ok. Broken by hand, then put back: with the old description in app.js, privacy-hides-accounts was 10 of 10 red. Not tried: the real app. |
||
|
|
de321cc92e |
gui: Settings' search finds by a part's name, unfolds an Advanced around a hit, and reaches the settings sheets build
Three gaps in Settings' search (the UI/UX scan's item 12): - every part matched its tab's id too, so "usage" brought all of Allowances (id usage), rows that never say it included. A part is now found by its name; Observability still answers to "otel". - a hit under a folded Advanced (Network and sharing's Name) stayed folded, so the part showed with nothing in it to see. It is unfolded while the search lasts and folded again when it ends (setFolds, in the lazy provlinks.js, so the core grows by two calls). - what an agent's sheet or the Claude editor draws only when opened wasn't in the page to be found: Claude Code's prompt cache (main and subagents), its commit signature (Co-Authored-By), an agent's own fields (permission mode) and the Claude editor's run mode (claude -p). Each has a link row now, in the agent's or provider's name; Open opens the sheet or editor and lights the row, again if the editor draws it anew once the provider list is in (lightWhen). docs/subsystems/gui-shell.md says so. Run (mote, at this tree, rebased on origin/main |
||
|
|
fefab53d22 |
gui: TestGitHubTokenRefusedShown refuses a token of its own each run
ghtoken keeps the tokens GitHub answered 401 for as long as the process runs, keyed by the token. The test refused one constant token, so a second run in the same process (-count=2) found it refused before GitHub was asked: red every time. Each run now builds its own token, ending in 4567 so the mask it checks is the same. Run on mote at this head: - go test ./internal/gui -run ^TestGitHubTokenRefusedShown$ -count=2 on the old test: FAIL "refused before GitHub was asked", 2 of 2 tries. - go test ./internal/gui -run ^TestGitHubToken -count=5: ok. - gofmt -l: clean. Test-only; no other file changed. |
||
|
|
16c3abd623 |
gui: Settings › Usage says the tray on Windows and Linux, and hides Menu bar refresh when allowances are read only when asked
A menu bar is the Mac's. On Windows and Linux the Usage part said "Menu
bar windows", "Menu bar cost" and so on, about a tray. There it now says
"Allowances in the tray", "Tray windows", "Tray refresh", "Tray Claude
logo", "Tray pace", "Tray cost" and "Tray currency". The descriptions of
cost, Allowance display and Allowance reads say the tray too, and so does
the windows picker's title. This is in every language. The relabel lives
in traywindows.js, which is imported lazily, so the core budget doesn't
grow.
"Menu bar refresh" is hidden when allowances are read only when asked
and only cards are shown. In that case the cards keep the last reading,
so how often the icon redraws changes nothing. With a total picked, the
row stays, because the total is still counted again.
Currency's three rows are left as they are: tightening them is more than
trivial (currencyprefs.js).
Tests: tray-words.test.cjs. It covers MacIntel, Win32 and Linux x86_64
(navigator.platform forced), Chromium and WebKit, and every language. It
checks:
- the row names;
- that no name or description in Settings › Usage says the menu bar off
a Mac (the Mac-only rows excluded);
- that the names survive a redraw;
- that the refresh row hides and comes back with When I ask, and stays
for a total at 420 wide.
Run (mote, at this tree; mote at load ~26 and mica at ~110, so the
lighter one):
- tray-words: 50 pass.
- Nearby files (allowance-open-read, currency*, gui-de, gui-ja,
i18n-keys, quota-reads, settings-groups, settings-search, tray-*), both
engines: 342 pass, 8 red, each red on origin/main too and filed:
- settings-groups "warm-ups and check-in", en and zh (#6597);
- tray-cell-click "a menu-bar cell's click", Chromium en and zh (#5215,
red the same on an origin/main
|
||
|
|
98355866fd |
gui: the speed card's Check… brightens on focus in Safari 15.0 too
|
||
|
|
74bba1fa67 |
gui: Settings › Version and the tray restart magpie with no update (yansheng1003 on X)
yansheng1003 asked for a Restart beside Check: "每次改了需要重新magpie, 都要自己退出再启动麻烦". The Version row now has Restart after Check while no update is on offer (found, downloading, downloaded, blocked, a newer version named or a failed download each have their own buttons, which restart through the update and fill a 420px row), and the tray's Restart magpie is always shown: with an update ready it installs it as before, with none it starts this magpie again as it is. Both go through restartSelfNow (restart.go), the updater's own way of starting again: on macOS and Linux the gateway's socket is handed over (beginHandover), so requests in flight carry on; otherwise the bundle or binary is started again (update.Relaunch, relaunchBinary), and on Windows requests in flight are cut. magpie web runs itself again in place. POST /api/restart answers 204 and then quits, or 400 "magpie couldn't start again: quit it and open it again", and the row says Couldn't restart magpie with the reason and gives its buttons back. /api/update now says its run (the time this process started), so a browser's page reloads once another run answers. The click, its error and the reload are in versionrow.js, imported when Restart is pressed. The mirror's Download from GitHub click moved there too, so app.js stays under its budget with no raise (TestCoreScriptBudget at 1,088,248 and 1,272,581, as they were). The route is named in the CLI's notYet list. Words in en, zh, zh-TW, ja and de. What needed a restart before, besides an edited path plugin (the commit before): most settings already applied live (proxies, OTel, HTTPS/mTLS, LAN from the GUI, allow-lists, CORS, shortcuts, tray, language, name, fonts, port, hand-edited caller-keys, oidc-rules and library.json). Still start-only: LAN switched by hand in settings.json, environment variables, and in-memory routing state such as a rate-limited account's order; Restart is for those. Run: - Full Go suite (mote, -timeout 45m) at the head before the rebase and before versionrow.js: 101 packages ok; the reds were TestEveryRouteHasACommandOrIsNamed, TestEveryRouteIsNamedForTheCLI (the route unnamed) and TestCoreScriptBudget, all fixed here. - At this head (mote): go test ./internal/gui -run 'TestCoreScriptBudget|TestEveryRouteIsNamedForTheCLI|TestRestart| TestUpdateSaysItsRun|TestTrayMenu' ok; ./internal/cli -run TestEveryRouteHasACommandOrIsNamed ok. go build, go vet, GOOS=linux go vet -tags nogui ./..., GOOS=windows go vet ./... ok; gofmt -l clean. - GUI (mote, both engines, at this tree): update-*.test.cjs, version-restart, settings-update-source, refresh-page, old-webkit, i18n-keys and i18n-en-no-cjk: 628 pass, then 6 red in update-check (Restart not dimmed while a check runs), fixed here (Restart dims with Check); update-check, version-restart and old-webkit again: 90 pass, 0 fail. - Real restart (mote, sandbox HOME): a built magpie web with MAGPIE_WEB_KEY, signed in through ?k=; POST /api/restart answered 204, the same pid ran again with a new run, and the cookie still signed in. - Broken by hand: restartAppFrom returning true on an error, and TestRestartStartsMagpieAgain is red; version-restart.test.cjs on the old app.js is red (21 on chromium); with Restart shown beside an update on offer again, "no Restart beside an update on offer" is red in all 5 languages and both engines (12 fails). - The whole GUI suite is still running on mica at push time; its reds are compared against origin/main and fixed or filed after. Not tried: the tray item and a restart in the real macOS, Windows and Linux apps (only magpie web was restarted for real). |
||
|
|
95a7c70a63 |
docs: a plugin added by its path is loaded again when its files change
The design reference for the commit before this one: seenStamp, pathsStamp, what is left out and how often it is walked. |
||
|
|
ceeae93e67 |
plugin: a plugin added by its path is loaded again when its files change
A plugin added by its path (the user's own folder or file, as its author has it while writing it) was loaded by the host as it was when the host started, and an edit reached it only once magpie was quit and opened again (yansheng1003 on X: "每次改了需要重新magpie"). checkList, which runs on every call to a plugin, now compares the files of every enabled path plugin too (names, times, sizes; node_modules and dot folders left out, 2000 files at most, walked at most once a second), and a change starts the host again as a plugins.json change already did. The middleware already reloaded its own files this way. Run (mote): go test ./internal/plugin -run 'TestPathPluginEdit|TestPathsLookedAt|TestTerminalUpdateRestarts' ok. Broken by hand: checkList back on listStamp alone, and TestPathPluginEditRestartsTheHost is red at "the plugin's own code was edited". The full suite runs with the restart change that follows. |
||
|
|
68dd531c62 |
gui: a key's concurrency pill shows the provider's limit as typed in the editor
An account or key that takes the provider's limit showed the saved Concurrency on its pill and in its menu's "Provider's" line while the editor's Concurrency box, a few rows up, said another number. Both now read the draft while the editor is open on that provider: a whole number as typed, empty as the plugin's (or no limit), and the saved one while the box holds something out of range. The pills are drawn again on each keystroke in the box. Save and Cancel are unchanged. Run (mote, at this tree): - lane-limit.test.cjs, Chromium and WebKit, en and zh: 20 pass. - go test ./internal/gui -run 'TestCoreScriptBudget|TestI18n|TestCSS': ok. Broken by hand: the new test against the old app.js, 4 of 20 red (the pill kept "2 at once" after 5 was typed), both engines and languages. Not tried: the real app window. |
||
|
|
4dd1810ce6 |
lessons: 11-18 a tag on a suite still running at push
|
||
|
|
5e850855b8 |
gui: the menu bar's total says it counts as Usage › Requests does
The menu bar's Tokens and cost picks said "Every agent's, as the Usage page counts them", but the Usage page has two counts: the Overview sums gateway calls only (its own line says so, #usageScope), while Requests, the panel's Usage tab, the menu bar and Bark's daily line add the calls the agents' session logs record (trayTotalSum is Requests' sum). So on a day with session-log calls the Overview's total was lower than the menu bar's claim of the same count. The pick's note now says what it sums and which tab it matches: "Gateway and session-log calls, as Usage › Requests counts them", in every language. Run (mica, at this tree): - tray-totals (Chromium and WebKit, every language) and i18n-keys: 54 pass. - go test ./internal/gui -run 'TestCoreScriptBudget|TestI18n|TestCSS|TestTray': ok. Broken by hand: the old note put back in app.js: tray-totals 15 of 25 red (Chromium), then put back. Not tried: the real app window; the Overview's own sum is unchanged. |