picoclaw/pkg/commands
程智超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
..
builtin.go feat(agent): stop command 2026-05-04 08:41:17 +02:00
builtin_test.go feat(agent): stop command 2026-05-04 08:41:17 +02:00
cmd_btw.go feat(agent): support btw side questions (#2532) 2026-04-16 10:53:09 +08:00
cmd_check.go feat(commands): centralized command registry with sub-command routing (#959) 2026-03-06 17:31:40 +08:00
cmd_clear.go feat: add /clear command to clear chat history (#1266) 2026-03-09 16:39:33 +08:00
cmd_context.go fix(context): show both summarize and compress thresholds in /context 2026-06-04 11:03:16 +08:00
cmd_help.go feat(commands): centralized command registry with sub-command routing (#959) 2026-03-06 17:31:40 +08:00
cmd_list.go feat(commands): add MCP slash commands and tool details 2026-04-21 11:01:04 +02:00
cmd_reload.go feat: add /reload to gateway api and command (#1725) 2026-03-19 13:42:36 +08:00
cmd_show.go feat(commands): add MCP slash commands and tool details 2026-04-21 11:01:04 +02:00
cmd_start.go feat(commands): centralized command registry with sub-command routing (#959) 2026-03-06 17:31:40 +08:00
cmd_stop.go feat(agent): stop command 2026-05-04 08:41:29 +02:00
cmd_subagents.go feat(agent): implement /subagents command and fix sub-turn observability 2026-03-18 14:46:20 +08:00
cmd_switch.go feat(commands): centralized command registry with sub-command routing (#959) 2026-03-06 17:31:40 +08:00
cmd_switch_test.go feat(commands): centralized command registry with sub-command routing (#959) 2026-03-06 17:31:40 +08:00
cmd_use.go feat(skills): add channel commands to list and force installed skills 2026-03-22 15:33:25 +01:00
definition.go feat(commands): centralized command registry with sub-command routing (#959) 2026-03-06 17:31:40 +08:00
definition_test.go feat(commands): centralized command registry with sub-command routing (#959) 2026-03-06 17:31:40 +08:00
executor.go feat(commands): centralized command registry with sub-command routing (#959) 2026-03-06 17:31:40 +08:00
executor_test.go feat(commands): centralized command registry with sub-command routing (#959) 2026-03-06 17:31:40 +08:00
handler_agents.go feat(commands): centralized command registry with sub-command routing (#959) 2026-03-06 17:31:40 +08:00
handler_mcp.go feat(commands): add MCP slash commands and tool details 2026-04-21 11:01:04 +02:00
registry.go feat(commands): centralized command registry with sub-command routing (#959) 2026-03-06 17:31:40 +08:00
registry_test.go feat(commands): centralized command registry with sub-command routing (#959) 2026-03-06 17:31:40 +08:00
request.go feat(skills): add channel commands to list and force installed skills 2026-03-22 15:33:25 +01:00
request_test.go feat(commands): centralized command registry with sub-command routing (#959) 2026-03-06 17:31:40 +08:00
runtime.go fix(context): show both summarize and compress thresholds in /context 2026-06-04 11:03:16 +08:00
show_list_handlers_test.go feat(skills): add channel commands to list and force installed skills 2026-03-22 15:33:25 +01:00