sperwe

Results issues of sperwe

当 Agent Pi 使用 `group/xxx-intent` 这类路由组时,Magpie 在上游模型返回首个 token 之前,其实已经知道最终选择的模型和 reasoning effort,但 Agent UI 目前无法实时获取这个结果。 是否可以提供一个基于 `X-Magpie-Session` 的轻量只读接口,返回当前实际路由的模型、effort、命中的规则,以及运行过程中发生的 fallback 切换? 这样 Pi / Claude / Codex 的状态栏就可以实时显示真实路由,而不必等到 response metadata 返回后才更新。 本地实测中,Magpie...

/backend-api/codex/models 一次请求会反复调用 All(),重复扫描账号并读取 macOS 钥匙串,实测会触发约 200 次 /usr/bin/security。同一上游直连只需约 1 秒,经 magpie 却要 5.3–5.6 秒,刚好超过 Codex 的 5 秒刷新上限,最终只能回落到官方模型列表。 建议给 All() 做请求级缓存,或在一次请求里复用同一份构建结果;同时缓存 cursorToken(),避免每次都执行 security find-generic-password。这样应该能把模型列表响应稳定压进 5 秒以内。

使用 Codex,通过 Magpie 路由到 OpenCode Go 的 deepseek-v4.1-flash,思考强度为 max,部分请求报 HTTP 400: The `reasoning_text` in the thinking mode must be passed back to the API. 客户端同时提示 stream disconnected before completion。 看到...