Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions packages/coding-agent/src/changes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
## Staged context compaction recovery (2026-07-25)

### What changed

- Oversized one-shot compactions now recover through bounded, durable complete-turn stages while successful one-shot
compactions retain their existing path.
- Intermediate checkpoints are append-only and restart-safe; no-fit, later-stage failure, non-progress, stage-count,
and time bounds fail explicitly without retrying the original provider prompt.

### Why extension system couldn't handle this alone

Only `AgentSession` owns provider retry admission, lifecycle generations, message revision guards, and durable
`SessionManager.appendCompaction()` ordering across multiple summary calls.

### Expected merge conflict zones

- MEDIUM: `core/agent-session.ts` compaction execution and recovery helpers.
- MEDIUM: `core/compaction/compaction.ts` preparation helpers.
- HIGH: `core/extensions/types.ts` public compaction event interfaces.

## Manual compaction keeps agent lifecycle subscription through abort (2026-07-24)

- `core/agent-session.ts`: manual or extension-initiated compaction claims its synchronous admission/barrier first,
Expand Down
Loading
Loading