feat(FN-828): lock in compaction behavior with comments and regression tests

- Add explicit comments to pi.ts documenting auto-compaction behavior during agent context management
- Add regression tests verifying compaction triggers correctly and preserves conversation integrity
- Document auto-compaction behavior in README under AI Engine section
This commit is contained in:
gsxdsm
2026-04-04 00:02:33 -07:00
parent 383f2789e7
commit 93e693534c
3 changed files with 44 additions and 1 deletions

View File

@@ -244,6 +244,7 @@ Each pi agent session gets:
- Custom system prompt for its role (triage specifier vs task executor)
- Tools scoped to the correct directory (`createCodingTools(cwd)`)
- In-memory sessions (no persistence needed)
- Auto-compaction enabled to automatically summarize conversation history when context fills up, preventing context-window overflow in long-running agent conversations
- The user's existing pi auth (API keys from `~/.pi/agent/auth.json`)
### Error Recovery