pi-mono/packages/coding-agent/docs
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
..
images Add pi.dev donation attribution 2026-02-03 23:00:40 +01:00
compaction.md feat: add canonical session context boundaries 2026-09-21 16:59:20 +02:00
containerization.md docs(coding-agent): document running pi in Docker Sandboxes (#9077) 2026-09-04 15:27:32 +02:00
custom-provider.md feat(coding-agent): add prompt cache warming (#9668) 2026-09-19 21:18:15 +02:00
development.md fix(coding-agent): update repository links to "earendil-works/pi" (#9278) 2026-09-07 14:09:39 +02:00
docs.json docs: validate documentation navigation and reachability (#9380) 2026-09-09 17:34:42 +02:00
environment-variables.md feat(coding-agent): add bug reporting 2026-09-19 17:55:49 +02:00
extensions.md fix(coding-agent): keep prompt and tool state across context handlers (#9846) 2026-09-21 17:14:22 +02:00
index.md feat(coding-agent): expose session metadata to bash tools (#6967) 2026-07-22 20:15:02 +02:00
json.md fix(coding-agent): update repository links to "earendil-works/pi" (#9278) 2026-09-07 14:09:39 +02:00
keybindings.md fix(coding-agent): selector save keybindings (#9149) 2026-09-04 18:06:21 +02:00
llama-cpp.md fix: llama.cpp guidance as no default (#8236) 2026-08-17 12:15:56 +02:00
models.md feat(ai,coding-agent): add image input limits (closes #9631) 2026-09-20 22:59:16 +02:00
packages.md feat(coding-agent): update managed installations in place 2026-08-24 09:34:34 +02:00
prompt-templates.md fix(coding-agent): support all-argument prompt defaults closes #6695 2026-07-17 13:52:32 +02:00
providers.md feat(ai,coding-agent): add Meta provider with Muse subscription OAuth (#9096) 2026-09-20 11:13:43 +02:00
quickstart.md docs(settings): default model and thinking 2026-08-26 16:25:30 +02:00
rpc.md fix(coding-agent): cancel compaction on session abort 2026-09-03 09:41:55 +02:00
sdk.md feat: add canonical session context boundaries 2026-09-21 16:59:20 +02:00
security.md fix(coding-agent): update repository links to "earendil-works/pi" (#9278) 2026-09-07 14:09:39 +02:00
session-format.md feat: add canonical session context boundaries 2026-09-21 16:59:20 +02:00
sessions.md feat(coding-agent): add bug reporting 2026-09-19 17:55:49 +02:00
settings.md feat(coding-agent): add prompt cache warming (#9668) 2026-09-19 21:18:15 +02:00
shell-aliases.md docs(coding-agent): add windows.md and shell-aliases.md 2026-01-25 22:12:03 +01:00
skills.md fix(coding-agent): keep skills available with bash-only tools (#8552) 2026-09-03 11:08:26 +02:00
terminal-setup.md fix(tui): detect Zed terminal capabilities (#8828) 2026-09-01 11:03:34 +02:00
termux.md feat(tui): Simplify clipboard handling (#9163) 2026-09-05 23:52:32 +02:00
themes.md feat(tui): alt mode scrollbar but prettier (#8801) 2026-09-04 00:05:47 +02:00
tmux.md docs(coding-agent): update tmux requirement docs 2026-06-07 10:34:57 +02:00
tui.md fix(coding-agent): embed all session status spinners in the editor border 2026-09-07 15:31:00 +02:00
usage.md feat(coding-agent): add bug reporting 2026-09-19 17:55:49 +02:00
windows.md feat(coding-agent): add optional PowerShell tool (#8512) 2026-08-24 12:27:03 +02:00