v0.25.8 -> v0.25.9
Summary
Fixes a history duplication bug introduced during the v0.25.8 session package refactor, where Telegram and Discord sessions omitted the base-length marker and re-appended the full conversation on every turn.
翻譯
修正 v0.25.8 session 套件重構時引入的歷史重複寫入 bug——Telegram 與 Discord 的 session 漏設 base-length 標記,導致每輪對話都將完整歷史重新 append。Changes
FIX
- Set
BaseLen = len(oldHistory)in Telegram and Discord session builders to prevent full-history re-append on each turn (@pardnchiu) [5d3fafe]
翻譯
- 在 Telegram 與 Discord 的 session builder 設定
BaseLen = len(oldHistory),防止每輪重新 append 完整歷史
Scope
internal/runtime/telegram/session.go— FIXinternal/runtime/discord/session.go— FIX
Credits
Thanks to @oceanasd for reporting #49 and identifying the symptom that led to this fix.
Generated by SKILL