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
..
agent fix(agent): prevent double-counting system message tokens in estimator 2026-03-31 17:09:01 +07:00
auth Merge branch 'main' into t3 2026-03-29 01:25:20 +08:00
bus feat(telegram): stream LLM responses via sendMessageDraft (#1101) 2026-03-20 21:04:14 +08:00
channels Fix Telegram HTML links broken by italic regex matching inside href URLs (#2164) 2026-03-31 11:46:06 +08:00
commands resolve conflicts 2026-03-22 23:36:25 +01:00
config Merge branch 'main' into t3 2026-03-30 18:01:07 +08:00
constants refactor: replace bool map with set-style map for internal channels (#472) 2026-02-19 11:48:17 +01:00
credential refactor config and security to simplified the structure (#2068) 2026-03-28 00:03:34 +08:00
cron refactor(cron): remove deliver and type params, unify agent execution path (#2147) 2026-03-29 22:52:34 +08:00
devices refactor: cleanup dead code and turn on dead code detection in CI (#515) 2026-02-24 21:52:25 +08:00
fileutil Merge pull request #1829 from perhapzz/test/add-fileutil-health-tests 2026-03-26 10:42:13 +01:00
gateway Merge branch 'main' into t3 2026-03-30 18:07:20 +08:00
health add pid file for gateway running and auth token for /reload and pico channel 2026-03-29 01:14:39 +08:00
heartbeat fix(heartbeat): ignore untouched default template 2026-03-15 21:58:21 +08:00
identity fix(identity): support negative integers in isNumeric for Telegram group IDs 2026-03-21 17:09:02 +07:00
logger add check for gateway port and fix logger.Fatal not record issue (#2185) 2026-03-30 17:43:10 +08:00
mcp feat(mcp): support DisableStandaloneSSE for HTTP transport (#2108) 2026-03-29 14:37:22 +08:00
media Fix 1886 media cleanup policy (#1887) 2026-03-23 12:13:59 +08:00
memory refactor Config to add Version and migratable 2026-03-12 13:52:55 +08:00
migrate add pid file for gateway running and auth token for /reload and pico channel 2026-03-29 01:14:39 +08:00
pid add pid file for gateway running and auth token for /reload and pico channel 2026-03-29 01:14:39 +08:00
providers fix test and lint in web (#2219) 2026-03-31 15:50:55 +08:00
routing refactor Config to add Version and migratable 2026-03-12 13:52:55 +08:00
session refactor Config to add Version and migratable 2026-03-12 13:52:55 +08:00
skills enhance skill installer (#1252) 2026-03-13 14:04:02 +08:00
state refactor Config to add Version and migratable 2026-03-12 13:52:55 +08:00
tools Merge pull request #1982 from Kathent/fix-deny-pattern 2026-03-30 14:24:17 +02:00
utils Merge pull request #2176 from Alix-007/fix/issue-2135-retry-after 2026-03-30 16:27:46 +02:00
voice refactor config and security to simplified the structure (#2068) 2026-03-28 00:03:34 +08:00
env.go Merge branch 'main' into version 2026-03-19 18:04:58 +08:00