picoclaw/pkg/channels/pico
程智超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
..
client.go fix(pico): preserve image media across pico attachments and client (#2874) 2026-05-15 15:49:07 +08:00
client_test.go fix(pico): preserve image media across pico attachments and client (#2874) 2026-05-15 15:49:07 +08:00
init.go refactor(config): make config.Channel to multiple instance support 2026-04-13 22:21:21 +08:00
pico.go fix(context): show both summarize and compress thresholds in /context 2026-06-04 11:03:16 +08:00
pico_test.go test(message): cover pico and weixin media text semantics 2026-05-22 16:25:50 -07:00
protocol.go feat(chat,seahorse): persist and display model_name across history (#2897) 2026-05-20 13:42:21 +08:00