22f2759d7 (11-11, Settings › General › Sidebar pages) added
renderNavPages, which read $("#nav").querySelectorAll before it
looked at the mode. The panel has no #nav (app.js removes it), so
every Settings draw in the panel threw once navpages.js had loaded.
The second draw is the one openAgentPrefs waits on (loadSettings), so
in the panel the "Claude Code settings" and "Grok Build settings"
menu items opened nothing. #6139 was filed 46 minutes after
22f2759d7 and was seen again twice with no owner (#6311 its
duplicate).
renderNavPages now hides its row and returns before it reads #nav
outside a window. Its siblings (navHides, markNav, show) already
check mode === "window".
Found with a pageerror stack: "Cannot read properties of null
(reading 'querySelectorAll') at window.renderNavPages
(navpages.js:9)". agent-prefs' "in the panel a Settings line and the
agent's menu open its sheet" was red in both engines and all five
languages at 35aaaa4b9^, 35aaaa4b9, 8c7328f3a and origin/main
5f1a642b4^ (timeout at agent-prefs.test.cjs:192).
Run (mica, at this tree): node --test agent-prefs.test.cjs pass 56
fail 0 (both engines, every language), nav-pages-hidden pass 2,
i18n-keys pass 4.
1ca2c62c4 added a package-level regexp.MustCompile, so
TestNoEagerPackageRegexps was red (catalog.go:1184). It is a
lazyre.New now, as the file's other patterns are, and catalog.go no
longer imports regexp.
Run (mica): go test -count=1 -tags nogui ./internal/catalog . ok;
GOOS=linux and GOOS=windows go vet ./internal/catalog ok.
35aaaa4b9 (codex-client) and ee1553913 (codex-open) each added a
settings route with no command and no notYet entry, so
TestEveryRouteHasACommandOrIsNamed was red on CI at 65f1fdd1d (macOS
and ubuntu). Both are a setting saved by its own route, like the other
codex-* settings beside them (S2).
Run (mica): go test -count=1 -tags nogui ./internal/cli . ok.
8c7328f3a (remote quotas: a Remote set to Select none still tells its
cards) was committed from a stale tree. Beside its own three files
(docs/subsystems/providers-accounts.md, remote_quotas_scope.go,
remote_quotas_test.go) it wrote 21 files back to their state before
35aaaa4b9, which took out:
- 35aaaa4b9, the Codex client setting (codex_request.go, codex_tier.go,
settings.go, settingsapi.go, api.go, app.js, i18n.js, index.html,
codex-client.test.cjs and the rest);
- 2fa79aef3, a save of the bytes a file already holds changes nothing
(#6289: logins.go, logins_unchanged_test.go);
- 797a23cad, the tray's words (traywords.go, traytip_words_test.go).
The 21 files are checked out from 8c7328f3a^. After this commit
`git diff 8c7328f3a^ --stat` names only the three remote-quota files,
so main is the three lost commits plus 8c7328f3a's own change.
Run (mica, at this tree): gofmt -l clean; go test -count=1 -tags nogui
./internal/provider ./internal/settings ./internal/settingsapi ok.
./internal/cli and . are red on main already, not from this: the
codex-client and codex-open routes have no notYet entry, and
catalog.go's mmddSnapshot is compiled at launch (1ca2c62c4). Both are
fixed in the next two commits.
0.1.3926, several Hermes profiles: the Skills page's source headings
(anthropics/skills ...) drew one icon per profile, a long strip, and the one
chip 2a1111cba made on a row sat out of line. That commit said "Rows only":
groupChips never set change.rows, so headings kept every profile. The row's
chip had data-members, not data-agent, so the fan/stack translate rules in
library.css never reached it.
groupChips now sets change.rows, and its profiles chip is half lit when a
profile has some of the skills. library.css applies the fan rules to
[data-members] chips too. docs/subsystems/library.md says so.
Files: plugins/library/client.js, plugins/library/library.css,
tests/library-profile-group.test.cjs (new), docs/subsystems/library.md.
Run on mote: library-profile-group.test.cjs (new; chromium + webkit, en/zh/
zh-TW/ja/de, 420 and 980px, 22 cases): 22 of 22 green; broken by hand (old
client.js and library.css) 22 of 22 red (13 Hermes chips, not 1); old
library.css alone 22 of 22 red (chips out of line). The Library GUI files,
group-skill-chips and i18n-keys ran in both engines: the only reds are
library-loading's chromium and webkit cases, red on origin/main
8c7328f3a6 too (run there alone, 2 of 6
red), filed as #6204.
Not run: the full Go suite and the 113-file GUI run's final tally (still
running when pushed), Linux WebKitGTK, a real Hermes install with many
profiles.
On 0.1.3929 a Remote magpie added for the Usage page's quotas showed none
of the remote's subscriptions any more. cfd49e36a made a Remote's cards
follow its enabled models, and remoteCardWanted answered no card at all for
a provider that serves no model (Select none). Select none is documented to
serve no model while its balance and usage are still read and shown
(Provider.NoModels), and a Remote kept only to read quotas is set that way.
Now every card is wanted then; picks still narrow cards by their whole
provider path (93b855d90), and a list not read leaves all shown.
Run (mote): TestRemoteSelectNoneStillShowsItsCards is red on origin/main
797a23cad's scope file put back by hand ("map[]") and green with the fix;
-run 'Remote|Quota|Card' in internal/provider and internal/gateway ok;
go vet darwin/linux/windows of both packages ok; gofmt clean. GUI: remote-*,
usage-*, routing-remote-windows, panel-usage*, name-suffix-remote and
statusline-remote files in chromium and webkit: 74 red, all in usage-agents-hide,
usage-cards-hide, usage-fold, usage-hidden-way-back, usage-ledger,
usage-range-times, usage-speed-all-models, usage-compact-counts and
remote-magpie's address test; the same files are red the same on origin/main
797a23cad (75 red), already filed (#6003, #5475, #3414). The change is Go only.
Not tried: a real second magpie in sandbox HOMEs (a fake peer in the test),
the full Go suite (started after the tag).
The tray's tooltip names a usage window as its card does, with the
page's own translations from assets/i18n.js. pageWords parsed all four
language blocks (zh, zh-TW, ja, de, ~20k entries) once and kept them for
the life of the process: 6.5 MB of an idle tray magpie's heap, for the
few dozen words one language needs. It now parses only the block of the
language asked for and keeps that one; a change of language reads the
file again.
Run (real account sandbox on mote, `tray`, no page, 150 s):
- w35 (before): footprint 71 MB, live heap 16.7 MB; pageWord 6.5 MB cum.
- w36 (this): footprint 67 MB, live heap 12.4 MB; pageWord 0.5 MB cum.
On mica: go vet ./internal/gui; go test -run 'PageWords|TrayTip|Tray'
./internal/gui ok, with a new TestParsePageWordsInOneLanguage (one block
read; ja then zh each give their own word). gofmt clean.
Not run: the full suite.
writeLogins and writePrivate rewrote logins.json with identical bytes, which
moved its mtime and called filememo.Forget, so every read after parsed the
230 KB file again (anton1615 measured 182 reads in 15 s, CPU 3.3x after each
write). Now a file that holds exactly these bytes, at the mode the write
would give it, is left alone: no lastgood generation, no rename, no Forget.
A stat or read that fails is "not equal" and writes as before. Real changes
keep steady.WriteFile's temp-and-rename. The same check is in writePrivate,
writePrivateQuiet and (writeChanged) the sibling writers of codex-autoreset,
codex resets-used and Kiro's token file.
Nothing else bumped the mtime in the reporter's path: the other writers of
logins.json (rememberLogins, Claude/Codex sign-in syncs) all go through
writeLogins. Changed() still runs on a told save, so a list built before it
is not reused (TestLoginsListedOnceARequest unchanged).
Run on mote: TestUnchangedLoginsSaveKeepsFileAndParse and
TestWritePrivateSameBytesLeavesFile, -count=20 green; both red with
fileHolds forced to return false (mtime moved). gofmt clean; go vet on
darwin, linux nogui, windows nogui; go test -tags nogui ./internal/provider
./internal/filememo ./internal/lastgood (result below in the push notes).
Not tried: the reporter's 130-account gateway; the full suite before the tag.
ouhthuo wants the originator "Codex Desktop", with which, they say, a
high-effort gpt-6.1-sol request is routed to a newer model. magpie sent
codex_cli_rs on every request, and codexSign even overwrote a real Desktop's
own originator.
Settings > Codex > "Codex client" (CLI, the default, or Codex Desktop; the
settings key codexClient is "" or "desktop", POST /api/settings/codex-client,
no free text). codexClientHeaders is the one place that sets originator and
User-Agent, so the model requests, the /wham usage and reset calls, the token
refresh, the device and code sign-in exchanges and "test as" all follow it.
Desktop sends originator "Codex Desktop" and the UA shape codex-rs builds for
it: Codex Desktop/<codex version> (<os>; <arch>) unknown (Codex Desktop; <app
build>). Source: codex-rs login/src/auth/default_client.rs and a captured
Desktop UA. The default is unchanged; base_instructions and the identity
prompt are untouched. The OAuth authorize URL keeps codex_cli_rs.
The row sits in the Codex agent preferences, 5 languages. The two Codex menu
buttons share one helper (codexMenuPick) so app.js stays inside its budget
without raising it.
Run (mote): TestCodexClientSetting (red with codexClientHeaders ignoring the
setting), settings, settingsapi, gui and provider Codex tests ok; gofmt clean;
go vet darwin, windows and linux nogui clean; GUI codex-client,
codex-service-tier, codex-open-button, i18n-keys, i18n-en-no-cjk,
settings-general, click-scroll in chromium and webkit ok. Real Codex account
in a sandbox HOME: gpt-6.1-sol and gpt-6-sol at high effort answer under both
identities with identical usage; the reply's model field only echoes the
requested name, so whether the served model differs can't be told from here.
Red and not mine, already filed: settings-search (#6133, #5982) and
agent-prefs "Settings line" (#6139) fail on origin/main, TestMoveToPlugin
#5524.
Not tried: the real Desktop app (not installed here); the app build number
in the UA is the newest seen in local logs and can go stale.
routing-acts-calm and routing-acts-idle wrote the day's tallies under the two-part key; tallyKey adds the plan since 2240e5b34 (d6b5f24db), so the page folded a seat's tally and its live request into two cards. They key as the gateway does now. Run (mote): both files in chromium and webkit, 11 and 7 of 7 pass; routing-day-tallies and routing-sign-in-again carry no plan.
Settings > Models showed Image recognition's, Image generation's and Web
search's MCP server at 127.0.0.1 even on a magpie shared on the network.
While sharing is on, each address row now has a switch beside it, This
computer and the far address named as the gateway names it (addrWho: Local
network, Public address, On the internet). The far address is the one the
sidebar uses (sideLAN), so MAGPIE_PUBLIC_URL, container and LazyCat rules
carry over; nothing is copied. The pick is kept (magpie.mcpWhere); an app
starts at This computer as before, a page other machines opened (magpie
web) at the far address. Sharing off: no switch, as before. The Library hub
and the plugin tools line follow the pick through mcpAddress (no switch of
their own).
The two image rows moved from app.js into plugins/gateway/settings.js with
the switch; app.js ends smaller, and the core budget is met.
Run on mote at this tree: mcp-address-lan.test.cjs (new, 22 tests: chromium
and webkit, en zh zh-TW ja de, 1100 and 420px) 22 pass; with mcpAddress's
hook removed 11 of 11 chromium tests fail. vision-mcp, image-mcp,
search-mcp, public-url-default and 98 tests in all pass; the lan/mcp/
gateway/settings/search/vision/image GUI subset (122 files, 2181 tests): 2114 pass, 67 fail; the six failing files I reran (side-effort, settings-hints, settings-search, lan-join, images-codex-one, settings-lines-wrap) fail the same 35 tests on a clean origin/main copy, so they are not from this change; filed separately. The other failing files' names were lost to a tail (not reread). go test
./internal/gui (core budget included) ok; go vet darwin, linux nogui,
windows ok; gofmt clean.
Not run at the rebased head: the Go suite beyond internal/gui; the whole GUI suite and go test ./... (mote and mica both held a
GUI suite; queued after the tag). Not tried: a real LAN server. Library
hub address and the plugin tools line show the picked address but have no
switch of their own; they read it when drawn.
76ceff87c was built on an older base and its tree dropped the Linux
backdrop-blur rule (7c37424fc) and Codex seats change (d6b5f24db) with
their tests, docs and history.go edits. This restores those files from
d6b5f24db; the diff against d6b5f24db is now only the hours feature.
Run: git diff d6b5f24db --stat lists the usage files alone.
models.dev lists DeepSeek's V4.1 Flash only as deepseek-flash with
canonical_model_id deepseek/deepseek-v4.1-flash-1017. The canonical
fallback (#1520) matched the undated id alone, so every relay serving
deepseek-v4.1-flash (Open Design, WorkBuddy, Tencent Cloud) had no price
and no estimated cost. priceIndex now also keys a maker's own canonical
entries with a trailing snapshot date (-MMDD, -YYYYMMDD, -YYYY-MM-DD)
taken off, tried after the exact and dashed keys, so a price a vendor
lists by the id as given still wins. Only the provider that is the
canonical's maker counts, as before, so no other vendor's model is priced.
Open Design's other models were checked with the plugin's real ids
(packages/opendesign models.mjs) against models.dev: every one but
deepseek-v4.1-flash and deepseek-v4.1-flash-eco was already priced.
-eco is the plugin's own id, not a snapshot, and stays unpriced (filed).
Run (mote, at this tree): go test -count=1 for internal/provider,
catalog, usage, gui all ok; go vet darwin, windows, linux nogui ok.
New TestRelayDeepSeekSnapshotCanonicalPriced (models.dev entries in
testdata/models_dev_opendesign.json) is red with the snapshot key
disabled by hand. TestCommandCodePlanPrice's relay case asserted the gap
("a relay took Command Code's list price" for an unpriced model); it now
asserts DeepSeek's price, which Command Code's plan still beats with its
own catalog. Not tried: a live Open Design account.
The range menu behind Custom has a top row, "[N] hours back". Enter asks
the Usage page for the rolling window last:Nh (1 to 720), which the
backend already answers for every view (totals, chart, models, accounts,
Requests); the chip reads "Last 30 hours". The pick and N are kept on this
device (magpie.usagePeriod, magpie.usageHours). 24 stays the preset's
chip, and an empty page, the credit days and the menu-bar way in know the
new period. zh, zh-TW, ja, de strings added.
Run (mote, at the rebased head): usage-hours, usage-24h, i18n-keys in
chromium and webkit, en and zh. Broken by hand: keptPeriod limited to the
presets turned usage-hours red (expected last:30h, got today).
Not tried: the whole GUI suite (queued on mote's suite.lock behind other
sessions, still running), narrow widths by hand, the tray panel (it has no
24h chip and is unchanged).
The accounts list on the Routing page folded accounts by provider and name, so a Team seat and a Pro Lite login (or two logins) that carry one email read as a single card, and the day's counts of all of them went to it. An account is now told apart by its plan as well: the page's foldActs key and the gateway's tallyKey add the lowercased plan when it has one; a seat with no plan keeps the two-part key, so stored tallies and fixtures are unchanged. The key still ignores the id, which flips between codex and codex@user when the live login switches.
Run (mote): routing-codex-seats.test.cjs, chromium and webkit, en zh zh-TW ja de: 5 of 5 each. Red on the old client.js (4 cards where 3 are wanted). TestTallyKeyTellsPlansApart and the tallies tests ok; go test ./internal/gui ok; go vet darwin, linux nogui and windows ok; gofmt clean.
Siblings: the TUI draws no account names (no Who use in internal/tui); the combo picker names members from groups.accounts, which already carries the backend's distinct names (email · Team, email · workspace).
Not tried: the reporter's real accounts; the whole GUI suite and the full Go suite are run after the tag.
Lsheng2012 (CachyOS, KDE, i7-12700H, RTX 3070 Ti Laptop) found the UI laggy.
webkit_linux.go turns accelerated compositing off under Wayland and without a
GPU, and there every backdrop-filter is software-painted for its whole box
each frame. body.linux now drops it on .modal, .pop, the panel's profile
chips, Settings' sticky head and the confirm ::backdrop. Layout unchanged.
Measured (WebKitGTK 2.52.6, Xvfb on magpie-desktop, 240 rAF scroll frames of
600 rows, 1100x760): no blur 16.2ms, sticky head blur 16.2ms, full-window
modal blur(8px) 25.0ms with compositing off (16.4ms with it on).
Run: linux-no-backdrop-blur.test.cjs in chromium and webkit on mote (green;
red with the rule removed by hand), go test ./internal/gui asset tests.
Not tried: NVIDIA, Wayland/KDE, the omarchy VM, a full suite. The sticky head
cost nothing in the probe, so the modal is the measured gain; if the reporter
is still laggy the cause is elsewhere (CPU painting at HiDPI), and we ask for
their session type, driver and version.
sessionRoutes started warmSessions when the routes were made, so a
magpie started at login, by `magpie tray`, or as `magpie web` with no
page read every session's stats, the Requests page's whole history and
Codex's effort for nobody. What those reads kept went two minutes later
(statsIdle, requestIdle), so the reads were pure cost unless a window
opened in those minutes. The warm-up now starts when the app's page is
first served (GET / or /index.html, not mode=panel); the steady GC
setting is still made with the routes. On Linux and Windows the main
window is still made at start, so the warm-up runs there as before.
Measured on mote with the real account's history (~15.6k sessions),
the sandbox HOME at ~/r2278/acct, proxies to 127.0.0.1:9:
- `tray` start, CPU in the first 30 s: w34 2.67 s, w35 0.96 / 1.04 s.
- `web` with no page, at 150 s: footprint 104 -> 64 MB, live heap
62 -> 9 MB, CPU 2.52 -> 0.65 s.
- normal launch (window shown): the warm-up still runs in the first
30 s (warmStart 0.84 s, warmStats 0.47 s, QueryPage 0.31 s), as on
w34 (0.73 s).
- `panel` start: no warm-up in the profile, 1.62 s CPU, no panic.
Tests: TestWarmsSessions (app page, panel page, assets, HEAD), and
-run 'TestWarmsSessions|TestPanelOnFirstOpen|TestMainOnFirstOpen|Warm|Cold'
./internal/gui ok on mica; go vet ./internal/gui and GOOS=windows go vet
./internal/gui ok.
Not run: the full suite, the GUI suite (no page script changed), Linux
GUI vet (no gtk4 dev packages in WSL).
Not tried: a first Sessions page asked within seconds of opening the
window after a hidden start; it takes turns with the warm-up
(coldTurns), as a first start's window did before.
magpie drew StepFun's old stepped-S in blue. StepFun's own sources show
the new mark: stepfun.com's favicon (step_favicon.svg), the Hugging Face
org avatar of stepfun-ai (the step-5-preview card), and lobe-icons'
`stepfun` (mono). lobe's `stepfun-color` is still the old mark, so there is
no colour one to take; the mark is one tone, so it is stored as the mono
icons are (icons/stepfun.svg, currentColor, drawn as a mask that follows
light and dark). The presets (StepFun, StepFun China), the "step" model-maker
rule (IconForCatalog's table) and Step Code use "stepfun". A provider saved
with "stepfun-color" keeps working: that file now holds the same new mark
in black, which the one-tone check draws as a mask too.
Run (mote): go test of internal/provider and internal/agent ok; go test
-tags nogui ./internal/gui ok; GUI files stepfun-per-provider, icon-one-tone,
mono-icon-redraw, models-add-and-icons, icon-tile, nav-sub-icons ok in
chromium and webkit; a screenshot of the Providers list in chromium and
webkit, light and dark, shows the new mark for both icon names.
usage-cards-hide's "de 560" sideways scroll is red in chromium and
webkit, and the same on origin/main aa744b9ed without this change
(#6294). Broken by hand: the old mark in stepfun.svg makes
TestStepFunLogoIsTheCurrentMark red.
Not tried: the Linux WebKitGTK window; the full suite before the tag.
The Codex row on the Agents page now has an Open button beside the start
button. It opens the Codex desktop app (mac and Windows) when it is
installed, else Codex's CLI in a terminal. "Open Codex with" in Codex's
details (Automatic, Codex app, Terminal) picks which; it is this computer's
own setting (settings.CodexOpen, kept across a sync and a Settings save).
The row menu's Open in terminal still opens the terminal. The web build has
no button.
Run (mica): go test internal/gui, agent, settings, settingsapi, provider
ok; gofmt clean; GOOS=windows vet and GOOS=linux -tags nogui vet clean;
GUI codex-open-button (62), agent-open-terminal (24), i18n-keys,
codex-service-tier in chromium and webkit, en/zh/zh-TW/ja/de, narrow.
agent-prefs lists the new row.
Broken by hand: codexOpensApp always false turns TestCodexOpenButton red.
Budget: coreScriptBudget +1,112 for this code, packed small, no page to
move it to.
Reds on main before this change, same count at e18aca103 without it:
agent-details-ready (16 chromium), gui-ja and gui-de (one string),
agent-prefs panel-sheet test (5 chromium), and from 4e0026661
plugin-signed-out-account, plugin-signin-no-url, saved-signedout-remove,
signin-proxy. Not caused here; not fixed here.
Not tried: a real Windows launch of the Codex app, a real macOS app open,
Linux.
ubuntu CI at 836d074f1 (run 43242922324, race) failed
TestRemoteMagpieAskedToFollow at remote_update_test.go:156: "could not
read settings ... invalid character 'n' looking for beginning of object
key string". The 'n' is TestFetchPrivateEntries' "{not json". That test
shares the package's HOME and restored it with allowPrivate's
t.Cleanup(settings.Save(was)), but Save refuses to write over a file it
can't parse (unless a last good generation is there), and the cleanup
dropped the error. The broken file was left to whichever later test
saved settings next without fresh(t).
It now reads the file's bytes before garbling it and writes them back in
a cleanup that runs before allowPrivate's, and reports a failed write.
Run (mote): go test -tags nogui -count=1 -run
'TestFetchPrivateEntries$|TestRemoteMagpieAskedToFollow$'
./internal/gateway: red on origin/main (the CI message, word for word),
ok with this change. gofmt -l empty.
Siblings checked: allow_test's garble runs under fresh(t);
backup's and davsync's unreadable-settings tests use their own HOMEs;
request_settings_once and the cli update tests write the bytes back.
Whole-package run: after the push (below in the loop's record).
Release CI attests every file (SLSA provenance through Sigstore, v0.1.3891
on). The updater now fetches the bundle for a file's signed SHA-256 from
api.github.com/repos/yetone/magpie-releases/attestations/sha256:<digest>
before it downloads the file, and verifies it with sigstore-go against the
Sigstore trusted root embedded in the binary (attest_root.json, public
good instance): certificate chain, certificate timestamp, Rekor entry,
issuer token.actions.githubusercontent.com, subject release.yml of
yetone/magpie-releases on main or a v* tag, source repository
yetone/magpie-releases, and the digest among the statement's subjects. It is
in addition to the ed25519 check over SHA256SUMS, which still runs first
and still works offline and from the R2 mirror; the attestation is asked
about the digest that signed list gives, so both speak of the same bytes.
When the attestation can't be had (a failed read means "unknown", but an
outage of GitHub must not take updates away):
- a bundle that is there and fails (signature, identity, digest, a chain
outside the trusted root), GitHub answering 404, or an empty list: the
file is refused. GitHub was asked and says these bytes weren't built by
that workflow.
- GitHub unreachable, rate limited (60/hour anonymously), 5xx, a body that
isn't JSON, or Settings' update source set to the site alone (which never
goes to GitHub): the update goes on, since the ed25519 check has held, and
the log says the file went unattested and why. Someone who can only drop
the API call downgrades an update to the ed25519 check, never below it.
- releases before 0.1.3891 and a MAGPIE_UPDATE_FEED of your own are not
asked.
The bundle checks itself, so the API call goes through source.Do and may use
a mirror.
Cost: go.mod gains sigstore-go v1.1.4 and its tree (go.sum +350 lines).
The embedded root has to be renewed (gh attestation trusted-root, first
line) when Sigstore rotates its keys; docs/reference.md says so. Until then
a chain under a new key fails as "not attested" and is refused: a known
cost, in the doc.
Run (mote, sandbox HOME via testenv): go test ./internal/update (ok),
site node tests (112 of 114; docker-tags and the sponsors README test fail
because mote-run -C site cannot see ../README.md, unrelated), gofmt -l
empty, go vet darwin, GOOS=linux -tags nogui and GOOS=windows on
internal/update, go build ./... on all three. Fixture: the real answer
api.github.com gave for v0.1.3925's SHA256SUMS (testdata/attest), verified
offline; the whole run reaches no network.
New tests: TestAttestationOfARealBundleHolds, ...OfAnotherDigestRefused,
...TamperedRefused, ...EditedPayloadRefused, ...WrongIdentityRefused (repo,
workflow, ref, source repo, issuer each), ...NoneListedRefused,
...UnknownGoesOnAndSaysSo (403, 429, 502, HTML, nothing listening),
...OnlyWhereItIsOwed, TestVerifyMarksAttestedReleases,
TestDownloadRefusedWithoutAttestation.
Broken by hand: identity check swapped for WithoutIdentitiesUnsafe turns
WrongIdentityRefused red on all five cases; the attestedFile call removed
from download turns DownloadRefusedWithoutAttestation red (the file was
fetched). The first full run of the package, before TestMain pointed the
attestation API at a closed port, had TestSourceSiteAndAutomaticUseTheSite
reach the real GitHub with a made-up digest and be refused: now closed.
Not tried: a real update end to end (needs a release newer than the
running binary; the unit path covers download), Windows box, the
GUI, full suite (starts after the tag).
Docs: docs/reference.md, start.html (en, zh, ja) and llms-full.txt say what
the app checks now.
Antigravity's card lists Claude & GPT, Gemini and more. A row group can now be
hidden from Usage > Overview the way a card can: right-click or long-press a
row, or use the card's "..." menu, and choose "Hide <group> from Overview". The
"Hidden" line under the cards lists hidden cards and rows with an Unhide button
and Show all. The last group of a card cannot be hidden (use the card's own
hide). Persisted as settings usageWindowsHidden ("<card>|<group>"), changed
through /api/usage/arrange { windowsHidden } and kept by the Settings save.
Table view and tray panel are untouched.
Run (on mote):
- go test: TestUsageArrange*, TestUsageArrangeWindowsHidden (new), TestSettingsSave*,
settings_keep guard, TestCoreScriptBudget, ./internal/settings, ./internal/settingsapi;
gofmt clean; go vet darwin, linux nogui, windows.
- GUI, chromium and webkit: usage-rows-hide (new, 5 languages x 1200/560/390;
32/32), usage-card-more 32/32, usage-arrange, usage-all-accounts 24/24,
i18n-keys 4/4.
- usage-cards-hide and usage-hidden-way-back: "de 560" red (no sideways scroll
635 vs 560); the same red on a clean origin/main a5e5f539a, filed as #6294.
Broken by hand: withoutHiddenRows returning its input turns usage-rows-hide
16/16 red in chromium.
Not tried: a real Antigravity account (fixtures only); full suite starts after
the tag.
Settings → Images checked the pick with provider.Resolve, which finds no
model of a key set to Select none (it serves no chat model), so
minimax-cn/MiniMax-H3-Image was refused with "no model ... to generate
images", and resolveDrawing, which the gateway draws through, refused it the
same way. image-01, image-01-live and -Highspeed and the international
minimax provider had the same gap. Settings now asks gateway.DrawerMissingOf
(the Drawers of the provider count), and resolveDrawing falls back to the
provider's Drawers when Resolve finds nothing.
Request shape checked against platform.minimax.io/docs/guides/image-generation:
POST /v1/images/generations (api.minimax.io; the CN key's host likewise), as
draw_minimax.go already sends it.
Run: TestMiniMaxImageModelPickable (both providers; all, none, picks; every
image model; one real draw through the gateway against a fake host) and
TestImageGenAcceptsMiniMaxImageModel, red on the old code (Select none case,
settings check reverted by hand). No real MiniMax account was asked.
The registry gives rea-agents no icon, so the market fell back to the
owner's GitHub avatar. The crawl entry now carries the site's favicon
(rea.tools/assets/favicon.svg, repo is MIT), brandIcons gives the live
registry path the same logo, and serverIcon swaps a stored owner avatar for
it, so servers added earlier get it too.
Run: go test ./internal/library (ok), TestReaKeepsItsOwnLogo red with the
JSON entry and Go changes reverted; gofmt; vet darwin/linux/windows.
Not tried: the full suite, seeing it in the GUI.
Started without its window (at login, `magpie tray`; for the panel; for
a magpie:// link), magpie still made the main window hidden, and its
page kept a WebContent process (~66 MB) until the user opened it, which
after a boot can be never. On the Mac it is now made by openMain the
first time it is shown, the path lightweight mode already takes for a
window it let go (madeAgain). A start that shows the window is as
before, and Linux and Windows are unchanged (Windows' readiness waits
on the main window's page; see #6340 for the panel there).
Measured on mote, real window app, real account sandbox HOME, at 30s:
- `magpie tray`: v0.1.3916 (w33) WebContent 66 MB; this change none.
magpie itself 154-174 MB vs 185-194 MB.
- `magpie panel`: one WebContent (the panel's, 70 MB) where w32 had two.
- a magpie:// link: the main window made later shows on screen in the
same place and size (1540x959 at 190,31, CGWindowList), WebContent
77 MB vs 80 MB.
- Start-up CPU in 30s varies 2-10 s for both builds (start-time jobs),
no difference between them.
Run: go test -run 'Panel|Light|Tray|Main|Window|Dock|Reopen'
./internal/gui (mica, ok, with TestMainOnFirstOpen), go vet ./internal/gui
darwin and GOOS=windows. Every h.main use outside the start is
nil-guarded already (lightweight mode lets it go).
Not run: a real Dock click or tray-menu Open after a hidden start (no
ssh-driven click; both go to openMain/reopenMain, which make it when
nil, as the link start above did).
Claude Desktop on antigravity/gemini-4-carbon failed 403 of 408 requests:
400 "Request contains an invalid argument", 502 empty reply after 170-230s,
and 200s marked failed with output tokens.
Changed, in internal/gateway:
- A tool name starting with a digit or a dash (MCP tools named for an id)
goes to Google as _x_<name> and comes back without it; a property with no
name is left out of the Antigravity schema. Both turned the whole request
away on a live call.
- A MALFORMED_FUNCTION_CALL / UNEXPECTED_TOOL_CALL finish carries the call
in finishMessage; it is now made the call instead of reading as an empty
reply (tokens spent, then asked again for nothing).
- passing(): a 502 empty reply is asked again once, not lastRetries times on
top of the in-place emptyRetries.
Run (mica): go test -run 'TestCodeAssist|TestEmptyReply' ./internal/gateway;
the new tests are red on the old code (names, malformed case).
Live (owner account, gemini-3.8-flash): names with a digit/dash first, a
space, unicode, a slash and an empty property key each 400; 64 and 100 char
names are 200.
Not tried: real gemini-4-carbon (the account lacks it, 404), so the user's
exact 400 is not reproduced; the finishMessage form is Google's documented
shape, not captured from Carbon.
With Settings > Privacy > "Open sign-in pages in the browser" off, the
add-account window shows the link and opens nothing. The Open button sat
in a row under the link; it now sits in the link's own row, right of the
copy button, labelled "Open in browser" until the page has been opened
(then "Open again"). Every account sign-in goes through openSignIn, so
Codex, Claude and the rest follow it; MCP server sign-ins are not
account sign-ins and are unchanged. The default is unchanged.
Also: signin-close's "nothing else was changed" filter ignores
/api/update/using, which the page's in-use ping (10c4dc109) had turned
red on origin/main.
Run (mica): signin-*, i18n*, gui-* GUI files, chromium and webkit, en zh
zh-TW ja de: all pass; TestCoreScriptBudget ok. signin-link-only was red
on the old assets (no Open button in .signlink) and green after.
Not tried: a real Codex sign-in; Windows/Linux webviews.
ul3140773077392 on X: dsh compacts earlier than other harnesses at the same
window, so one global size per model fits none. An agent's sheet (Agents,
the agent's Settings line) now holds "Context window": a size for every
model, or model=size pairs (provider/model, group/<id>, provider/*, a bare
model id, *). Empty follows each model's own window. It is applied in
provider.CatalogFor, the choke point every agent's model list goes through,
so dsh's contextWindow, Codex's catalog and Claude Code's window all read
it, and a window set this way makes Codex/Claude compact at that window
(Entry.WindowSet). Stored in settings.AgentContexts, kept by a general
save (settingsapi); POST /api/settings/agent-contexts and
`magpie model window <agent> [model=size...|off]`.
NovaStudiosss on X: Routing, a group's Edit, Advanced already had "Context"
(the window agents are told). It now has "Compact at" beside it
(Group.Compact; compactSet reads it before the members' smallest), also
`magpie group ... compact=`.
GUI: agentwindow.js, loaded on demand through agentcompact.js so app.js
stays inside its budget (TestCoreScriptBudget passes; the "Context window
in {agent}" label reuses the existing "Context window" key). Every agent
with fields now has a sheet; agent-prefs' Pi expectation says so.
Run at the pushed head, on mote: go vet (darwin; linux -tags nogui;
windows) on provider, agent, cli, gui, settings, settingsapi; gofmt clean;
go test provider, cli, settings, settingsapi, gui (TestCoreScriptBudget
and cli's route table fixed here), agent -run Dsh; node --test agent-window
and group-compact (chromium and webkit, en zh zh-TW ja de, 900 and 420px),
agent-compact, agent-prefs, compact-at. Reds seen identically on a
detached origin/main 4e0026661: agent-prefs webkit "in the panel a
Settings line..." (#6139) and old-webkit "compat.js is the first" / "styles
hold up in Safari 15.0" (#5919, #3403).
Broken by hand, each red then restored: withAgentWindows out of CatalogFor
(TestAgentOwnContextWindow, TestDshOwnContextWindow); the group branch in
compactSet (TestGroupOwnCompactAt); the settingsapi keep line
(TestSettingsSaveKeepsWhatItDoesNotSend); the window row in the sheet
(agent-window tests); compact dropped from the group save
(group-compact tests).
Not tried: a real dsh with a real account (its compaction is dsh's own;
the test reads the window magpie hands it), the full GUI suite (queued
behind another run on mote), Windows and Linux runs of the new tests.
IconForCatalog compared a models.dev id with the preset's whole Catalog
string, so a preset naming several ("stepfun-ai-step-plan, stepfun-ai",
"stepfun-step-plan, stepfun", Xiaomi MiMo's, Azure's) matched none of
them and gave no logo for step-5-preview's catalog. It now also looks in
each preset's list (Provider.Catalogs), after the presets whose catalog is
exactly the id, so Azure's "azure, openai" never takes OpenAI's models.
An empty id gives none (it matched a preset with no catalog).
Run (mica, the load bar on mote): TestIconForCatalogFindsAListedCatalog
red on the old presets.go (stepfun, stepfun-step-plan, azure,
xiaomi-token-plan-cn), green on the new; go test of internal/provider,
internal/agent and internal/gui ok; gofmt; go vet on darwin, linux
nogui and windows.
Not reproduced: the Models page names step-5-preview's maker by its id
(agent.ModelIcon gives stepfun-color for every spelling tried), so this
does not by itself explain the report's icon; it fixes the lookup the
imported-provider path (importurl.go) and the by-catalog logos use.
Not tried: the reporter's own provider list.
Huawei's gateway answers a parameter it can't take (the codearts plugin sent
`stop` as an array; plugin 0.3.15 sends a string) with InferHub.001001005.400
inside a 200. magpie read it as a plain 400 and rested the account, 182
times in the report. The code joins shapeWords, so a member behind it is
asked and the one that refused doesn't rest, as for any request shape a
vendor can't read.
Run (mica): TestCodeArtsInvalidParamIsTheRequests, shapeRefused, custom-tool
tests; go vet on darwin, windows, linux nogui; gofmt clean. The new test was
red before the regex change. Not tried: a real CodeArts account; the whole
suite (started after the tag). The last member in a group still rests as
before, since shapeRefused only applies when another is left.
A program keeping a ledger of its own (a WakaToken plugin) can now read the
requests incrementally: cursor=start or cursor=now, then each next_cursor.
Rows carry a stable content-derived id (same after a restart), origin, and
original_ids (request_id, response_id, client_response_id, message_id,
session_id, native_session_id), each only when the source gave it. A call
read late, a corrected row (same id, higher seq) and a native row replaced by
the gateway's (deleted, with seq) all come through a persisted journal
(usage-feed.jsonl, appended and synced before answering). Cursors magpie
cannot resume from are refused: 400 cursor_invalid / cursor_filter_changed,
410 cursor_expired / cursor_reset. A held key sees only its own rows and
tombstones. Without cursor, offset/limit mode is unchanged.
Also: Record.MessageID (not persisted) from the agent file's message id, and
usageapi's row decoration moved into a namer shared by both modes.
Docs: reference.md, integrating.md, gateway-routing.md, gateway-sessions.md,
site remote.html (en/zh/ja), llms-full.txt.
Run (mote, this tree): go vet darwin, GOOS=windows, GOOS=linux -tags nogui on
usage, usageapi, gateway (gui on darwin); go test -count=1 for
internal/usage, usageapi, gui, gateway: all ok. New tests: resume gets exactly
the new rows, ids and cursors survive a restart, correction keeps the id,
gateway takeover retires the native row, refused cursors, expiry, now cursor,
identical records, and the feed over the gateway (held key, 401 without key,
offset mode). Broken by hand: an unconditional memo made the new-rows test
red (fixed to memo only the next page).
Not tried: real Claude Code/Codex session files, a huge (700k+) history,
Windows run of the tests, GUI browser suites (no GUI file touched).
magpie made the quick panel as it started, hidden, so its page kept a
WebContent process of its own (~65 MB) for as long as magpie ran, for a
user who never opens the panel too. On the Mac it is now made by
panelWin on first open, the path lightweight mode already takes when it
let the panel go (madeAgain names it and hangs it on the tray icon).
Linux and Windows still make it at start: the made-again path hasn't
been run in a real window there.
Measured on mote, real window app, real account sandbox HOME:
- started plainly, at 40s: w32 (main) WebContent 69 MB + 65 MB;
this change 65 MB alone, the panel's process gone.
- started as `magpie panel` (OpenPanel): both show the panel on screen
(layer 101, 439x268 at 0,36, CGWindowList), with 2 WebContent
processes of 65-66 MB each; magpie itself 175 MB vs 192 MB.
- a second `magpie panel` on the Mac only hands over (runningAlready);
it never opened the panel, before or after.
Run: go test -run 'Panel|Light|Tray' ./internal/gui (mica, ok, with
TestPanelOnFirstOpen), go vet ./internal/gui darwin and GOOS=windows.
Not run: Linux GUI vet (no gtk4 dev packages in the WSL distro; the
Linux path is unchanged), a real tray click (no ssh-driven click; it
calls the same togglePanel as OpenPanel and the panel hotkey).
v0.1.3905 read an Ollama model's num_ctx from the Modelfile; maohy915 meant
the name itself ("Qwen-3.8-27b-128k"), which needs no Modelfile.
catalog.NameWindow reads the last part of an id (or of an Ollama tag,
"qwen:27b-128k", "qwen3-128k:latest") when it is a number and a unit alone:
4 to 2048 k, or 1, 2, 4, 5, 8, 10 m, as 1,000 and 1,000,000 like a "[200k]"
mark. Not read as a window: a size (27b, pythia-14m, smollm-135m), a date
(gpt-4o-2024), a quant (q4_k_m), a lone "128k", 1k, 3m, 1.5m, a size
followed by more words.
It is the last word: ListedWindow reads the list's window, then models.dev's,
then the name; a window the user typed (per model or "*") still wins in
windowIn. For a local Ollama list the name replaces the architecture's
maximum (the fallback) but never a num_ctx the Modelfile sets.
Run (mote-run): go test ./internal/catalog ./internal/provider with
NameWindow's edge table, the user/list/catalog order, and an Ollama list
with a fake /api/show; TestNameWindowIsTheLastWord red with the
ListedWindow line returned as 0. Not tried: a real Ollama server; the name's
window is not sent to Ollama as num_ctx.
MiniMax's new image models were missing from the MiniMax provider's image
models: only image-01 and image-01-live were listed. Per
platform.minimax.io/docs/guides/image-generation (and platform.minimaxi.com,
the same ids), MiniMax-H3-Image and MiniMax-H3-Image-Highspeed draw on an
OpenAI-shaped API of their own: POST /v1/images/generations, and
/v1/images/edits with images[].image_url, answered with data[].url (an item
that failed holds only an error and is skipped).
Both are now in minimaxDrawModels (every MiniMax API key, intl and CN) and
drawMiniMax asks them there. The size is the one form the API takes:
WIDTHxHEIGHT when it can draw it (655,360 to 20,000,000 px, within 1:3 and
3:1), else a ratio and a 1K/2K/4K tier, never both (the vendor answers 400).
A mask or markup layer is refused before anything is spent. catalog.ImagesAPI
knows "h3-image" so a relay serving the id is asked on its images API.
Run (mote-run): go test -run 'MiniMax|Draw|Image' ./internal/gateway
./internal/catalog ok; TestMiniMaxH3ImageDraws red with H3-Image taken out of
the list. Not tried: a real MiniMax key (none here); the fake follows the
docs' example answer. Streaming is not used.
The web-search MCP tool gains optional allowed_domains, blocked_domains,
recency_days, images and search_context_size. Codex search (/alpha/search,
codex-rs codex-api search.rs) gets them as the fields web.run has: a
query's domains and recency, image_query for images, settings.filters,
search_context_size, image_settings. Every other searcher is asked the
sites as site:/-site: operators and ignores the rest. Image results read
as pages whose text starts "Image: <url>". Arguments travel in ctx, never
in a request body. Schema text names neither magpie nor a vendor.
Run: real Plus account, curl to /alpha/search with image_query and with
domains+recency+filters: both accepted, image reply shape recorded in
TestImageResultsReadAsPages. New tests (search_scope_test.go) use the
fake backend; go test ./internal/gateway full on mote: only the count
schema tests red (a boolean default), fixed, then -run Search|Codex|
ChatGPT|ImageResults ok; vet linux/windows clean.
Not tried: through a running sandbox magpie end to end; GUI untouched.
Their requests were unnamed in Usage and Routing. FlowDown (wiki.qaq.flow)
sets no User-Agent in its sources (checked Lakr233/FlowDown), so the system's
"FlowDown/<build> CFNetwork/..." is what arrives; Bob (com.hezongyidev.Bob) is
closed source and is matched the same way, by "bob/". Icons are the apps' own
App Store icons at 64px, as color SVGs wrapping the PNG, so app.js's size
budget is untouched.
Run: TestFlowDownAndBobAreClients (agent), see push notes for the rest.
Not tried: real traffic from Bob (its UA is the CFNetwork default for its
executable name, not captured); FlowDown/Bob are not wired as agents, since
neither reads a config file magpie can write.
7050da0a4 (Norethcy on X) made each other Hermes profile an agent
hermes#<name> so the Library could give it its own skills and MCP servers,
and that also put one row per bot, each with its own model pick, in the
Agents list. geekbb: Hermes should have one entry; the bots Hermes made are
Hermes's to manage.
The profile agents stay, as the Library's targets (Norethcy's request keeps
working), but are now marked Agent.Nested: DetectedIn (the Agents list, the
tray panel and every picker built from it) and ClientsIn leave them out.
All and Find still reach hermes#<name> by id.
Existing settings: a model a user set on a profile lives in that profile's
config.yaml and is not touched, so it keeps applying; a profile on magpie
still follows the connected config's model unless it was picked, and a
picked one stays picked (hermes:<path>:picked). Nothing is dropped or
rewritten; what goes is only the extra row and its picker.
Run on mote: go test ./internal/agent ./internal/library; new
TestHermesProfilesAreNotListedAsAgents, red with Nested off and green with it;
GUI hermes-profile-row (rewritten: one Hermes row, no "Hermes ·" text),
hermes-profiles, i18n-keys in chromium and webkit, five languages; gofmt;
go vet darwin, linux, windows for agent and library.
Not tried: a real Hermes with several bots; the full suite before the tag.
kudi3699 again: v0.1.3877's Lapsing faded the lost share across the
week and needed 0.5 points. A WorkBuddy check-in reward is a few dozen
credits (20 of a 5100 pool is 0.39 points, less the fade), so it stayed
under the threshold until its last hours and the half-used account was
still never picked. The plugin side is fine: mover min is 0.2.29, past
0.2.27 that reports check-in rewards' runsOutAt/runsOut, so no plugin
change.
Allowance.Lapsing is now the whole loss in points when RunsOut is within
7 days, none past it (no fade); routes.lapsingMin is 0.1 points. A seat
at 90%+ is still not helped.
Run (mote): go test internal/routes, internal/provider -run
"Lapsing|LeastUsed|Allowance", internal/gateway -run
"WorkBuddy|LeastUsed|Smart|Pace|Routing"; go vet -tags nogui for linux,
windows, darwin on the three packages; gofmt clean. Broken by hand:
lapsingMin back to 0.5 turns TestLeastUsedSpendsSmallCheckInRewardSixDaysOut
red (20 credits, 6 days out, old 50% vs new 20%). Not run: the full suite
(after the tag), real WorkBuddy accounts.
"Test on account..." posted the pick as `account` with provider/test, but
the test action never read it: the body's Account was only used by other
actions, so provider.TestOn was never called from the GUI and every test
went with routing's pick (d96403141 tested TestOn in the provider package
only). Now the action puts req.Account on the context for both the model
tests and the provider's Test, for every kind TestOn covers (keys, pool
sign-ins, plugin accounts), as one handler.
Run: gofmt clean; mote-run go test ./internal/gui (new
TestProviderTestIsPinnedToTheAccountPosted, TestProviderTestStops,
TestProviderInfoSaysTestPicks) ok. Broken by hand: with the TestOn line
back to r.Context() the new test is red (pinned to the second key came
back Account:first, 503 wrong key), which is the report.
Not tried: a real ChatGPT or plugin account pair; their path is the
provider package's, already covered by TestModelTestPinnedToAnAccount.
An upstream that turns Responses into Chat itself (OpenDesign,
deepseek-v4.1-flash) passed output_index on as tool_calls[].index. With a
sentence of text first the calls came as 1,1,2,3, and a client that keeps
calls in an array by index broke on the whole turn. chatTidy's renumber
gave a call its upstream index unless another call had it; it now gives
each call the next index in the order calls start, so 1,2,3 is 0,1,2 and
the 0,0,1 case still is 0,1,2. A stream numbered from 0 in order is
unchanged. The Responses to Chat encoder (chatEncoder) and the Messages
and Gemini translations already count calls, not positions; plugin
streams go through chatTidy.
Run: TestChatTidyNumbersCallsFromZero (text then three parallel calls),
red with the old renumber (frames 1-5 kept 1,2,3), green with it; the
chatTidy tests; go test ./internal/gateway on mote; vet on darwin, linux
nogui and windows.
Not run: the full suite before the tag; a real OpenDesign account.
After Kimi Code's 7-day window reset with nothing used, the card lost its
"Whole ≈ N tokens" until the new week passed 5% used. The reckoning is
every provider's (usage.WithWindowHolds), so the fix is too: carryHolds
keeps the last whole told for each account's window (window-holds.json,
temp-and-rename) and, where the new window is under the floor or has none
routed yet, shows it with holds.prevAt set. The tooltip reuses the past
cycle's "Estimated from the window that began X, read Y" line; no new
label. The new window's own figure replaces it as soon as it can be told.
Run (mote): TestWholeKeptAcrossReset (reset with 0% and 2% used, restart
from disk, same-window under floor, other account, new window with data),
go test ./internal/usage ./internal/provider ./internal/gui (only
TestCoreScriptBudget red until its +10 here), quota-holds and quota-curve
GUI files in chromium and webkit (all 5 languages x 360/1000px for the new
case), gofmt, go vet darwin/linux/windows for usage and provider.
Broken by hand: carryHolds returning early reds the Go test and the GUI
case; dropping the prevAt branch in app.js reds the GUI case.
Not tried: a real Kimi account across a real weekly reset; a full
./... suite before the tag.
The plugin's customer-package-reset list can flag a reset available after
its expireTime; 0.1.61 skips those (plugins fc87cc88). The min makes
keepMovedCurrent update every moved user.
Run: npm view --prefer-online shows 0.1.61; go test -run 'Moved|Mover|Migrat|ZCode'
./internal/provider on mote ok; gofmt clean. Plugin: bun test packages/zcode,
256 pass, the new test red on the old code.
Not tried: a full go test ./... before the tag, nathan's real reset list.
KoiLx0 could not find how to give Claude Code's opus tier a group of its
own. The CLI already does: `magpie claude opus <model>` (also sonnet,
haiku, fable; Claude Desktop the same; omp's roles as `magpie omp small
<model>`), and `<tier> default` puts it back on the main model. Only the
field list hinted at it, and a bare `magpie claude opus` sets the main
model. agentHelp now prints the form with the tiers or roles it takes.
Run (mote-run, sandbox HOME): a probe wired claude on group/opus, then
opus group/fast, sonnet b/gpt-5.5, haiku a/only-a wrote the three
ANTHROPIC_DEFAULT_*_MODEL lines; `opus nope/zzz` is refused ("not a model
magpie serves"); `--haiku x` is refused as an unknown flag. New
TestAgentHelpNamesTheTierForm, red with the help line switched off.
go test ./internal/cli ./internal/agent; vet darwin, linux nogui, windows.
Not tried: a real Claude Code session on the written tiers.
An Ollama provider's list (/v1/models) names no window, so every model
took models.dev's guess or the agent's default and had to be set by hand.
The list now asks each model's /api/show (8 at a time, 6s in all) and
takes the window from the Modelfile's `num_ctx` in "parameters", else the
architecture's model_info.*.context_length. The reply limit is a quarter
of the window up to 32K when neither models.dev nor the user says one.
Compaction follows the window, which Codex and Claude Code already hold
their threshold under. A window or Max output the user typed still wins
(windowIn, replyLimit); a model whose show fails keeps the list as it was.
Scoped to the "ollama" preset; Ollama Cloud is unchanged.
Run on mote: go test ./internal/provider ./internal/catalog ./internal/agent
ok; go vet darwin, GOOS=windows, GOOS=linux -tags nogui on internal/provider;
gofmt clean. New TestOllamaListGivesModelfileWindow (fake Ollama, user-set
window present) fails with the list hook commented out (Context:0).
Not run: full ./... suite before the tag, a real Ollama, Windows/Linux runs.
Qoder 0.2.67 (npm has it, checked with npm view) gives the "Total credits"
window the plan's resetsAt. Routing reads no window set aside, so a Teams
account with plan + shared credits had no renewal and Smart put it behind a
WorkBuddy account renewing in 18 days. Plugin change and its test:
magpie-community/plugins bc9f611e (message there is wrong, see 7b42e404).
Run: mica-run go test -run 'Mover|Moved|Migrate|Qoder' ./internal/provider
ok; gofmt clean. Not run: the full suite, a real Teams account.
4519eea71 (Settings › About's Report a problem) left main red on
ubuntu and macOS at d0a4e0be6 (run 43215704825) in two guards outside
the packages it ran:
- TestNoEagerPackageRegexps: feedback.go's osVersionRE was a
package-level regexp.MustCompile; it is lazyre.New now.
- TestEveryRouteHasACommandOrIsNamed: GET /api/feedback had no command
and wasn't in notYet. It is the window's own (it builds the block the
About row copies), so it goes in notYet as W.
Run on mote at this tree: TestNoEagerPackageRegexps ok,
TestEveryRouteHasACommandOrIsNamed ok, internal/gui -run Feedback ok
(TestFeedbackBlockHoldsNoPrivateFacts), go vet of gui and cli plus
GOOS=linux nogui (cli) and GOOS=windows (gui) clean. Red before: both
guards in run 43215704825.
Hermes makes a profile's id from a non-ASCII name with slugifyProfileName
(apps/desktop hermes-bots/labels.ts): each non-ASCII letter becomes
-u<hex>-, so 个人数据管理 is u4e2a-u4eba-u6570-u636e-u7ba1-u7406. The
Agents list drew that id: "Hermes · u81ea-u52a8-u5316-u673a-u5668-u4eba".
A Hermes profile row (hermes#<id>, and the profile:<id> model field of the
connected Hermes) now reads the name Hermes keeps in the profile's
profile.yaml (ui_meta.hermes-bots.title, then display_name, the order its
Bots roster uses), else the id with those runs decoded: excel--u64cd-u4f5c-u5458
is excel操作员, test-u673a-u5668-u4eba is test机器人. A token below U+0080 or
not a letter or digit is left as written. The id (agent id, folder, `hermes -p`)
is unchanged; the row keeps its "Hermes · " prefix and layout. Every place
the name shows (GUI rows and subtitles, TUI, usage/sessions) takes Agent.Name,
so one change covers them.
Run: TestHermesProfileRowsReadAsNames with the reporter's six ids (red on the
old code: names stay the raw ids, broken by hand); go test ./internal/agent
./internal/library ./internal/usageapi ./internal/tui; vet darwin, linux nogui,
windows.
Not tried: a profile created in the real Hermes app (its source was read, not
run). A hand-named ASCII profile like "uface" (u + 4 hex) would also decode.
dshSettingsRoute marshalled the pi section before and after putting
magpie's routes in, to tell whether anything changed. On a real
account's sandbox (mote, ~/r2278) that was 12.75 MB of the first 45 s's
allocations, every start. The section is now copied, and the copy and
the edited tree compared field by field (yamlSame: every field Marshal
reads, not line and column). Only when the trees differ are both
marshalled, so a tag spelled out on one side still reads as no change.
Run:
- real-account sandbox, alloc profile at 45 s: w28 yaml.Marshal from
dshSettingsRoute 12.75 MB, w30 none; total 547 -> 503 MB.
settings.yaml's mtime unchanged (Nov 10) after the w30 start.
- mica: go test ./internal/agent ok (333s), go vet, GOOS=linux and
windows vet; new TestYamlSameReadsWhatMarshalWrites.
Not tried: a settings.yaml whose section magpie does change, beyond
the existing dsh tests.
In a browser tab (magpie web, or the app served to a browser) api("open")
always ran window.open in the viewer's browser, so a cindy:// import link
opened the viewer's own Cindy while the "added" status is read from the
host's Cindy database. App import links now go to /api/open and webHost
opens them with the host's system opener (openOnHost); http(s) links stay
the page's. Fixes Cindy, Lody, AionUi and Cherry Studio rows alike.
Run (mote, at this head): go test -tags nogui ./internal/gui ok; go vet nogui,
windows, darwin ok; gofmt clean; GUI import-web-host, import-row, click-scroll,
i18n-keys: 27 pass / 0 fail in chromium and in webkit.
Broken by hand: old app.js, new import-web-host test in chromium: red (the
page tried to launch cindy:// itself, no /api/open request). The Go test does
not compile on the old web.go (no openOnHost).
Not tried: a real remote host with a real Cindy; the old-code run in webkit.
6055f626e (v0.1.3899) fit the budget at fd9033cbf, but the base moved
under the rebase (a2feeb11a, 4519eea71) and TestCoreScriptBudget read
1264422 against 1264309. withScheme was already cut to one expression
and respellURL's /i flags dropped; nothing on the page has a plugin to
move to, so the budget rises by the 113 bytes over, as the entries
before it did. Run: TestCoreScriptBudget ok on mica.