88e486be29
- Hardened context usage accounting to tolerate missing session fields by defaulting skills and tools to empty arrays. - Guarded message and system-prompt token counting with presence checks to avoid access errors on partial session objects.