Files
picoclaw/pkg/agent
xiaoen 9c65d78b07 fix(agent): forceCompression must not assume history[0] is system prompt
Session history (GetHistory) contains only user/assistant/tool messages.
The system prompt is built dynamically by BuildMessages and is never
stored in session. The previous code incorrectly treated history[0] as
a system prompt, skipping the first user message and appending a
compression note to it.

Fix: operate on the full history slice, and record the compression
note in the session summary (which BuildMessages already injects into
the system prompt) rather than modifying any history message.
2026-03-16 14:48:33 +08:00
..
2026-03-06 16:04:31 +08:00
2026-03-01 18:17:32 +11:00
2026-02-18 21:48:23 +02:00
2026-03-16 00:08:16 +08:00
2026-03-16 00:08:16 +08:00