You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Prioritize foundational knowledge when truncating context
Critical fix: When context exceeds token limit, intelligent truncation
now preserves foundational warning and foundational knowledge documents.
Problem:
- Context truncation was cutting foundational warning and foundational
knowledge, causing LLM to ignore StillMe's self-tracking capabilities
- Simple truncation from end could remove critical instructions
Solution:
- Detect foundational warning and foundational knowledge in context
- Always preserve: header + foundational warning + foundational knowledge docs
- Only truncate: conversation docs and non-foundational knowledge (from end)
- Fallback to simple truncation if no foundational knowledge found
This ensures foundational knowledge about StillMe's capabilities is
never lost during context truncation, fixing incorrect responses about
self-tracking.
0 commit comments