Bug Fixes
- Fixed handling of Codex streams that are cut off mid-reply so failures are read, reported to the client, and logged with the reason.
- Fixed local Codex compaction when a summary ends early: no more 502 errors, and if no candidates remain the gateway compacts locally.
- Fixed relayed stream handling for partial lines and dropped upstream connections so clients receive proper half-line events and Chat streams end with
[DONE]. - Fixed streamed reasoning summaries being delivered to the client twice.
- Fixed plugin tool calls that are cut short to retry immediately instead of waiting a minute.
- Fixed Codex compaction prompts sent to non-OpenAI vendors to use the system role instead of developer.
Security
- Improved secret redaction: masks now cover Ark API keys, fields named
_KEY/_PASS, authorization headers, and JSON field names. When secrets are enabled, a secret field name is masked only in tool arguments and results.
Install
Download from usemagpie.ai, or curl -fsSL https://usemagpie.ai/install.sh | sh. An installed magpie updates itself.
- macOS (Apple Silicon):
magpie-darwin-arm64.dmg - macOS (Intel):
magpie-darwin-amd64.dmg - Windows:
magpie-windows-amd64.exe(ARM:magpie-windows-arm64.exe) - Linux:
magpie-linux-amd64/magpie-linux-arm64(needs GTK 3 and WebKitGTK 4.1) - Terminal only:
magpie-cli-<os>-<arch>
Bug Fixes
- 修复了 Codex 流在回复中途被截断时的处理,使失败信息会被读取、报告给客户端,并记录原因。
- 修复了摘要提前结束时本地 Codex 压缩的问题:不再出现 502 错误,并且如果没有剩余候选项,网关会在本地进行压缩。
- 修复了中继流对不完整行和上游连接中断的处理,使客户端收到正确的半行事件,并且 Chat 流以
[DONE]结束。 - 修复了流式推理摘要被重复发送给客户端的问题。
- 修复了插件工具调用被中断时立即重试而不是等待一分钟的问题。
- 修复了发送给非 OpenAI 供应商的 Codex 压缩提示使用 system 角色而不是 developer 的问题。
Security
- 改进了密钥脱敏:掩码现在覆盖 Ark API 密钥、名为
_KEY/_PASS的字段、authorization 标头和 JSON 字段名。当启用密钥脱敏时,密钥字段名仅在工具参数和结果中被掩码。
安装
从 usemagpie.ai 下载,或运行 curl -fsSL https://usemagpie.ai/install.sh | sh。已安装的 magpie 会自动更新。