fix: preserve current input when maxContextMessageCount is 0 (#706)
The limit now applies to history messages only, not the current user input. - maxContextMessageCount = 0: only sends current input (no history) - maxContextMessageCount = 2: sends 2 history messages + current input Fixes #3620 (cherry picked from commit 55a809398636c89163e874dd71b64f5630f96ef8)
X
xiong jiale committed
a0b1d2287795bee8fe59ba71817528c3e0b6176c
Parent: c74b1f3
Committed by themez <themezeng@gmail.com>
on 4/9/2026, 3:18:35 AM