Repository navigation
v2.2.1 - Bug Fixes
Bug Fixes
Critical: Session Message Extraction
- Fixed
extract_user_messages()to handle string content format - Session files can have
{"content": "text"}instead of{"content": [...]} - This was preventing
/reflect-skillsfrom analyzing session history
High: Reduced False Positive Rate
Added structural FALSE_POSITIVE_PATTERNS to reject non-corrections:
- Questions ending with
? - Task request openers (
please help,can you,I need) - Error descriptions (
could not,failed to) - Bug reports (
is not working,is broken)
Improved: Length-Based Confidence
- Short messages (<80 chars) get confidence boost (+0.10)
- Long messages (>150 chars) get reduced confidence
- This helps distinguish direct corrections from context-heavy task requests
Design Philosophy
Pattern detection now uses structural signals for language-agnostic filtering:
- Message length
- Punctuation (question marks)
- Sentence structure patterns
English regex patterns serve as a fast first-pass filter. Non-English corrections are caught by semantic filtering during /reflect.
Tests
- 126 tests passing
- 8 new tests for false positive rejection and string content handling
Full Changelog: v2.2.0...v2.2.1