程智超0668000959
5f826f4448
fix(context): show both summarize and compress thresholds in /context
...
The /context command previously showed only the hard budget compression
threshold (contextWindow - maxTokens), which confused users who expected
to see the soft summarization trigger from summarize_token_percent.
This commit adds SummarizeAtTokens alongside the existing CompressAtTokens
so that both thresholds are visible:
- Compress at: contextWindow - maxTokens (hard budget, triggers proactive
compression when exceeded)
- Summarize at: contextWindow * summarizeTokenPercent / 100 (soft trigger,
matches maybeSummarize's threshold)
The fix updates the /context command output, the Web UI popover, and the
pico channel WebSocket payload.
Fixes #2968
2026-06-04 11:03:16 +08:00
..
2026-05-19 16:38:47 +08:00
2026-05-19 16:38:47 +08:00
2026-06-04 11:03:16 +08:00
2026-05-11 16:13:27 +08:00
2026-05-22 16:36:44 -07:00
2026-04-21 10:55:50 +08:00
2026-05-08 13:48:47 +02:00
2026-05-08 13:48:47 +02:00
2026-04-30 11:08:00 +08:00
2026-05-22 10:06:40 +08:00
2026-04-26 15:36:03 +08:00
2026-05-20 13:42:21 +08:00
2026-05-05 19:24:15 +02:00
2026-05-04 13:10:02 +02:00
2026-05-31 11:38:38 +02:00
2026-04-21 10:55:50 +08:00
2026-05-05 19:36:09 +08:00
2026-05-22 10:06:40 +08:00
2026-05-22 10:06:40 +08:00
2026-05-18 21:11:21 +02:00
2026-05-18 21:11:21 +02:00
2026-04-03 14:15:20 +08:00
2026-04-26 16:55:02 +08:00
2026-04-26 16:23:58 +08:00
2026-04-13 11:04:45 +08:00
2026-05-26 14:05:20 +08:00
2026-04-08 10:57:22 +08:00
2026-05-26 14:05:20 +08:00
2026-04-15 20:18:09 +08:00
2026-06-04 11:03:16 +08:00
2026-05-22 10:06:40 +08:00
2026-03-29 14:06:19 +02:00
2026-03-29 23:41:32 +02:00
2026-05-08 22:23:50 +02:00
2026-05-08 22:23:50 +02:00
2026-04-13 22:51:44 +08:00
2026-04-13 22:51:44 +08:00
2026-05-11 16:13:27 +08:00
2026-04-26 16:55:02 +08:00
2026-04-27 13:09:03 +08:00
2026-05-11 16:13:27 +08:00
2026-05-11 16:13:27 +08:00
2026-05-11 16:13:27 +08:00
2026-04-27 13:09:03 +08:00
2026-04-27 13:09:03 +08:00
2026-04-26 16:28:41 +08:00
2026-04-26 16:39:35 +08:00
2026-04-26 16:39:35 +08:00
2026-04-26 16:55:02 +08:00
2026-05-09 10:35:13 +02:00
2026-05-21 11:07:39 +08:00
2026-05-11 16:13:27 +08:00
2026-05-11 16:13:27 +08:00
2026-04-30 02:24:29 +08:00
2026-02-27 16:35:07 +08:00
2026-02-19 22:05:15 +02:00
2026-05-20 13:42:21 +08:00
2026-05-20 13:42:21 +08:00
2026-05-11 16:13:27 +08:00
2026-05-22 10:06:40 +08:00
2026-05-22 10:06:40 +08:00
2026-06-02 19:58:09 +08:00
2026-05-23 09:42:56 +02:00
2026-05-21 11:07:39 +08:00
2026-05-21 11:07:39 +08:00
2026-04-21 10:55:50 +08:00
2026-05-22 10:06:40 +08:00
2026-05-22 10:06:40 +08:00
2026-05-22 10:06:40 +08:00
2026-05-22 10:06:40 +08:00
2026-03-29 22:43:20 +02:00
2026-05-08 22:23:50 +02:00
2026-04-27 13:09:03 +08:00
2026-04-26 19:28:26 +08:00
2026-04-26 16:23:58 +08:00
2026-05-22 13:15:56 +08:00
2026-05-04 08:41:17 +02:00
2026-05-07 11:25:41 +08:00
2026-05-22 10:06:40 +08:00
2026-03-05 09:51:18 +08:00
2026-05-21 11:07:39 +08:00
2026-05-09 10:35:13 +02:00
2026-05-09 10:35:13 +02:00
2026-04-26 16:55:02 +08:00
2026-06-02 19:58:09 +08:00
2026-05-22 10:06:40 +08:00
2026-05-22 10:06:40 +08:00
2026-05-22 13:42:35 +08:00
2026-05-19 09:18:39 +02:00
2026-05-23 09:42:56 +02:00