pi-mono/packages
Armin Ronacher e4c75a7322 fix(coding-agent): replace the system prompt when a handler forces it
Add SystemMessage.replace: replaying a system message with the flag discards the
accumulated prompt content, sections, and tools before applying it, and providers
collapse the transcript into one leading system message whenever a later message
replaces it.

A forced prompt from before_agent_start is opaque, so it is persisted as a replace
message holding the text in content with no sections (the agent loop fills in the
full tool set). Leaving force mode persists another replace message with the
structured sections. Previously the forced prompt became a preamble section patch,
so models with native mid-conversation system messages kept the original prompt
as their leading system prompt and received the forced one as a later update.
2026-09-16 23:35:01 +02:00
..
agent Mid conversation system messages (#9548) 2026-09-16 15:54:07 +02:00
ai fix(coding-agent): replace the system prompt when a handler forces it 2026-09-16 23:35:01 +02:00
chord fix(coding-agent): update runtime dependencies (#9341) 2026-09-08 16:04:35 +02:00
client Add [Unreleased] section for next cycle 2026-09-05 13:54:52 +02:00
coding-agent fix(coding-agent): replace the system prompt when a handler forces it 2026-09-16 23:35:01 +02:00
evals fix(coding-agent): update eval prompt section markers 2026-09-16 17:47:13 +02:00
protocol fix(coding-agent): update runtime dependencies (#9341) 2026-09-08 16:04:35 +02:00
server Add [Unreleased] section for next cycle 2026-09-05 13:54:52 +02:00
session-backends/sqlite-node Add [Unreleased] section for next cycle 2026-09-05 13:54:52 +02:00
telemetry Add [Unreleased] section for next cycle 2026-09-05 13:54:52 +02:00
tui fix(coding-agent): surface clipboard backend failures 2026-09-16 01:29:52 +02:00