trigger-release dispatched with peter-evans/repository-dispatch and
RELEASES_REPO_TOKEN, the owner's PAT. It shares the 5,000/hr core limit
with every agent session running gh as the owner, and on 11-10 the
limit ran out: v0.1.3561, 3566, 3568, 3569, 3571 and 3573 failed at
that step with "API rate limit exceeded for user ID 1206493" and have
no release in magpie-releases. They are not dispatched again: a release
published after a newer one would become Latest, and their commits are
in newer releases.
The step is now curl to POST /repos/yetone/magpie-releases/dispatches
with the same token and payload (built with jq). A 403 or 429 that is a
rate limit (retry-after, x-ratelimit-remaining 0, or "rate limit" in the
body) waits until retry-after or x-ratelimit-reset (60s when neither is
given) plus 5s and tries again, up to 65 minutes in all. Any other
non-2xx, or a curl failure, fails at once with the status and body; the
token is never printed. The job has timeout-minutes 75.
Other API calls checked: mirror-release and the notes issue use
GITHUB_TOKEN (its own per-repo limit), docker.yml uses github.token, and
no other workflow uses RELEASES_REPO_TOKEN.
Run: the step's run block, extracted from the YAML with PyYAML, against
a local Python fake server. 403 with x-ratelimit-remaining 0 and a reset
3s out, then 204: waited 8s, succeeded on try 2. 429 retry-after 2, then
403 rate limit, then 204: waited 7s and 8s, succeeded on try 3. 404 and
a 403 "Resource not accessible" (no rate-limit sign): failed at once
after one request with status and body. A reset 2h out: failed at once
as past the wait. A refused connection: failed at once with curl's exit.
The payload the server got was
{"event_type":"release","client_payload":{"ref":"v0.1.9999","version":"0.1.9999"}},
and no log held the token. bash -n ok; actionlint ok for the new step
(its only findings are two SC2086 infos in Get version, the same at the
base). Run locally: mote refused ssh at the time.
Broken by hand: with the rate-limit detection never matching, the first
403 rate limit failed at once.
Not tried: the real dispatch endpoint. It runs on the next tag.
v0.1.3360's mac signing failed on an Apple timestamp error, its rerun was
published in magpie-releases at 04:20Z after 3361 and 3362, and the
mirror's `gh release create` (no --latest) let GitHub mark it Latest here
too. The owner moved the mark back to v0.1.3362 by hand.
The copy step now passes --latest=true only when the tag is at least as
high (sort -V) as every published, non-prerelease vN.N.N release here,
--latest=false otherwise, on both create and the rerun's edit. Once the
copy is out, the highest published release gets the mark when another
has it, for two copies deciding at once. magpie-releases' own publish
gets the same fix in yetone/magpie-releases 23077359.
Run (locally, bash only): the step's run block, extracted from the
workflow with python yaml, against a fake gh: 3360 after 3362 ->
create --latest=false, Latest stays 3362; 3362 after 3361 -> true;
1000 after 999 -> true; first release -> true; 3359 copied while 3360
held the mark -> --latest=false, then the mark moved to 3362; a rerun
over an existing 3360 -> edit --latest=false. actionlint: the same 2
findings as origin/main. Not tried: a real tag (none pushed to test).
GrayRabbit on Discord (11-02): the "更新内容" dialog in Chinese listed
v0.1.2634 on as raw English commit subjects. magpie-releases' release
runs got "Insufficient Balance" from DeepSeek for both the changelog
and its Chinese since v0.1.2634, so those releases went out with the
commit list and no <!-- lang:zh --> part, as v0.1.1233 to 1242 did
(#2122). magpie-releases b90a82b now writes such notes again each hour
(notes.yml) once DeepSeek answers.
- notes-mirror.yml, hourly at :53 and by hand: a release here still
without the zh marker gets magpie-releases' notes of the same tag
once those have it, with the mirror's footer. The app reads
magpie-releases through usemagpie.ai, so this is the GitHub page.
- release.yml's notice on #2260 names insufficient_balance_error as a
DeepSeek top-up and says the notes are written again by themselves.
v0.1.2634 to 2644's notes were written by hand from their commits, in
English and Chinese, on both repos' releases.
Run: actionlint 1.7.7 (mote) on notes-mirror.yml and release.yml:
nothing but release.yml's existing unknown runner labels. No Go or GUI
code changed.
Not tried: notes-mirror.yml on GitHub's runners before this push.
On 10-30, magpie-releases' macOS jobs waited about an hour for a
hosted runner while several tags queued. v0.1.2262's build published
all 16 assets at 19:36:52, 62 minutes after its tag. mirror-release
had given up at 19:35:35 ("never published v0.1.2262 with 16 assets"),
so v0.1.2261 and v0.1.2262 never reached this repo's Releases page
until their failed jobs were rerun by hand.
The wait now runs 600 tries 30 s apart (300 min), and the job's
timeout is 330 minutes, under GitHub's 360. A build that really failed
still ends in the same error, only later. Following the magpie-releases
run's own state would end such a wait sooner; #4488 stays open for it.
Run: actionlint .github/workflows/release.yml ok. Not run: a real
release through it (the next tag runs it).
magpie-releases writes the Chinese notes with a DeepSeek call. Its balance
ran out, so v0.1.1233 to v0.1.1242 shipped English only, and Chinese apps
showed English notes until a user reported it. The failure was only a
warning in a log nobody reads.
mirror-release now checks notes.md for the <!-- lang:zh --> marker. When it
is missing, the job comments on the open "Release notes without Chinese"
issue, or files that issue if none is open. If gh fails, the step only
warns, so the release itself never fails here.
What was run: the step's script against a fake gh in four cases (Chinese
present, no issue open, issue already open, gh failing); the real
`gh issue list` query, read-only; a YAML parse of the workflow. Not run:
a real release (the next tag will run it). No Go code changed.
The main repo's Releases page was empty: the installers live only on
yetone/magpie-releases, which is bad for finding magpie and confusing to
people who look here first. A new mirror-release job, after the dispatch,
waits (up to an hour, every 30s) until the magpie-releases release for the
tag has 16 assets, downloads them, and creates the same release here with
GITHUB_TOKEN (contents: write): title "magpie vX", the same notes plus a link
to the magpie-releases page. A rerun edits the notes and replaces the assets.
It fails when fewer than 16 land here.
Nothing reads this repo's releases: self-update (internal/update),
install.sh and the site's /api/latest still read magpie-releases, unchanged.
A release made with GITHUB_TOKEN triggers no workflow, and none here listens
for release events.
Run: YAML parses; the wait and download half by hand against v0.1.1191
(16 assets, 554M, title "magpie v0.1.1191"). The create half runs for the
first time on the next tag.
* Add German translation and harden paths against unset env vars
Add a German locale to the GUI, tray menu, usage alerts and website home page, and refuse to start when the home folder is unset or relative so nothing is written under the working folder; the pi plugin no longer adopts the user's PI_CODING_AGENT_DIR, and an inherited APPIMAGE no longer selects portable mode. Scripts refuse to run from the wrong folder or empty a shared out folder, and a new internal/testenv sandboxes every test package from the user's real files, which also fixes the Claude picker and Termux installer tests on Windows.
* Makefile: know magpie's folder by its go.mod, so paths with spaces work
The check compared $(CURDIR) with $(dir $(abspath …)), which make splits on spaces, so a checkout under 'My Projects' or 'John Doe' refused every target. It now reads go.mod relative to the working folder and wants magpie's module there: make -C and a symlinked Makefile work, make -f from another folder still stops before any recipe runs.
* i18n: German for the strings main added since, with a parity test
75 strings main added (group order, patterns, slow-start wait, usage caps, RTK savings …) get their German, and two that main dropped go. gui-de.test.cjs checks, as gui-ja does, that de has every zh string with its placeholders and tags, and that the window reads in German when picked or on a German system.
* appdir: ignore relative folder variables when reading, keep them for children
CheckEnv no longer unsets anything. magpie reads the XDG folders, APPDATA/LOCALAPPDATA and every agent's folder variable through appdir.Getenv/LookupEnv, which pass over a relative value; the environment stays as it is, so the agents magpie starts get the variable as the user set it. That covers what proc.UserPath lends from the login shell too, which is set after main's check and reached the desktop app unchecked. On Windows a path rooted on the current drive (\Users\x, Git Bash's /c/x) counts as usable, and magpie version and help answer without a home, before run makes any folder.
* Sandbox the tests main added since
internal/wslrun gets testenv's TestMain, and four tests main added that set HOME alone set their home with testenv.SetHome, so on Windows they don't read the runner's profile through USERPROFILE.
* agentenv: PI_CONFIG_DIR and OPENCODE_DB take relative names on purpose
omp puts $PI_CONFIG_DIR under the home and OpenCode a relative $OPENCODE_DB in its data folder, so neither depends on the working folder: appdir no longer passes them over.
* i18n: German for the Library's multi-select and System One's decision API
The 19 strings main added since (#791's skill multi-select, the decision API snippets) get their German; the one main replaced (four APIs → five APIs) goes.
* appdir: tidy the import into magpie's group; say what Go makes of /c/x
The appdir import joins the group of magpie's own imports where a file has one. rooted's comment now says that Go takes a Git Bash path like /c/x as \c\x on the current drive, not C:\x.
The site leads with what magpie is for: Codex on DeepSeek, Claude Code on
Kimi. New screenshots (Codex's picker, the panel, Providers), a diagram of
the gateway, shared subscriptions, a light/dark/system theme switch, a new
OG image, and links to the source.