forked from anomalyco/opencode
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
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
- Implement structured logs (with service=, ids, token counts)
- Implement
/statusdetails for compaction/prune state
Acceptance Criteria
- Developers can see boundary/prune decisions and token breakdowns without reading code.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels