The adapter puts the user's shared instructions in a system message of
their own, and its tag went upstream with every prompt naming the app.
This tag is the adapter's own (Kimi's client has no such message), so a
neutral one was picked: <shared-instructions>. A history holding the old
tag from turns before 0.1.3 has that message taken out as before, so no
prompt carries two copies or the old name.
Left as they are, and why: the menu alias magpie-local-<hash> and the
" · Magpie" display name live in Kimi's model menu; the adapter replaces
the alias with the real model id before a request leaves it, so neither
reaches the model.
Run:
- no-magpie.test.mjs: with shared instructions and an old tagged turn in
history the prompt holds no "magpie", one <shared-instructions> message,
and applying twice changes nothing (red on the old code); with no
instructions the old turn is still taken out.
- bun test (package): 26 pass. scripts/check.mjs skips agent packages
(exit 0).
Not tried live: no Kimi Work account here, and Kimi isn't installed on
this Mac or the Windows box.