65cb76ca2e2b59892ecb41fd3fcf6dbe07dde1c3
3366
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
5241308212 |
settings: a day can start at 0 to 6 o'clock (ssharpcc on X)
Settings > Usage > "Day starts at" (dayStart, 0 to 6, default 0; also magpie settings set dayStart 4). With 4, a call at 01:30 counts toward the day before: the Usage page (summary, charts, heatmap, ledger day filter, hour labels of Today) and the daily and monthly key caps (access.Window, provider.SpendCap.Window). internal/dayzone makes a time.Location whose midnight is the real day's hour:00 (TZif built from the zone's own offsets, same DST instants), so every place that cuts days by a Zone's midnight follows without edits; usage.Zone returns it and the "now" reads use it too. Run (mote): go test usage, settings, settingsapi, access, provider, gui, dayzone, also with TZ=UTC and TZ=Pacific/Kiritimati; gofmt; go vet darwin, linux nogui and windows; day-start, currency, number-units and i18n-keys GUI files in chromium and webkit, en zh zh-TW ja de; TestCoreScriptBudget. Broken by hand: TestDayStartsAfterMidnight red with 9 failures when the hour is ignored. New tests: dayzone over 5 zones x hours 1/4/6 x two years of days, usage, limit window, spend-cap window, day-start GUI. Not tried: a real log history in a real window. Not shifted, filed as #6314: the Sessions page, TUI sessions filter, davsync shared per-day files, gateway_sessions day keys, credits_daily. Rows are never stored in the shifted zone. |
||
|
|
c5b9e448a8 |
gui: Codex's settings lines say less and say what a choice does (siantgirl on X)
siantgirl found the Codex settings block hard to follow when connecting
Codex to DeepSeek. Three lines were the cause: Codex subagent model (a
paragraph on resumed subagents and the pick rules), Codex subagents on
any model (named multi_agent_v2) and Long conversations (a list of which
models are and are not capped). Each now says what it does in one
sentence: the lead's pick or its own model, pick one here for every
subagent; a GPT lead can start subagents on other models, new threads
only; compact at 272K or the size typed, magpie's models only. Strings
changed in app.js, index.html and en, zh, zh-TW, ja, de, with the same
placeholders. No layout change.
Run (mica): codex-subagent-model 20 pass 0 fail (its pinned lines are red
on the old text), i18n-keys 4/0, gateway-mode 6/0 and the compact,
settings-general, agent-details-ready, context-tune and lang files ran;
agent-prefs 46 pass 10 fail, the same 10 on origin/main
|
||
|
|
d964031412 |
provider: a model's test can be sent to one chosen account or key (tmr11235 on X)
A provider with two or more accounts or keys that are on now offers
"Test on account..." in a model chip's right-click, an app menu (never a
native select) of those accounts' or keys' names. The pick is posted as
`account` with provider/test and pins the test (provider.TestOn,
accountNamed / keyNamed; an unknown or switched-off one is an error row,
not a silent fallback). Every result now names the account or key it went
to (Result.Account, set in probe), and the status line ends " - <name>"
for such a provider, whether the test was pinned or routing picked.
Test models and the CLI still test with routing's pick.
Core script budget raised 1,263,333 -> 1,263,700 (+367): the model chip
menu is core code and there is no page to move it to; the PLAY icon
literal was folded into one constant and the status call tightened first.
Run: gofmt clean; mote-run go test ./internal/gui ./internal/provider ok
(new TestModelTestPinnedToAKey, TestTestPicksNeedSeveral,
TestModelTestPinnedToAnAccount); model-test-account.test.cjs 10 of 10
(chromium and webkit, en zh zh-TW ja de) on mica. Broken by hand: with
the menu entry disabled the GUI test is 0 of 10. GUI batch model-*,
provider-*, i18n-*, gui-*: reds are the same on origin/main
|
||
|
|
36eebea136 |
update: the header's Update pill waits until it is news (certhon520, jkd6688, Yuyuaneth, milianxinqi on X)
A release comes every few minutes, so a downloaded update was always
waiting and the pill (window and tray panel) never went out. /api/update
now says "quiet" while this version has been behind for less than 3 days
(update.Quiet, the Stable channel's soak; counted from the first newer
version seen, kept in update-behind.json for the version running), and the
pill stays away. An urgent release ("**Urgent release:**" in the latest's
notes or any release between, fetched once per check) lights it at once and
a dismissal does not hide it. The x dismissal now also starts the quiet over,
so the pill is not back with the next release. Settings > Version, the tray's
Restart to update, quit and Restart automatically are unchanged. Plugins'
dot is for plugins that do not update by themselves; left alone.
Run (mote): go test ./internal/update (ok), go test -run Update|Asset|Budget|Script ./internal/gui (ok),
gofmt, go vet darwin / linux nogui / windows clean, update-quiet.test.cjs 21/21 in chromium and
webkit across en, zh, zh-TW, ja, de, panel and window. Broken by hand: dropping
!u.quiet in app.js (11 red), forcing Quiet=false in jsonIn (TestUpdateQuietUntilBehindAWhile red).
Not tried: a real 3-day wait, and the urgent range lookup against the live site.
|
||
|
|
2a1111cbab |
library: an agent's profiles are one chip on a row, picked in the app menu (Yanzhongixuy on X)
With several Hermes profiles the Library listed each as its own icon on every skill/MCP row (~20 identical glyphs). Profiles of one agent family (hermes#, omp#, claude#, qwenpaw#, WSL variants too) now collapse into one chip with a count; a click opens the app menu (openProtoMenu, multi-tick, live) to pick profiles one by one. All still toggles every profile. Rows only; the By agent view is unchanged. Other multi-profile agents (omp, claude, qwenpaw) had the same problem and go through the same code. Run on mote at the branch head: library-profile-chip.test.cjs (new, 12 cases, chromium + webkit, en/zh/zh-TW/ja/de), red 12 of 12 with profileChip broken by hand; library-*, group-skill-chips, skill-*, mcp-*, i18n-*, hermes-*, omp-*, project-* GUI files: all green except library-loading (Claude plugins tab, already #6204) and one webkit billion-context card case that passed alone (load flake). Not tried: a real Hermes install with 20 profiles, Linux WebKitGTK. |
||
|
|
727e236378 |
gateway: a management API for providers, accounts and gateway keys, for a key set to manage (ljayic on X)
ljayic asked for a complete, stable management API so nothing needs a hand-edited file. /v1/magpie/admin/ now serves the app's own /api handlers (providers and their keys and accounts, OAuth sign-in start/poll/cancel, gateway keys, account groups) to a gateway key set with `magpie gateway-key admin <id> local|any`. Routes and actions not in gui/admin.go's adminRoutes are 404, so a provider's saved key, a gateway key's secret, sign-in export and actions on this computer's apps are not served; "admin-key" is not served either, so the API can't raise its own caller. Sign-in returns the vendor's page and code, opens nothing, takes no password. Guard (gateway/admin.go), in order: any Origin or Sec-Fetch-Site/-Mode is 403 with or without a key (Origin null, foreign, listed, *.localhost, an app scheme); no key 401; a key without Key.Admin 403; from loopback the Host must be ownHost (a rebound page's GET has no Origin); from the network the key must be "any"; a proxied request counts as remote. Key.Admin is dropped (adminOf) for a read-only, Browser, issued, expiring or default key, and setting read-only clears it. The route is in readOnlyRefused and keySlotFree. Docs: docs/reference.md "Management API", gateway-routing.md, and the remote page in en, zh and ja. Routing Groups, sign-in export and a GUI switch for the level are left to #6307. Run (mica, the worktree before the rebase onto 9 newer commits): go vet of access, cli, gateway, gui (darwin), GOOS=windows vet of the same four, GOOS=linux -tags nogui vet of access, cli, gateway; gofmt -l empty; go test -count=1 -timeout 45m ./internal/access ./internal/cli ./internal/gateway ./internal/gui: all ok but TestKeySlotEveryRoute, which named the new route and is fixed here, then it and the read-only, admin and guard tests pass again. After the rebase the same tests ran again. Broken by hand, each red in TestAdminAPIGuards: browser check off (a browser case served), Admin check off (a key without it served), Host check off (a rebound name served), the "any" requirement off (a local-only key from the network served, and a proxied request). Tests: TestAdminAPIGuards (no key, unknown key, non-admin, read-only, local/any, x-api-key, 8 browser headers x 3 callers, rebound Host, proxy, no handler), TestAdminKey (access: levels, read-only, Browser, issued), TestGatewayKeyCLIAdmin, TestAdminAPIGatewayKeys / Providers (a canary key is never told) / SignIn, TestAdminRoutesEveryAPIRoute. Not tried: a real sign-in against a vendor through the API, a request from a second computer on the LAN, the GUI suite (no page or app.js changed), a Linux/Windows run of the new tests. |
||
|
|
cfd3367df8 |
usage: a request's details show its service tier (JackyFill on X)
The ledger has kept each call's service tier since #1784 (tier_asked, tier_sent, tier_served in the log, the CSV and the JSON), but the Requests page never showed it. A request's details now have a Service tier line: "asked X", then "sent Y" only when it differs, then "answered Z" only when the reply named a tier. A call with none shows no line. Row flag bits are untouched: the tiers are string slots, so no bit is taken. Run, on mica: new ledger-service-tier.test.cjs (3 rows: all three tiers, asked+sent without an answer, none) in chromium and webkit, en zh zh-TW ja de, 12 of 12 green; with the add("Service tier") line removed by hand it is 0 of 12; i18n-keys caught a duplicate "Service tier" key (the core table already has all four languages), which is removed; ledger-*, i18n-keys, i18n-en-no-cjk and gui-* files rerun green after (ledger-cache-hit chromium was red once in the first batch, green on rerun in the same batch's second run). Not tried: a real Codex priority call end to end (the gateway side is #1784's); the full suite runs after the tag. |
||
|
|
4940aed1d8 |
gui: times follow the system's region, not the webview's (iXerol on X)
A Mac set to English with Japan as its region (AppleLocale en_JP, 24 hours) showed 12 hours: with neither AppleICUForce24HourTime nor AppleICUForce12HourTime set, the page formatted in WKWebView's navigator.language (en-US). boot.js now carries the system's own tag as "locale" (macOS: `defaults read -g AppleLocale`, with @rg= winning; Windows: Control Panel\International LocaleName; Linux: LC_ALL, LC_TIME, LANG), and intlLang takes it over navigator.language for English. The two forced clock switches still win over the region's clock. A browser tab keeps its own locale. Run (mica): go test -run 'HourCycle|LocaleTag|Boot' ./internal/gui ok; gofmt -l clean; go vet darwin, linux nogui, windows on internal/gui clean; GUI hc-clock, reset-clock-formats, dates-gui-lang, i18n-keys, header-relang, desktop-lang in chromium and webkit: 0 fail. Real AppleLocale on this Mac reads en_SG. Broken by hand: intlLang back to navigator.language turns the new en-JP case red in both engines. Not tried: a real Windows or Linux session with a regional format that differs from the display language; full suite starts after the tag. |
||
|
|
c1a91b5a52 |
agents: Mistral Vibe is an agent, and a Library target (alterxyz4 on X)
Vibe (mistralai/mistral-vibe, the `vibe` CLI) keeps its settings in config.toml in $VIBE_HOME, else ~/.vibe. magpie now connects it: a [[providers]] entry named magpie (the gateway's /v1, api_style openai, backend generic), one [[models]] entry per catalog model aliased magpie/<provider>/<model>, and active_model set to the alias, with the previous value stashed and put back on Disconnect. Vibe reads keys only from the environment, the keyring or ~/.vibe/.env, so the key naming Vibe goes in the provider's extra_headers as an Authorization header; nothing is put in the user's environment. Avibe's `vibe` command is turned away by binNot. Library (#5595): instructions are $VIBE_HOME/AGENTS.md and skills $VIBE_HOME/skills (vibe/core/system_prompt.py, vibe/core/config/harness_files/_paths.py, read at 3.1.2). VIBE_HOME is in appdir's usable list and agentenv. README (en, zh), docs/reference.md and docs/subsystems/agent-wiring.md list it; the restart notice is in zh, zh-TW, ja, de. Run (mica, sandbox HOME): - go test -count=1 ./internal/agent ./internal/library ./internal/appdir ./internal/agentenv ./internal/gateway ./internal/gui: ok. - gofmt -l clean; go vet darwin, linux -tags nogui, windows on the touched packages: clean. - Real vibe 3.1.2 (uv tool install mistral-vibe) with the file shape magpie writes, against a fake OpenAI upstream: the alias with slashes resolves as active_model, the request goes to /v1/chat/completions with model kimi/k2, Authorization: Bearer <key> from extra_headers and user-agent Mistral-Vibe/3.1.2. - GUI: agent-notice-lang, i18n-keys, i18n-en-no-cjk, gui-zh-tw pass. - Broken by hand: vibeMine returning false fails TestVibe, TestVibeOwnModelTakesMagpieOut and TestVibeSyncKeepsTheirs. Not tried: the file written by the built magpie binary itself (the unit tests write it through the same code), Windows runs of the new tests, a Vibe signed in to Mistral with its own models alongside. gui-de and gui-ja "every zh string" were red on the base for the "{agent} isn't installed here" string, not for this change. |
||
|
|
19a698d0f9 |
Plain wording for the held-compaction error and the account-switch hint (ccw1942796 on X)
The error magpie gives Codex when a conversation's compaction has failed 3
times now says what happened, how long magpie waits and what to do:
"Couldn't compact the conversation: <model> failed N times in a row (last:
<vendor's reason>). magpie waits <t> before asking it again. To compact now,
switch this conversation to another model." It is a 400 back to Codex
(codexCompact), never sent upstream as prompt.
The hover hint beside "Switch {agent}'s account automatically" is two short
lines per agent instead of three long ones, in en, zh, zh-TW, ja and de.
It still says it is the agent's own sign-in that moves, that the agent sends
the requests, and that sharing an account is against the vendor's terms.
Run on mote: gofmt -l, go vet (darwin, linux, windows) on internal/gateway,
go test -run Compact ./internal/gateway, and in chromium and webkit
i18n-keys, i18n-en-no-cjk, keep-login, pool-ends, sign-in-moves (84 of 84
GUI subtests ok, en and zh). The hold test now asserts the new wording.
Not run: the full suite before the tag (started after it); ja, de and zh-TW
screenshots of the hint; breaking the new assertion by hand (the old text
lacks the asserted words).
|
||
|
|
8a705a5e5f |
tray: the menu bar's counts follow Settings' 万/亿 units (jipairamen on X)
The tray's totals (the Σ cell and the tooltip) always said K, M and B. trayCount now takes the tray's language and, in zh or zh-TW with chineseUnits on, says 1.33 亿 / 68.1 万 (億 and 萬 in Traditional) as the page's fmtN does; English and the other languages are unchanged. The tray is also read again when chineseUnits changes, with no restart. The TUI and the CLI are English-only and the setting means nothing there (settings.ChineseUnits: "when magpie speaks Chinese"), so they keep K/M/B. Run (on mote): TestTrayCountFollowsChineseUnits, new, red with the unit branch switched off by hand (all 8 cases and the total card), green after; go test ./internal/gui ./internal/settings ok; go vet darwin, linux (nogui) and windows clean; gofmt clean. Not tried: the live menu bar (never run the live binary). |
||
|
|
223b57ffa3 |
gateway: a turn waiting for its account's turn near a usage cap says queued, not routing (tmr11235 on X)
tmr11235 (Pi, Codex subscription, gpt-6.1-sol): the second request sat in
"routing" until the one before it was answered. Two Pi turns at once on a
Codex sign-in are both out at the vendor at once (HTTP and websocket
upstream, TestPiTwoTurnsOnCodexAreOutTogether, green on the old code too),
and no concurrency cap is set for Codex by default. What does hold a
second turn is an account within 5 points of a usage cap the user set
(nearCaps, one turn at a time). That wait comes before the first try is
begun, so the row had no try and read "routing", and the wait wasn't a
known one for the unrouted watch either (it could end the request as
unknown after 30s).
The wait now sets the route's Phase to "queue" and the request's phase
(notePhase, so it is a known wait). The Routing page says "queued…" and
its explanation says what it waits for, in en, zh, zh-TW, ja, de.
The one-turn rule itself is unchanged: it protects a cap the user set.
Run (mote): TestNearCap*, TestNearCapWaitSaysQueued, TestPiTwoTurns*,
go test ./internal/gui, routing-queued/routing-masking/routing-wait-dot
in chromium, routing-queued in webkit, i18n-keys, i18n-en-no-cjk, gofmt,
go vet darwin/linux nogui/windows of internal/gateway.
Broken by hand: showQueued replaced by a no-op, TestNearCapWaitSaysQueued
red ("never: the waiting turn's route says queued").
Not tried: a real Codex account near a real cap; full suite is started
after the tag.
|
||
|
|
b21eefadac |
gui: a provider's models leave out the listed window, reply limit and merge name that equal what is in use
/api/providers sent, for each of a real account's 875 models, the
window and reply limit the vendor listed even when they were the ones in
use (851 and 786 of them), and the merge name when it was the model's
own id (241). Every reader already falls back to context, output and id
(modellimits.js `m.listed || m.context`, `m.listedOutput || m.output`,
app.js `"listed" in m ? … : m.context` and `m.merge || m.id`), so these
are left out.
TestProviderModelWindowSaid now expects no listed window when it is the
one in use; with the drop removed by hand it is red ("[1000000
1000000]").
Run: go vet + go test ./internal/gui on mica (ok, 124.9s); GUI files
that read these fields, both engines, on mica.
|
||
|
|
5dd63727ce |
gui: a state sends each option once, its lists as indexes into them
After |
||
|
|
647071f2b9 |
gui: a state shares the option lists that differ only in their own agent's fastFor
9ed6a312b sent each fields' option list once, but the real account's
/api/state only went from 689,949 to 627,061 bytes: each agent's
catalog (231 options, ~51KB) marks ~34 of them fastFor its own id
("crush", "droid", …), so no two agents' lists were alike. shareOptions
now sends a fastFor naming the field's own agent as "*" before it
compares, and api() in app.js gives each agent its own copy of those
options with its id back, so a fast pick for one agent still marks that
agent's options only (setFast matches on fastFor).
setFast's three loops are one mark() over every list, the picked option
included, which pays for the expansion within the core script budget
(1,263,333, not raised).
Run, at this tree on mote:
- go vet ./internal/gui; go test ./internal/gui: ok (TestCoreScriptBudget
ok).
- state-option-lists.test.cjs: 16/16 (Chromium and WebKit, en zh zh-TW
ja de at 1000px, en zh at 420px), with a new check that codex's fast
leaves crush's alone on a shared list.
- Broken by hand: without fastForSelf, TestStateSendsEachOptionListOnce
is red (5 lists, want 4); without the "*" map in app.js the GUI test is
red ("the kept state's lists put back").
- Real account (sandbox HOME with its data), magpie-w18: GET /api/state
346,210 bytes (689,949 before 9ed6a312b, 627,061 after it), 30,390
gzipped; ?last=1 346,222.
- fast-ultra.test.cjs and fast-pick are red with this app.js and with
the one before 9ed6a312b alike: #6201 (an extra POST
/api/update/using). With that one POST left out of their record (not
committed), both pass 36/36 in Chromium and WebKit with this setFast.
Not tried: the whole GUI suite (mote over its cores); a real window with
this state. Lists of 231-255 options that differ in their first
entries are still sent whole (17 lists, 327KB); an option table is next.
|
||
|
|
57443ac5f5 |
gui: a state sends each fields' option list once
With real accounts /api/state was 689,949 bytes, and agents[].fields carried 707,970 of them before escaping: the model field's options, the whole ~51KB catalog, went once per agent, 13 of 16 agents alike (crush and dsh twice). Each window shown, each click that answers with a state and every start's kept state (agents-state.json) encoded, sent, parsed and held it again per agent. writeStateJSON now sends each list once, in the state's last field optionLists, and a field names its list by "list" (from 1) in place of "options" (shareOptions). The lists are encoded one by one, as the agents are, so no buffer grows to their size. The kept file is written the same way, so its sum still matches. api() in app.js puts each field's list back before anything reads the state, so every reader sees the state as it was; the agents now share one array, which setFast already treated as one model in every agent's lists. POST answers that write the state with writeJSON are unchanged. Run: - go vet ./internal/gui; go test ./internal/gui (mote) ok. - TestStateSendsEachOptionListOnce: red with shareOptions returning s unchanged (0 lists sent), green with it. - state-option-lists.test.cjs, Chromium and WebKit, en zh zh-TW ja de at 1000px and en zh at 420px: 16 of 16. Red with api()'s line taken out. |
||
|
|
0af73f42b4 |
gateway: an app update asks its own background service to restart, and the page no longer calls it another program (Norethcy on X)
After an app update the service (`magpie daemon`, ~/.local/bin/magpie) ran on as the old version until its own look at the disk found the gateway idle, and `magpie daemon restart` by hand showed the app "Port 3425 is in use by ~/.local/bin/magpie (pid N): quit it" while the new service came up. - PortHeld.Own: a holder that is a magpie running this install's program (same file, symlinks followed) is marked; the Gateway card then says "Starting the gateway…" instead of the port-in-use error. - The app asks an older service of its own install (the pid the service manager reports, program from the unit/plist: daemon.Program) to restart, once per process, through gateway.RestartPath, as `magpie update` does: it restarts into the new version once idle, bounded by its drain, under the same service manager. Run on mote: go test of the new tests in internal/gui, internal/daemon, internal/gateway; go vet darwin, linux nogui, windows; gofmt; gateway-* and i18n GUI files in chromium and webkit. Broken by hand: dropping the Older check makes TestNudgeAsksOwnOlderDaemonOnce red. Not tried: a real app update over a real launchd service. The restart is an in-place re-exec of the service, not a socket handover, so the port is closed for the service's start-up. GUI (mote, chromium+webkit): gateway-port-holder, older, skew, takeover, port, i18n-keys, i18n-en-no-cjk 36 of 36 ok. All gateway-* files: 30 reds, all in gateway-card (shares on the network, #6267) and gateway-key-arrange (420px, #6268); the same 30 with client.js reverted to origin/main, so not from this change. Not tried: a real app update over a real launchd service; the daemon re-execs in place, it is not a socket handover. |
||
|
|
cc0d9c8b04 |
provider: a Gemini base typed without a version is kept as typed (JNDliuliuM on X)
GeminiBase gave every bare host /v1beta on Save (normalize), so a relay's
root typed in the editor came back as …/v1beta when reopened. Only Google's
own bare host (generativelanguage.googleapis.com) is given /v1beta now; any
other URL stays as typed. The detection (DetectBase), which proposes a base
rather than keeping one, still adds it (geminiVersioned). Siblings checked:
OpenAI/Responses bases are only trimmed on save (no /v1 added; fixV1 is the
|
||
|
|
04e38e6045 |
gateway: a reorder moves only its own provider's conversations, and tests forget it (#6249, #6262)
|
||
|
|
d31988c957 |
gui: the Mac's plain title bar is done as the main window is first shown, not at start (eating_dream on X)
On macOS 26 an update's silent relaunch (open -n -g) deadlocked the new process's main thread: ApplicationStarted ran plainTitlebar -> insetLights -> toolbarRounder, which allocates a temporary NSWindow and releases it while the hidden background launch is still inside FBSWorkspaceScenesClient createSceneWithIdentity. Every InvokeSync waiter (tray usage, lighten, the resize/move timers) then blocked behind it, so the old tray left and the new one never came up. The Mac's title bar is now done in reveal, just before the window is first shown (a user action, never inside the launch); Linux keeps it at start. Their other two suggestions need no change: keepAt already returns while h.placed isn't the window, and with the main thread free the ready waiters no longer pile up. Run: gofmt; go vet darwin, linux nogui, windows; go test ./internal/gui on mote (ok, 136s). New TestMacTitleBarNotDoneAtStart, red with the call put back in ApplicationStarted and red with it removed from reveal. Not tried: the real deadlock. It needs macOS 26's hidden relaunch through LaunchServices from an updated bundle; mote (macOS 27) was not driven that way, so it is not shown not to reproduce there either. The full suite was not run before the tag. |
||
|
|
f80cd3360a |
sessions: the Context tab names a ZCode session as the Sessions page does (Flandern1211 on X)
The Usage page's Context tab keyed each session by the id the gateway saw
and filled a missing title from the listed sessions by that id exactly. A
ZCode request names its session by the bare id (its database gives sess_ in
front), and a subagent's own session is no listed row (ocRoots files it under
its parent's), so the tab drew the id's first eight characters for every
ZCode session.
|
||
|
|
b70563ec6b |
gateway: a reorder of the pool counts at a conversation's next turn (Richyisaflower on X)
Auto affinity kept a conversation on the account that answered it by its cache, so an account moved down (or another made First) still took the next turn. SetAccountOrder, the login switch and the CLI switch now call provider.NoteReordered; affine drops a stick last answered before it, in Auto and not within a turn (Session and Strict keep it). Run on mote: TestReorderedAccountsTakeTheConversationAtItsNextTurn red with the check off (k1 k1 k1), green with it; go test internal/provider, internal/cli ok; internal/gateway -run Affinity|Ordered|Stick|Reorder|Strict|Conversation|Fallback ok; go vet darwin, windows, linux nogui ok; gofmt clean. Not tried: a real Codex account; GUI tests (no GUI file touched beyond the switch handler); the full suite (started after the tag). The image-quota half of the report is not fixed: no real refusal body was available. |
||
|
|
32c592d3fb |
usage: a 5-hour window draws its current cycle only, not a comb of drops (@xxxxxthhh on X)
The "Left over time" curve drew one descending segment per recorded cycle of every window. Over the cycle range of a weekly window, the 5-hour window therefore showed a run of sawtooth drops, each resetting to 100% and falling again. @xxxxxthhh: "the 5-hour window's lines dropping one by one are too messy, like bugs crawling". Chosen: a window far shorter than the span (the existing `short` case in drawQuotaPlot) keeps only the points of its current cycle, so the plot has one drop at the right edge and the legend carries its figure. Past 5-hour cycles are not drawn faint or banded: they say nothing the weekly line beside them doesn't, and a band or a second style would add marks to a 52px plot. Longer windows, the 2-day range, the picked past cycle, the colours and the layout are unchanged; the short line is now one segment, so it is a little firmer (1.25px, .7) than the faint comb was. Run on mote: quota-curve.test.cjs in chromium and webkit (en, zh, zh-TW, ja, de) with its 5-hour assertion now one subpath; it fails on the old assets (two subpaths). Before/after screenshots in magpie-wt/leftover-chart-scratch/shots. Whole GUI suite and internal/gui Go tests are run after this commit; see the follow-up note. Not tried: a real account's week of readings. |
||
|
|
1e2857730a |
routing: a group's right-click menu has Remove (jimlee0824v2 on X)
Remove was only at the foot of the expanded card. The row menu now ends with
it, set apart, running the card's own groupAction("delete"): the same
question first, the same groups/delete call.
Run (mote): group-menu-remove (new, 10 tests: chromium and webkit, en zh
zh-TW ja de; cancel posts nothing, confirm posts groups/delete and the row
goes), group-share, group-duplicate, i18n-keys, i18n-en-no-cjk: 38 of 38.
group-*, route-menu-pointer, click-scroll and panel-routing* run next.
Broken by hand: with client.js at HEAD the new test is 0 pass, 10 fail.
Not tried: the real app; the item reuses "Remove", already in every language.
|
||
|
|
80dcd34729 |
codex: connect Codex through codex -p magpie alone (hpnjstar on X)
The Codex agent gets an "applies to" field: All of Codex (as before) or "codex -p magpie only". In the second mode magpie writes <CODEX_HOME>/magpie.config.toml (model_provider, model, effort, model_catalog_json, its own [model_providers.magpie]) and a catalog beside it, and never touches config.toml: its top-level model_provider, model and openai_base_url stay the user's. Disconnect deletes that file and magpie's catalog (kept if the user added to it). Plain `codex` keeps its own provider. Codex 0.165 reads `--profile NAME` from NAME.config.toml and refuses -p while config.toml holds a legacy [profiles.NAME] or profile = "NAME", so this is the file form, not a [profiles.magpie] table. Codex without profile files (older than the May 2026 removal of legacy profiles) isn't served in this mode. The choice changes only while Codex is disconnected, so the two wirings never share a config. Only magpie's models are offered in this mode; no joining, failover or subagent fields. Run (mote, at the rebased head): go test ./internal/agent ./internal/gui ok; gofmt clean; go vet darwin, linux nogui, windows ok; GUI i18n-keys, i18n-en-no-cjk, gui-zh-tw, codex-signin-always, agent-connect, agent-disconnect in Chromium and WebKit. Real codex 0.165.0 in a sandbox CODEX_HOME against a fake server: `codex -p magpie` sent one request (Bearer magpie, model fake/m1); plain `codex` sent none; config.toml was byte-identical after connect, effort change, sync and disconnect. Broken by hand: letting scope change while connected turns two TestCodexProfileOnly tests red. Not tried: a real account, the Codex app, the GUI row in a live window, an older Codex without profile files. gui-de and gui-ja "has every zh string" are red on main without this change (#6234). |
||
|
|
0587f1da90 |
gui: the visibility test counts a hiding only once magpie's signal is in (#6203)
TestPanelHiddenByWailsMarksPageOutOfSight failed on mica (macOS 26) with marked=false play="running". WebKit fired a visibilitychange of its own as the panel ordered out, hidden by its own value, before magpie's hide signal reached the page. The page took it for the hiding, sent /hidden, and the host showed the panel again before the page was ever told. The page now records a hiding, and sends /hidden, only while magpie's signal says hidden (outOfSight). Test-only change; app code untouched. Run on mica at this tree: - before: -count=6 of both window visibility tests, 4 failed, all marked=false play="running" - after: -count=8 of both, ok (16 of 16) - broken by hand: pageHiddenJS = "void 0" (no hide signal) -> both tests red, "timed out waiting for the page to see itself hidden"; restored |
||
|
|
8ea5f67417 |
gui: an opened picker turns its chevron only, not the effort bars beside it (xMopf7RF on X)
.sess-pick.open svg rotated every svg in an opened picker, and the effort icon (four bars, an svg) sits in the same button as the chevron, so Library -> Memory -> Learn from conversations' reasoning-depth button spun its bars while the menu was open. The rule now takes the button's direct svg, the chevron. Every other sess-pick that opens a menu draws only a direct chevron svg, so no sibling lost its turn. Run: library-memory.test.cjs in chromium and webkit on mote (22 of 22 ok), with a new check that the bars' computed transform is none while the picker is open and the chevron's is not. On the old CSS the same file was 12 of 22 red. Not tried: the real Linux app, the other 10 sess-pick GUI files (none reads the chevron's transform; grep for rotate(180 in tests is empty). |
||
|
|
c14fa0ce93 |
Bring back 919780414 and 88d2962e0, which 698ed4adb undid
|
||
|
|
698ed4adb5 |
gateway: a busy port names the program holding it, and Tailscale's serve gets its fix (pluoki on X)
The Gateway page, `magpie serve` and the app log said only "port N is held by another program". pluoki's was `tailscale serve` on the same port number. proc.PortHolder reads the holder (lsof on the Mac, /proc on Linux, Get-NetTCPConnection on Windows). Tailscale's daemon is root's and often unreadable, so `tailscale serve status --json` is the fallback for the port. gateway.NoteHeld / PortHeld.Sentence say who holds it, and for Tailscale give `tailscale serve --https=<other> http://127.0.0.1:<port>`. Shown in the `magpie serve` standby line and bind error, the app log, `gatewayHeld` in /api/state (Gateway page) and Start's "taken" answer, in en, zh, zh-TW, ja, de. A holder that can't be read says nothing; the old wording stands. Nothing is killed or touched. Run: gofmt clean; go vet darwin, linux nogui, windows (mica); go test ./internal/proc ok; targeted holder/gateway tests on macOS (mica), Windows (win-run) and Linux (wsl-run); parser tests with real lsof output; GUI gateway-port-holder, gateway-takeover, gateway-older, gateway-skew, gateway-port, i18n-keys, i18n-en-no-cjk in chromium and webkit. Real run on WSL: a holder named tailscaled on the LAN address with magpie on 0.0.0.0 gives the Tailscale sentence at the bind error; a Python holder on loopback gives "held by python3.12 (pid N)". Broken by hand: each fix reverted in turn, its test went red. gateway-card.test.cjs is red on origin/main too (#6029). internal/gateway, gui and cli package runs were still going at push; the full suite follows the tag. Not tried: a real `tailscale serve` (changes live config), a real Windows holder end to end, the bind-error path on macOS (a wildcard bind coexists with a specific one there). |
||
|
|
9197804144 |
gui: Usage allowances can be shown as a table beside the cards (zysicyj on X)
With a dozen accounts the packed card grid is hard to scan. The Usage page's Allowances header now has a Cards / Table switch (a segmented control, remembered per user in localStorage "quotaView"; the default stays Cards, and nothing is written until the user picks). The table has one row per account: subscription, account, then the four most common windows (used % with a bar and the reset time), an Other column for extra windows and balances, sortable by any column (click again to reverse, a third time to clear; rows with no value stay last). Balance-only and error rows span the window columns. Same data and helpers as the cards (quotaFill, resetClock, quotaWho). At narrow widths the table box scrolls, not the page. The code is a lazily imported quotatable.js, so app.js stays inside its code budget. "Cards" and "Table" are translated in zh, zh-TW, ja and de. quotatable.js is listed in old-webkit's lazy-script exceptions; docs/subsystems/gui-shell.md has a paragraph on it. Run (on mica/mote, Playwright): the new usage-quota-table.test.cjs, 22 of 22 in chromium and webkit, in en/zh/zh-TW/ja/de, at 1100px and 420px (14 faked accounts: default is cards and saves nothing, row count and figures, persistence across reload, sort cycle and account sort, no page overflow, back to cards). TestCoreScriptBudget, i18n tests 8/8, gofmt, go vet for darwin, linux -tags nogui and windows. Whole GUI suite (make test-ui) at 1ad0f4cc4+this: started before the tag; first 890 results green except account-arrange (#6010, red the same on origin/main). Broken by hand: with the default flipped to table, 10 of the new tests failed; restored. Not tried: the real app, Linux WebKitGTK, a real account's data (the fixtures are faked, with the shapes the cards read). |
||
|
|
908c9986cd |
templates: routing recipes — Plan first, Fastest first, Spread evenly (qhyqhy1s on X)
qhyqhy1s asked for best-practice templates in routing groups, as only three were offered. The Routing page's template cards and Templates menu (and `magpie group template`) now carry three more, each only a setting the engine already has: - Plan first (plan): the strongest model of up to three providers, the ones billed by a plan (Provider.BillingKind) ahead of pay-as-you-go ones. Not made when no provider is on a plan (NeedPlan). - Fastest first (fast): the same members, routing "fast". - Spread evenly (even): the one strongest model from up to four providers that serve it, routing "rotate" over all their keys and accounts. Names, one-line descriptions and the new "Needs a subscription or token plan" are in zh, zh-TW, ja and de. docs/subsystems/gateway-routing.md has a Routing recipes section. Run on mote at the pushed tree: go test ./internal/provider ./internal/cli ./internal/gui (Template|SizeOf|Group) ok; gofmt -l clean; group-template, getting-started, i18n-keys and i18n-en-no-cjk GUI files, 98 tests, chromium and webkit, 420px, every language, ok. Broken by hand: routing left unset on Fastest first, TestRecipeTemplates red. Not tried: a real account adding each template; the full GUI and Go suites are started after the tag. |
||
|
|
40c8d0c81a |
routing: an account whose windows are all set aside shows what the Usage page read, not "not known" (@apple_test_src on X)
A Cursor account signed in through its plugin (pooled plan, or on-demand or free credit that can pay) sets every window aside, since none can stop the account. Routing's allowance then holds no figure for it, so the Accounts and keys row (and the stage row) said "what's left not known yet" while the Usage page showed its percentages. This is true of any plugin-served subscription that sets all its windows aside, not only Cursor. Both Routing rows now say the card's first window (as Usage read it) when routing has no figure, the rest on hover; with no card the unknown line stays. Display only: how accounts are weighed is unchanged. Run: new routing-pooled-card.test.cjs (5 languages, 1100/420px, chromium and webkit) 22 pass; red 22 of 22 with client.js put back to origin/main's (broken by hand). Routing, i18n-keys, use-first, account-mask and codex-credits GUI files on mote: the only reds are in routing-context-fold, routing-pin-away, routing-row-swap, routing-story-shrinks, many-keys and accounts-narrow; the first four fail the same on the origin/main client.js (umbrella #4494, #5475). Not tried: a real Cursor account; the Go suite starts after the tag. |
||
|
|
0d0a1a5678 |
balance probe: kept across restarts, Auto-detect switch, Detect again, not-detected line in the editor (#3146, Niapyaya on X)
A custom provider at a New API / Sub API / One API relay with no Balance URL has its balance query found by magpie (provider/balance_probe.go). This keeps what was found, or not found, in balance-probes.json (keyed by origins and a hash of the key, written through temp-and-rename, an unreadable file read as empty), so a restart does not probe again. The editor gets an Auto-detect switch (NoBalanceProbe), a Detect again button (ForgetBalanceProbe) and a line saying where the balance was found, or that none was, with the Balance URL field as the way out. A found balance is a balance card on the Usage page. Run at the rebased head (parent |
||
|
|
4b29709eca |
gui: Standard speed is one word, in the core strings; the routing plugin's copy is gone (#6206)
|
||
|
|
a1a3b6fadb |
library: DeepSeek Harness folds its context with billion-context through its /bili/ prefix (VantH_off on X)
VantH_off asked for DeepSeek Harness in billion-context's support.
Library's billion-context tab offered Pi, omp, OpenCode, Claude Code, Hermes
and Zed. bili's dsh route is `dsh plugin add billion-context` (billion-context
0.1.213 README), which loads in dsh's process and takes traffic by proxy
settings; magpie's dsh route is baseURL http://127.0.0.1:3425/v1, plain http
on loopback, so that never sees it and the plugin would add tools and fold
nothing (the Hermes case,
|
||
|
|
e6bf4adf1f |
usage: Claude Code's helper requests are labelled, the largest cache write is one click away (recih on X, #6199)
Claude Code's AgentSummary and its auto mode classifier name themselves nowhere in the request, so there is no client marker to read. The gateway tells them by their content (inferredKind: a claude-cli/ request on the Messages API; the classifier by autoModeClassifierAsk, the summary by its last user text "Describe your ... in 3-5 words") and records them as agent_summary_inferred and auto_mode_check_inferred. The purpose catalog names them "Progress summary (inferred)" and "Auto mode check (inferred)" and puts each with its plain kind's purpose, so the existing Purpose filter lists both; nothing known and nothing inferred share a name. A tool that printed the same words, a chat, and another agent's request stay unmarked. A requests page now also holds BigWrite, the gateway-served row that wrote the most to the cache (cells, page-v1.json and pageFromLedger all carry it; rows from session files have no request to open). The Requests line shows it as "109K largest write", a button that opens that request through openUsageRoute. settledCountVersion is raised to 3, which keys the cached pages. Not done: the per-request branch recovery result asked for in #6199. No structured field holds it. Run on mote (load 21-24 of 18 cores, mica was higher): go test ./internal/usage ./internal/usageapi, the gateway and gui purpose tests, go vet for darwin, linux (nogui) and windows, gofmt; the GUI files usage-big-write (new), purpose-filter, routing-kind, i18n-keys and usage-ledger in chromium and webkit. Broken by hand: inferredKind returning "" turns TestClaudeHelperRequestsAreLabelled red; the larger-than test of BigWrite.add turned round turns TestRequestPageBigWrite red on both paths; the jump off turns usage-big-write red. Not tried: a real Claude Code session against a live subscription, Linux WebKitGTK. |
||
|
|
e174b55150 |
library: a Variables tab gives environment variables to Claude Code and Codex (paopao_baobao on X)
An environment variable is kept once in the Library and written into each agent picked: Claude Code's settings.json "env", Codex's config.toml [shell_environment_policy.set] (a sub-table or inline set is edited; a dotted spelling is refused). It follows Hooks: Applied.Env records what magpie wrote, so turning it off or removing it takes out only that, and a value the user set or changed in the file is never overridden (a conflict is a problem on the row). An unreadable file is an error, nothing is written. The tab has name, value and agent chips, an edit sheet and a row Remove with a confirm; its sidebar entry is in "Every agent". Not carried in backups, as hooks first were. docs/subsystems/library.md updated. Run (mica, sandbox HOME): internal/library and internal/gui go tests ok; gofmt clean; go vet darwin, linux -tags nogui, windows clean; GUI library-*, i18n-* in chromium and webkit (en, zh, zh-TW, ja, de, 440px): all green except "the Library while it loads", red on the merge base too (not from this change). Existing tab-list assertions in library-hooks, -subagents, -groups, -loading now include Variables. Broken by hand: syncEnv overwriting the user's value turns TestEnvNeverOverridesTheUsers red. Not tried: real Claude Code / Codex reading the written env; other agents (Gemini .env, Qwen, Droid); WSL; env in backup carry. |
||
|
|
a5e805f574 |
Codex: Ultrafast beside Fast in a group member, and a Fast/Ultrafast setting per model (kdajenks on X)
kdajenks (magpie 0.1.3739, Codex on ChatGPT Pro) could set Fast only from a
routing group's member row and had no Ultrafast there, and no way to set the
speed in the model's own settings. Ultrafast exists: Codex's catalog lists
the `ultrafast` service tier, the code already sent it for agent picks and
Codex's service-tier row, and the live account's service_tiers hold it.
- Group member: the button steps Standard speed, Fast, Ultrafast (where an
account offers it, `ultraOK`), back to Standard. `Group.Ultra` is a subset of
`Fast`, kept through rename, fold, share, gone-filter and the CLI
(`magpie group ... ultra=`). The gateway marks the candidate `ultra`.
- Per model: `settings.ModelTiers` ("<provider>/<model>" to priority or
ultrafast), `provider.SetModelTier` (refused where CanFast/CanUltra say no),
`ModelPref.Tier` in Model settings (Standard speed / Fast / Ultrafast, in
modellimits.js), and `magpie model tier <provider/model> [fast|ultrafast|usual]`.
The gateway sends it on a direct pick for an agent with no fast pick of its
own, through fastPick, so an account without Ultrafast gets priority. A group
member goes as the group says.
- Docs: gateway-routing, providers-accounts, reference.
Run (mica, at the rebased head over
|
||
|
|
a6d84e13a9 |
agent: Claude Desktop can use this computer's LAN HTTPS address for SSH remote sessions (zyc-bit on X, #4546)
Desktop's built-in SSH remote sessions hand the profile's gateway address
and key to the remote host. magpie wrote 127.0.0.1 and this computer's own
key there, so the host refused it (provider_loopback; a non-loopback address
must be https), the gateway turned the key away from another machine, and
3p mode's sshHostAllowlist (empty) allowed no host.
Desktop's row gets a "gateway" picker, drawn only while LAN sharing is on
and an address of this computer is https (gateway.LANURLs: HTTPS on, or
MAGPIE_PUBLIC_URL): "This computer" (default, loopback) or that address.
The pick is settings.DesktopGateway (carried by the settings save, kept by
KeepOwn). desktopOn / desktopCheck / desktopKeyApplied write and compare
desktopGateway() and the key at it (agentKeyAt: the sharing key). On a
non-loopback address sshHostAllowlist is seeded once with ["*"]
(desktopSeedOnce; the user may narrow it, never rewritten). The pick holds
only while it is still one of the https addresses; Agent.Gateway is
desktopGateway, so Rekey (after the sharing toggle, and now after the HTTPS
toggle) sets Desktop again, back to loopback when sharing goes off.
desktopIsOurGateway takes this computer's LAN addresses; realReachProbe no
longer verifies the certificate (magpie's CA is not trusted on this
computer), which read a LAN https address as unreachable.
Run (mica, sandbox HOME): go test ./internal/agent ./internal/settings
./internal/settingsapi ok; ./internal/gui ok except
TestPanelHiddenByWailsMarksPageOutOfSight, flaky the same on origin/main
|
||
|
|
fc615339f0 |
provider: Alibaba Cloud Token Plan quota read with the account's AccessKey; intl Token Plan preset (pppMathew on X, #2940)
Cause: a Token Plan sk-sp- key only authorizes inference. The plan's
usage sits on the Bailian console gateway, which wants a console token
(the key gets BailianGateway.Login.NotLogined) that Alibaba's own `bl` CLI
makes from the account's AccessKey through GenerateCLIAccessToken (ACS3
signed). magpie had no such path, so the usage card showed no quota.
Change:
- alibaba_usage.go: ACS3-HMAC-SHA256 signing, the console token (kept 20
minutes per AccessKey and region, made again once on NotLogined), the
personal plan's usage API, and per<N><Unit>Percentage/ResetTime read as
5 hours / Weekly / Month windows. Hooked in as AccessKeyVendor "alibaba"
(editor asks AccessKey ID and Secret, a keyless card says so),
accountPlanOf (routing), PlanQuotas and the key card tag.
- Hosts: token-plan.cn-beijing.maas.aliyuncs.com (bailian-token-plan) and
the new token-plan.ap-southeast-1.maas.aliyuncs.com preset
alibaba-token-plan (Alibaba Cloud international Token Plan, #2940), also
an OpenCode import target.
- Editor hint in zh, zh-TW, ja, de; docs (providers-accounts, reference).
Not covered: qwen-token-plan (Qwen AI platform) and qwencloud-token-plan
have no AccessKey route (browser-session console, #5829); team plans.
Run on mica at this tree: go test ./internal/gui ./internal/provider ok;
go vet darwin, linux nogui, windows on provider/gui clean; GUI files
i18n-keys, i18n-en-no-cjk, tencent-access-key, volc-access-key,
usage-access-key-card, tencent-cloud in chromium and webkit: 60 of 64 pass,
the 4 reds are tencent-cloud's "region clicked right after the strip
scrolled", red the same at origin/main
|
||
|
|
319753d892 |
gateway: a key can follow, force on or force off masking (y0ngb1n on X)
A gateway key now carries Redact: "" follows the global setting, "on" masks that key's requests even when masking is off, "off" sends them as written. Trusted devices turn it off, external ones are forced on. - access: Key.Redact, CleanRedact and the redact-key action; an issued key inherits "on" from its issuer and can't turn it off; the default key takes the same values. - gateway: maskingFor(ctx) decides per request; every route that masked (chat, native, text hits, the Masked-As header) asks it. A local request with no key keeps the global setting. masking.WithForced carries "on" into the masker; the redact plugin's InUse counts keys set on. - CLI: magpie gateway keys redact <key> follow|on|off. - GUI: key-row badge and an app menu; 7 strings in zh, zh-TW, ja, de. - docs/subsystems/gateway-routing.md: the Redact paragraph. Note: "on" with global masking off masks secrets and personal data by the defaults. An off key is still masked on a Remote magpie hop, which sends no Masked-As header. Run (mote-run): go test for access, masking, redact, cli, gui and plugins/redact packages and the new gateway key_redact tests; gofmt -l and go vet on darwin, windows and linux nogui, all clean; the new GUI test. Broken by hand: maskingFor returning the global value goes red in key_redact_test.go. Not tried: a real remote-to-remote hop with two keys; the full suite runs after the tag. |
||
|
|
60fde6fb1a |
library: an MCP server holds several accounts, one in use, switched in place (Elorynth on X)
A remote server can hold several OAuth sign-ins or several sets of headers (Authorization keys), one in use, which every agent given the server follows. - mcpauth: a server's sign-ins are kept with the one in use at m[name] and the others in Spare (Use, RemoveAccount, StartAccount); the gateway sends the one in use from its next request on. - library: Server.Accounts and Server.Account; `live` lays the account's headers over the server's own in through, remoteHeaders and hubKey, so a switch rewrites each agent's file. A save from the editor keeps them, and a backup or sync carries no account's key (carry.go). Add, use and remove calls, POST /api/library/mcp-account, and mcp-signin takes add and label. - GUI: a server with one set of headers or one sign-in looks as before, with a quiet "+ Add account"; with several, a list with the one in use marked, a click to switch, an x to remove. Four languages. - mcp_rename tests compare mcpauth.Record with reflect.DeepEqual now, as Spare makes it not comparable (the windows one too). Run (mote, at this tree): go test ./internal/library ./internal/mcpauth/... ./internal/gui; go vet darwin, linux nogui, windows; mcp-accounts.test.cjs in chromium and webkit, five languages, plus the existing mcp-* and library-mcp-* and i18n GUI files. Broken by hand: live() returning the server unchanged turns TestServerAccountsSwitchEveryAgent red; the use click removed turns mcp-accounts red. Not tried: a real OAuth server with two real accounts; an agent's upstream Mcp-Session-Id is not reset by a switch. |
||
|
|
2bb2011621 |
gui: env lines pasted into the Add sheet or a key box open a provider (WJaunita45604 on X)
Pasting `export ANTHROPIC_BASE_URL=... / export ANTHROPIC_AUTH_TOKEN=...`
(also set, setx, $env:, Docker ENV, .env lines, and a JSON object of them
such as Claude Code's settings.json env) into the Add sheet's search box
opens a custom provider: name from the URL's site (api.moonshot.cn ->
Moonshot), API from the variable names (ANTHROPIC_* Anthropic, OPENAI_*
OpenAI chat, GEMINI_* Gemini), key, model, and the site's icon through the
existing /api/icons/favicon (it is sent the URL and name only; the key stays
in the draft until Save). Pasted into a custom provider's key or Base URL it
fills the form, as a curl command already did (curlOf). A key that only
stands for one (sk-xxxx, $VAR) is left out with a note. A bare host without a
scheme is https; a name with no dot (the tweet's example-xxx) is no address.
The curl and env readers moved to assets/pasteread.js, loaded when the
Providers page first draws, because the core script budget had no room and
raising it moves nothing out.
Run (mote, origin/main
|
||
|
|
12610cf2ff |
sessions: the Usage page's list leaves out sessions taken off the list of an uninstalled agent (_SekiBetu_ on X)
v0.1.3784 hid a forgotten session only on the Sessions manage page; /api/sessions still listed it. ForgottenOut drops those rows (only while the agent's command is gone, so Restore and a reinstall list them again), and the hidden list's stamp is part of the poll's tag so a Delete shows on the next poll. Run on mote: go test -count=1 ./internal/sessions ok; ./internal/gui fails only TestCoreScriptBudget, red on clean origin/main too (#6189); go vet darwin and windows ok; gofmt clean. Broken by hand: ForgottenOut never hiding turned TestUninstalledAgentSessionsAreForgotten red. Not tried: a real uninstalled OpenCode; the Usage page in a browser. |
||
|
|
7e3e0fec4f |
gui: put agents back as they were when magpie quits, connect them again at start (tudjam17795 on X)
New Settings > General switch, "Put agents back when quitting" (zh: 退出时还原 Agent 配置),
default off. With it on, quitting the GUI app runs the same restore Disconnect does
for every agent magpie has connected (*.before-magpie files back byte for byte), and the
next start connects those agents again. Off keeps today's behaviour: a connected agent
keeps magpie as it quits.
- agent.RestoreOnQuit disconnects each wired agent that the user did not disconnect, then
forgets the <id>.disconnected mark, so the quit leaves no mark; it stashes the list of ids.
agent.RewireOnStart takes that list once and connects those still unwired and not
disconnected since. An agent the user disconnected stays disconnected.
- gui: OnShutdown restores only when the setting is on and this process served the
gateway; start re-wires in the background (not while the gateway is paused). A restore
on quit also quits at once without the ask.
- settings.RestoreOnQuit, settingsapi key kept unless sent, row in index.html, i18n for
zh, zh-TW, ja, de, docs in gui-shell.md and agent-wiring.md.
- app.js: the repeated Off/On settings rows go through one helper (segsOO), 422 bytes
smaller overall, so TestCoreScriptBudget passes without raising the budget.
Run (sandbox HOME, mica because mote was loaded):
- go test internal/agent, internal/gui, internal/settings, internal/settingsapi, internal/cli
at the rebased head: the new tests and the budget test pass.
- GUI, chromium and webkit, five languages, widths 1100 and 420: restore-on-quit (new),
quit-ask-setting, quit-ask, settings-general, settings-sections, settings-places,
i18n-keys, i18n-en-no-cjk, gui-de, gui-ja, gui-zh-tw, and for the rows moved to
segsOO: reduce-motion, skeleton-bird, lightweight, keep-login, checkin-at,
update-auto, update-hide, update-restart, update-download, tray-bird, tray-logos,
tray-cost, wsl-agents-setting, login-allow. All 0 fail.
- gofmt -l clean; go vet darwin, windows, linux -tags nogui clean.
Broken by hand: not forgetting the disconnected mark turns
TestRestoreOnQuitAndRewireOnStart and TestRestoreOnQuitLeavesUserDisconnected red;
dropping the Disconnected() checks turns TestRestoreOnQuitLeavesUserDisconnected red;
dropping the setting gate turns TestRestoreAgentsOnQuit red.
Known reds, not from this change (same on the base
|
||
|
|
fe20e4dbd8 |
sessions: an uninstalled agent's sessions can be deleted and are not offered Resume (_SekiBetu_ on X)
OpenCode (and Cline, Grok, Kimi, Hermes) keep sessions in their own database, so magpie never deletes them and they stay listed after the agent is uninstalled, with only Resume. When the agent's command is gone from PATH, its rows now get Delete (Forget: hidden through the gateway hidden list, a trash note marked forgot, the agent's files untouched, Restore unhides) and no resume command. Installed agents are unchanged. Run on mote: go test -count=1 ./internal/sessions ./internal/gui ok; go vet darwin, windows, linux -tags nogui ok; gofmt clean; GUI files sessions-forget (new, 5 languages x chromium+webkit), sessions-gateway-delete, sessions-manage, sessions-folder-delete, sessions-purge, sessions-row-narrow, i18n-keys, i18n-en-no-cjk all pass. Broken by hand: removing the hidden-row filter turned the gui Go test red; the old client.js turned sessions-forget red (5 of 5 chromium). Not tried: a real uninstalled OpenCode on a user's machine; the Usage page's /api/sessions list still shows a forgotten row (manage page only); the whole GUI suite and full go suite run after the tag. |
||
|
|
d3aecfe958 |
test models: a plugin model its vendor queued answers OK, saying the queue (Mr7Faith on X)
Qoder personal_standard: qmodel_latest (shown as Qwen4-Max-Preview) and
dfmodel were queued (503 "queued the request for qmodel_latest (this
plan's queue: p4, 1 ahead); try again in 60s"). The test sends
X-Magpie-Fallback so the plugin says the queue at once, and the probe
counted that 503 a failure: red all day, and Working only unpicked the
models. The id in the error is the model's own id (the listing's display
name changed), not a mapping bug. A queued model is served and an agent's
turn waits it out, so the probe now sets OK with Result.Queued, which the
chip's title shows.
Run on mote: go test -run TestPluginModelTest ./internal/provider ok
(TestPluginModelTestSaysQueued now wants OK + Queued; build-red on the old
test.go); go vet darwin/linux/windows ./internal/provider; GUI
models-queued, model-test-one, i18n-keys in chromium and webkit ok;
models-queued red without the app.js line. models-works-only is red on
origin/main
|
||
|
|
b52c711142 |
Restore what 85e6ec540 reverted: it was committed on a stale index and took out b587eb306's and earlier work (webview2, library skills, opencode endpoints, quotas); this puts the tree at b587eb306 plus the Paseo agent only
|
||
|
|
85e6ec5406 |
agent: Paseo's Claude model picker lists magpie's models (@TheMist016 on X)
Paseo (getpaseo/paseo) starts the same Claude Code, but builds its own model
list: first-party models plus settings.json's `model` and a few
ANTHROPIC_*_MODEL variables (providers/claude/models.ts). It never reads
Claude Code's modelPicker, where magpie writes every model, so the rest were
not selectable in Paseo. Paseo's own ~/.paseo/config.json takes
agents.providers.claude.additionalModels ([{id,label,description}], checked
against protocol/src/provider-config.ts) and passes each id to Claude Code as
written.
New agent "Paseo" (detected by ~/.paseo or PASEO_HOME): its switch writes the
models Claude Code's /model lists (same ids, [1m] marks, names; only the ones
picked for it) there, marked "via magpie" in the description; the user's own
entries and keys stay, off takes out only magpie's, a sync refreshes when on.
Claude Code must be connected to magpie as well.
Run (mote-run, sandbox HOME in tests): TestPaseoAdditionalModels,
TestStateListsPaseo, internal/agentenv, internal/gui full package ok;
internal/agent full run red only on TestPiGroupEntryKeepsItsMembers, which is
red the same on origin/main
|
||
|
|
12cd456f2c |
library: Skills > New skill makes a skill of the user's own (josephBenchap on X)
josephBenchap asked to create a skill in the Library; it could only
install or bring one in. Skills now has a New skill button beside Find
skills. A dialog takes a name, a description and the agents (the app's
chips, no select); Create writes skills/<name>/SKILL.md in the library's
folder with name and description front matter (YAML-marshalled, one line,
at most 1024 characters), lists it with no source, gives it to the agents
picked like any imported skill, and opens it in the reader, whose path
link opens the file in the user's editor. The name is checkName's, and
refused when the library or an agent already has one by that name
(compared without case) or a folder is in the way. The follow-the-server
note already sits above the Skills tab, so it covers this too. en, zh,
zh-TW, ja, de. docs/subsystems/library.md says so.
Run on mote at this head:
- gofmt -l clean; go vet ./internal/library ./internal/gui on darwin,
GOOS=linux -tags nogui and GOOS=windows: ok.
- go test ./internal/library ./internal/gui: ok. TestCreateSkill is new.
- GUI node --test in chromium and webkit: library-new-skill (new; en and
zh, 1100 and 420px: refusal stays in the dialog, agent untick posted,
reader opens, no select, no sideways scroll), library-items,
library-follow-server, library-all, library-discover-jump,
library-groups, library-intro-width, library-linked-set,
library-pick-remove, library-row-open-scroll, library-ime-scroll,
library-desktop-skills, library-gone-agents, library-bar-more,
library-chip-fan, i18n-keys, i18n-en-no-cjk, gui-de, gui-ja, gui-zh-tw:
all pass.
- library-loading is red (2 of 6) on this tree and on origin/main
|