Commit graph

6 commits

Author SHA1 Message Date
Armin Ronacher
5d55f8fbd4 fix(ai): keep Codex request identity provider-scoped 2026-09-22 11:08:43 +02:00
Armin Ronacher
26c12a2f83 fix(ai): harden Codex request identity handling 2026-09-22 08:35:40 +02:00
Armin Ronacher
9e05370b29
Mid conversation system messages (#9548)
This change makes system prompt text and tool changes part of the transcript rather than silently rewriting its starting conditions. This lets Pi record when instructions changed or tools became available, restore that state after resuming or navigating branches, and preserve cached prompt prefixes where the upstream supports it.
2026-09-16 15:54:07 +02:00
Mario Zechner
4e69b0c280 feat(ai): preserve Anthropic per-turn thinking effort
Route eligible OpenRouter Claude models through the native Messages API and surface provider thinking-drop diagnostics.
2026-09-02 21:39:29 +02:00
Qiaochu Hu
ebc3744909
fix(agent): surface proxy stream EOF without terminal event as an error (#8997)
streamProxy dropped a final SSE event that was not newline-terminated
(the residual line buffer was never flushed after the read loop) and
called stream.end() without a result when no done/error event had been
seen, leaving EventStream.result() pending forever. Consumers like
agentLoop awaiting response.result() hung indefinitely when the server
closed the connection mid-response.

Flush the decoder and process the residual buffer after EOF, and push a
synthesized error event when the stream ended without a terminal event.

fixes #8996
2026-09-02 14:16:03 +02:00
Armin Ronacher
02bd2d1c62 fix(ai): preserve Responses tool-call namespaces
closes #7709
2026-08-07 23:05:23 +02:00