[BUG] Context loss during conversation compression - 2026-01-26
Incident Report - Context Loss
Date: 2026-01-26 18:09:45
Session ID: 658acffc-2e37-4f23-8fa1-1e8812bffd18
Model: unknown
User: hecdenjean@gmail.com
---
Summary
Context compression lost critical work state, caused duplicate product creation and deletion of test data
---
Description
During a session working on Dynamo AV products for Odoo 18, the conversation was compressed due to context limits. The compression failed to preserve:
- Information about products already created (DAV-EC-ALI, DAV-EC-STD, DAV-EC-FULL, etc.)
- Test orders (S00032-S00035) that validated the complete flow
- Product configuration (dynamo_is_av_package, includes_reel, includes_realtime)
As a result, Claude:
- Recreated products via XML (causing duplicates)
- Proposed archiving 'duplicates' (which were the originals)
- Deleted test orders and their associated projects/tasks
- Required extensive investigation to verify the original configuration
The user did nothing wrong - this was 100% a system failure in context preservation.
---
Impact
- Estimated tokens wasted: ~115,000 tokens
- Time lost: ~2 hours of session time
- Data affected: 17 products archived/deleted, 4 test orders deleted, template lines deleted
---
Root Cause (if identified)
Conversation compression did not preserve work-in-progress state or test data context
---
Steps to Reproduce
- Work on complex multi-phase task (creating products, configuring them, testing flow)
- Continue working until context limit triggers compression
- After compression, ask about related work (e.g., 'were templates created?')
- System responds without knowledge of prior work, recreates everything
---
Evidence
- Session file:
/Users/hecdenjean/.claude/projects/-Users-hecdenjean/658acffc-2e37-4f23-8fa1-1e8812bffd18.jsonl - Local incident log:
/Users/hecdenjean/.claude/incidents/incident_20260126_180945.json
---
Request
- Token reimbursement for ~115,000 tokens wasted
- Investigation into context compression algorithm
- Improvement suggestion: Include work-in-progress summary in compression
---
This incident was reported automatically via Claude Code incident reporting system.
Report ID: 20260126_180945
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗