singularity-forge/packages/pi-coding-agent/src/core/compaction
Tom Boucher 3a1cedd7de fix(compaction): add chunked fallback when messages exceed model context window (#3038)
When a session grows beyond the context window of available models,
generateSummary() now detects the overflow and falls back to chunked
summarization: split messages into context-fitting chunks, summarize
the first chunk, then iteratively merge subsequent chunks using the
existing UPDATE_SUMMARIZATION_PROMPT path.

Closes #2932

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-30 14:47:41 -06:00
..
branch-summarization.ts feat(core): support for 'non-api-key' provider extensions like Claude Code CLI (#2382) 2026-03-24 15:50:12 -06:00
compaction.test.ts fix(compaction): add chunked fallback when messages exceed model context window (#3038) 2026-03-30 14:47:41 -06:00
compaction.ts fix(compaction): add chunked fallback when messages exceed model context window (#3038) 2026-03-30 14:47:41 -06:00
index.ts feat: vendor Pi source into workspace monorepo 2026-03-12 21:55:17 -06:00
utils.ts refactor: extract shared helpers in compaction module 2026-03-19 14:56:00 -03:00