mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
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. |
||
|---|---|---|
| .. | ||
| agent | ||
| ai | ||
| chord | ||
| client | ||
| coding-agent | ||
| evals | ||
| protocol | ||
| server | ||
| session-backends/sqlite-node | ||
| telemetry | ||
| tui | ||