Files
picoclaw/pkg
Badgerbees 1a44752dc5 fix(agent): prevent double-counting system message tokens in estimator
Treat SystemParts as an alternative representation of message Content
rather than an additive one. This prevents systematic overestimation
of system message tokens which could trigger premature context
pruning or summarization.
- Picks the maximum of Content vs. SystemParts to stay conservative.
- Adds a per-part overhead (20 chars) to account for JSON metadata.
- Streamlines the ReasoningContent counting logic.
Fixes a deficiency where structured blocks for cache-aware adapters
caused overestimated budgets or hidden overflows.
2026-03-31 17:09:01 +07:00
..
2026-03-29 01:25:20 +08:00
2026-03-30 18:01:07 +08:00
2026-03-30 18:07:20 +08:00
2026-03-13 14:04:02 +08:00
2026-03-19 18:04:58 +08:00