mirror of
https://github.com/cline/cline.git
synced 2026-10-29 17:42:34 +08:00
* fix: respect user max output tokens in compaction summarizer requests The compaction summarizer hardcoded max_tokens to 1024 and the VSCode host never mirrored the user's Max Output Tokens onto providerConfig, so summary requests were always capped at 1024 tokens. Reasoning models can spend that entire budget thinking; the reasoning stream is discarded, so no summary text arrives and compaction is skipped on every attempt. - Mirror maxTokensPerTurn onto providerConfig.maxOutputTokens in the VSCode session factory so consumers that build handlers straight from it (the compaction summarizer) honor the user's setting, matching the CLI. - Resolve the summarizer output budget from explicit config, then model info, then knownModels, before the default; raise the default to 4096. - Log a diagnostic warning (reasoning chars, incompleteReason, likely cause) when the summarizer returns no summary text instead of silently skipping. * fix: clamp summarizer default output budget by model metadata instead of adopting it Model maxTokens is reported capability, not a product default: without an explicit configuration the summarizer now requests the 4096 default, lowered by model metadata when the model reports less, never raised by it. Explicit values still win as-is.