emergency_truncate
Method
This is a method of the ContextManager class in the manager module.Emergency truncation when optimization isn’t enough. Aggressively removes messages to fit within target tokens. Preserves system messages and most recent turns.
Signature
Parameters
Messages to truncate
Target token count
Returns
Truncated messages list

