Epic: #46
Summary
Add observability for compaction and pruning decisions to make behavior transparent and debuggable.
Problem
- Hard to see which messages were kept/dropped and why. No easy token breakdown.
Proposal
- Log boundaries: preserved turns, summary index, message IDs included.
- Log pruning: tokens pruned/protected, count of parts affected.
- Provide
/status (or extend existing status) to show token usage by category (user/assistant/tool/reasoning) and compaction readiness.
Code Refs
- packages/opencode/src/session/compaction.ts (boundary and prune points)
- packages/opencode/src/session/message-v2.ts (message/part conversions)
Tasks
Acceptance Criteria
- Developers can see boundary/prune decisions and token breakdowns without reading code.
Epic: #46
Summary
Add observability for compaction and pruning decisions to make behavior transparent and debuggable.
Problem
Proposal
/status(or extend existing status) to show token usage by category (user/assistant/tool/reasoning) and compaction readiness.Code Refs
Tasks
/statusdetails for compaction/prune stateAcceptance Criteria