zelong77 asked for two things once 0.1.30's keep-alive worked: the pings
were invisible in magpie, and the interval and ping count could only be
edited in plugins.json.
- Each ping that wasn't cut short is reported through magpie.usage (new
in magpie, plugins#592) with kind cache_keepalive, the conversation's
model (chat.model) and account (magpie.account at request time), its
input, output, cache read and write tokens, status, time, and why it
failed. The ping still goes straight to Devin, never back through the
gateway: the gateway re-shapes a request, and the cache would no
longer match. An older magpie or OpenCode has no magpie.usage and is
told nothing; the pings go on the same.
- pingOnce now also reads output tokens (usage field 3) and keeps the
failure's message.
- package.json magpie.options gives the two settings' defaults
(285 s, 6), which magpie's Plugins › Options editor now starts from
for a provider plugin. The switch's description says where they are
and that pings show in Usage, in all five languages, each under the
host's 300-character cap.
Run (on mote, sandbox HOME): bun test in packages/devin, 174 pass;
bun scripts/check.mjs devin ok.
Broken by hand: reporting aborted pings too fails "a ping cut short by
the conversation's next request isn't told"; dropping the report call
fails "each ping is told to magpie".
Not tried: a real Devin account's ping reported into a real magpie.