pi-mono/packages
Armin Ronacher aef5fc429b
fix(coding-agent): keep prompt and tool state across context handlers (#9846)
Since 0.86 the prompt and tool declarations live in transcript system
messages, so a context handler that filters or slices messages could drop
them. After extension-driven compaction this sent requests without built-in
tools and made Codex emit raw tool-call text.

context handlers now see the conversation only. An unchanged list keeps the
transcript as is; a changed list gets the replayed prompt sections and tool
declarations as one leading system message. Handler-added system messages
are kept after it.

Add context_with_system, which runs after every context handler on the full
transcript and sends its result verbatim, for extensions that need to edit
system messages per request. Dropping the leading system message is reported
as an extension error.

closes #9789, closes #9822
2026-09-21 17:14:22 +02:00
..
agent feat: add canonical session context boundaries 2026-09-21 16:59:20 +02:00
ai fix(ai): update strict mode test expectations 2026-09-21 09:39:21 +02:00
chord feat: add transactional replicated state 2026-09-21 16:07:59 +02:00
client Add [Unreleased] section for next cycle 2026-09-20 13:04:18 +02:00
coding-agent fix(coding-agent): keep prompt and tool state across context handlers (#9846) 2026-09-21 17:14:22 +02:00
durable feat: add transactional replicated state 2026-09-21 16:07:59 +02:00
evals Release v0.86.1 2026-09-20 13:04:11 +02:00
protocol Add [Unreleased] section for next cycle 2026-09-20 13:04:18 +02:00
server Add [Unreleased] section for next cycle 2026-09-20 13:04:18 +02:00
session-backends/sqlite-node Add [Unreleased] section for next cycle 2026-09-20 13:04:18 +02:00
telemetry Add [Unreleased] section for next cycle 2026-09-20 13:04:18 +02:00
tui Add [Unreleased] section for next cycle 2026-09-20 13:04:18 +02:00