A restored plugin-auth kept a valid primary even when PH_ACCOUNT_EMAIL
named someone else, and never dropped a card account taken out of the
secret. Claim the named primary (moving an existing sign-in, no refresh)
and prune the rest.
pool: mint phe_ and talk to the ai-gateway
cat
Unverified signature
dbee50f
The legacy chat face now returns 403 product_retired. A free account mints
a free-plan phe_ and chat/completions on the ai-gateway returns 200.
card accounts come from PH_CARD_ACCOUNTS; a pool account taken out of the secret is dropped
cat
Unverified signature
28f609f
posthog-card sign-in: read the code from the intake's KV mirror while its database is out of quota
cat
Unverified signature
731c5ee
posthog-card sign-in: retry every ten minutes until the mailbox can hand over a code
cat
Unverified signature
d25b5b8
login-code wait: say what the mailbox answered, so a silent timeout is debuggable
cat
Unverified signature
53f7890
Carry plugin-auth.json in the R2 snapshot; longer boot-time login window
cat
Unverified signature
73dc9e3
Mask secrets in every log line; pin magpie v0.1.1203
cat
Unverified signature
654ed4e
Keep the usage ledger across rebuilds so gateway-key limits don't reset
cat
Unverified signature
c41c740
Add the login-snapshot helper and a deployment note
envvar
Unverified signature
0a678b4
sync-version: never wait for ever
envvar
Unverified signature
3d98b28
A Space that keeps taking requests would have waited indefinitely for a quiet
window, so a clicked update would never reach the image and would be lost at the
next restart. The mismatch is now remembered with the time it was first seen and
written back anyway after 30 minutes (MAGPIE_MAX_WAIT_MIN); the quiet window
(MAGPIE_IDLE_MIN, 10m) only decides whether it happens sooner.
sync-version: harden the pins it writes
envvar
Unverified signature
f71d306
- replace every occurrence of the pinned version, not just --branch and the
ldflag: MAGPIE_PINNED_VERSION stayed stale and the next boot saw a mismatch
- refuse to continue unless a version parses (an empty parse used to become the
string "v", which would have been committed as the tag to build)
- parse with grep -oE: the greedy sed turned 0.1.1190 into 1190
- one write-back per version via a marker file, and no repeated log lines when
the Dockerfile no longer holds the old pin
Pin every version string to v0.1.1190 and wait for a quiet window before writing a tag back
envvar
Unverified signature
56133f0
A write-back commits to this repo, which makes HF rebuild the Space: doing it
right after a click would take the gateway down mid-conversation. Now it waits
for ten minutes without requests (usage/served/quotas/affinity mtimes), so the
update keeps running and the pin lands once the traffic stops.
A click on magpie's Update pill only replaces the binary inside this ephemeral
container, so a rebuild brought the pinned tag back and the pill returned.
sync-version.sh watches for that mismatch and commits the new tag into
Dockerfile through the HF API; the rebuild HF starts from that commit makes the
update part of the image. HF_TOKEN is the Space secret it commits with.
The container's magpie version comes from the image, so the web UI's update
button only replaced the binary inside an ephemeral container: every rebuild
brought v0.1.1111 back and the pill returned. Bump the pin and point
MAGPIE_UPDATE_FEED at an unreachable address — a headless pin-based container
should never offer its own update.
posthog plugin: free-pool provider (posthog-pool) + boot-time seeding of its 18 accounts
envvar
Unverified signature
aa14d21
Legacy gateway, pha_ directly, per-account catalog from the account's own
/allowed list; accounts come from the PH_POOL_ACCOUNTS secret because magpie's
sync never carries logins.
posthog plugin: per-account mint cache (fixes 429 on gateway_token -> claude 503)
envvar
Unverified signature
9c55a44
Restore subscription logins from MAGPIE_LOGINS_B64 at boot (sync never carries logins.json)
- models hook sets api.id per entry (fixes everything-becomes-sonnet-5-5)
- mint cooldowns (net 30s / http 5min), 401 remint+retry, no request bodies in logs
- refresh: 4xx -> password self-heal, 5xx/network -> retry; bootstrap stores region
Re-enable the 3-minute auto sync after the boot-time pull (fresh sync.json defaults to manual)
cat
Unverified signature
d2b278e
Force the first S3 sync at boot and log it (status before/after, key list)
cat
Unverified signature
ff7e380
The background loop's first attempt was silent and did not bring the setup
back; running 'magpie s3 now' at boot makes the pull deterministic and
visible in the Space logs.
Unbuffer serve/web logs (sed -u): their output was swallowed by pipe block-buffering
cat
Unverified signature
2e66f7f
Restore setup from the R2 sync on every boot; stop pruning gateway keys
cat
Unverified signature
885a615
- start.sh writes /config/magpie/sync.json from the MAGPIE_SYNC_JSON secret before
magpie serve: /config is ephemeral here, so every boot is a first join, which pulls
providers, settings and gateway keys back from the bucket
- drop the 'remove every other gateway key' loop: keys are managed by the sync now, and
a removal after the first sync would be pushed and mirrored to every computer
- posthog plugin off unless PH_PLUGIN_ENABLE=1 (its provider id collides with the
synced posthog-card provider; model routing not settled yet)
Add posthog-card provider plugin (pool in magpie, no CF worker)